Commit 24b0de63 by Alexander Makarov

Minor code style fixes for apidoc

parent a8ef7bab
......@@ -112,6 +112,9 @@ class ApiController extends BaseController
}
}
/**
* @inheritdoc
*/
protected function findFiles($path, $except = [])
{
if (empty($except)) {
......@@ -135,6 +138,7 @@ class ApiController extends BaseController
}
/**
* @inheritdoc
* @return ApiRenderer
*/
protected function findRenderer($template)
......
......@@ -9,7 +9,6 @@ namespace yii\apidoc\commands;
use yii\apidoc\components\BaseController;
use yii\apidoc\models\Context;
use yii\apidoc\renderers\BaseRenderer;
use yii\apidoc\renderers\GuideRenderer;
use yii\helpers\Console;
use yii\helpers\FileHelper;
......@@ -77,6 +76,9 @@ class GuideController extends BaseController
file_put_contents($targetDir . '/guide-references.txt', implode("\n", $references));
}
/**
* @inheritdoc
*/
protected function findFiles($path, $except = [])
{
if (empty($except)) {
......@@ -89,7 +91,9 @@ class GuideController extends BaseController
];
return FileHelper::findFiles($path, $options);
}
/**
* @inheritdoc
* @return GuideRenderer
*/
protected function findRenderer($template)
......
......@@ -78,7 +78,6 @@ abstract class BaseController extends Controller
protected abstract function findFiles($dir, $except = []);
protected function loadContext($location)
{
$context = new Context();
......@@ -114,6 +113,7 @@ abstract class BaseController extends Controller
}
/**
* @inheritdoc
* @return BaseRenderer
*/
protected abstract function findRenderer($template);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment