This commit is contained in:
Greyscale 2020-12-07 13:15:25 +01:00
parent 4fbb92dd18
commit 0ffb7ef8d4
3 changed files with 31 additions and 1 deletions
.php_cs
src
Controllers/Filters
Router

18
.php_cs
View file

@ -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,
])

View file

@ -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

View file

@ -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)