diff --git a/.php_cs b/.php_cs index b172890..aa08db3 100644 --- a/.php_cs +++ b/.php_cs @@ -8,6 +8,7 @@ if (!defined('__PHPCS_ROOT__')) { $directories = [ __PHPCS_ROOT__.'/src', __PHPCS_ROOT__.'/bin', + __PHPCS_ROOT__.'/db', __PHPCS_ROOT__.'/tests', ]; @@ -21,6 +22,21 @@ foreach ($directories as $directory) { } } +if (file_exists(__PHPCS_ROOT__.'/vendor/benzine')) { + foreach (new DirectoryIterator(__PHPCS_ROOT__.'/vendor/benzine') as $file) { + if (!$file->isDot()) { + if ($file->isDir()) { + if (file_exists($file->getRealPath().'/src')) { + $finder->in($file->getRealPath().'/src'); + } + if (file_exists($file->getRealPath().'/tests')) { + $finder->in($file->getRealPath().'/tests'); + } + } + } + } +} + return PhpCsFixer\Config::create() ->setRiskyAllowed(true) ->setHideProgress(false) @@ -33,7 +49,7 @@ return PhpCsFixer\Config::create() 'no_php4_constructor' => true, 'no_unused_imports' => true, 'no_useless_else' => true, - 'no_superfluous_phpdoc_tags' => true, + 'no_superfluous_phpdoc_tags' => false, 'void_return' => true, 'yoda_style' => false, ]) diff --git a/src/Controllers/Filters/Filter.php b/src/Controllers/Filters/Filter.php index 0febd3b..5dab8ea 100644 --- a/src/Controllers/Filters/Filter.php +++ b/src/Controllers/Filters/Filter.php @@ -72,6 +72,8 @@ class Filter } /** + * @param mixed $limit + * * @return Filter */ public function setLimit($limit): self @@ -87,6 +89,8 @@ class Filter } /** + * @param mixed $offset + * * @return Filter */ public function setOffset($offset): self @@ -102,6 +106,8 @@ class Filter } /** + * @param mixed $wheres + * * @return Filter */ public function setWheres($wheres): self @@ -117,6 +123,8 @@ class Filter } /** + * @param mixed $order + * * @return Filter */ public function setOrder($order): self diff --git a/src/Router/Route.php b/src/Router/Route.php index 5d188da..35a74a3 100644 --- a/src/Router/Route.php +++ b/src/Router/Route.php @@ -117,6 +117,8 @@ class Route } /** + * @param mixed $propertyOptions + * * @return Route */ public function setPropertyOptions($propertyOptions) @@ -328,6 +330,8 @@ class Route } /** + * @param mixed $exampleEntity + * * @return Route */ public function setExampleEntity($exampleEntity) @@ -343,6 +347,8 @@ class Route } /** + * @param mixed $exampleEntityFinderFunction + * * @return Route */ public function setExampleEntityFinderFunction($exampleEntityFinderFunction)