Commit 24b0de63 by Alexander Makarov

Minor code style fixes for apidoc

parent a8ef7bab
...@@ -112,6 +112,9 @@ class ApiController extends BaseController ...@@ -112,6 +112,9 @@ class ApiController extends BaseController
} }
} }
/**
* @inheritdoc
*/
protected function findFiles($path, $except = []) protected function findFiles($path, $except = [])
{ {
if (empty($except)) { if (empty($except)) {
...@@ -135,6 +138,7 @@ class ApiController extends BaseController ...@@ -135,6 +138,7 @@ class ApiController extends BaseController
} }
/** /**
* @inheritdoc
* @return ApiRenderer * @return ApiRenderer
*/ */
protected function findRenderer($template) protected function findRenderer($template)
......
...@@ -9,7 +9,6 @@ namespace yii\apidoc\commands; ...@@ -9,7 +9,6 @@ namespace yii\apidoc\commands;
use yii\apidoc\components\BaseController; use yii\apidoc\components\BaseController;
use yii\apidoc\models\Context; use yii\apidoc\models\Context;
use yii\apidoc\renderers\BaseRenderer;
use yii\apidoc\renderers\GuideRenderer; use yii\apidoc\renderers\GuideRenderer;
use yii\helpers\Console; use yii\helpers\Console;
use yii\helpers\FileHelper; use yii\helpers\FileHelper;
...@@ -77,6 +76,9 @@ class GuideController extends BaseController ...@@ -77,6 +76,9 @@ class GuideController extends BaseController
file_put_contents($targetDir . '/guide-references.txt', implode("\n", $references)); file_put_contents($targetDir . '/guide-references.txt', implode("\n", $references));
} }
/**
* @inheritdoc
*/
protected function findFiles($path, $except = []) protected function findFiles($path, $except = [])
{ {
if (empty($except)) { if (empty($except)) {
...@@ -89,7 +91,9 @@ class GuideController extends BaseController ...@@ -89,7 +91,9 @@ class GuideController extends BaseController
]; ];
return FileHelper::findFiles($path, $options); return FileHelper::findFiles($path, $options);
} }
/** /**
* @inheritdoc
* @return GuideRenderer * @return GuideRenderer
*/ */
protected function findRenderer($template) protected function findRenderer($template)
......
...@@ -78,7 +78,6 @@ abstract class BaseController extends Controller ...@@ -78,7 +78,6 @@ abstract class BaseController extends Controller
protected abstract function findFiles($dir, $except = []); protected abstract function findFiles($dir, $except = []);
protected function loadContext($location) protected function loadContext($location)
{ {
$context = new Context(); $context = new Context();
...@@ -114,6 +113,7 @@ abstract class BaseController extends Controller ...@@ -114,6 +113,7 @@ abstract class BaseController extends Controller
} }
/** /**
* @inheritdoc
* @return BaseRenderer * @return BaseRenderer
*/ */
protected abstract function findRenderer($template); 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