Cleanup
This commit is contained in:
parent
4fbb92dd18
commit
0ffb7ef8d4
3 changed files with 31 additions and 1 deletions
18
.php_cs
18
.php_cs
|
|
@ -8,6 +8,7 @@ if (!defined('__PHPCS_ROOT__')) {
|
||||||
$directories = [
|
$directories = [
|
||||||
__PHPCS_ROOT__.'/src',
|
__PHPCS_ROOT__.'/src',
|
||||||
__PHPCS_ROOT__.'/bin',
|
__PHPCS_ROOT__.'/bin',
|
||||||
|
__PHPCS_ROOT__.'/db',
|
||||||
__PHPCS_ROOT__.'/tests',
|
__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()
|
return PhpCsFixer\Config::create()
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
->setHideProgress(false)
|
->setHideProgress(false)
|
||||||
|
|
@ -33,7 +49,7 @@ return PhpCsFixer\Config::create()
|
||||||
'no_php4_constructor' => true,
|
'no_php4_constructor' => true,
|
||||||
'no_unused_imports' => true,
|
'no_unused_imports' => true,
|
||||||
'no_useless_else' => true,
|
'no_useless_else' => true,
|
||||||
'no_superfluous_phpdoc_tags' => true,
|
'no_superfluous_phpdoc_tags' => false,
|
||||||
'void_return' => true,
|
'void_return' => true,
|
||||||
'yoda_style' => false,
|
'yoda_style' => false,
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,8 @@ class Filter
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param mixed $limit
|
||||||
|
*
|
||||||
* @return Filter
|
* @return Filter
|
||||||
*/
|
*/
|
||||||
public function setLimit($limit): self
|
public function setLimit($limit): self
|
||||||
|
|
@ -87,6 +89,8 @@ class Filter
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param mixed $offset
|
||||||
|
*
|
||||||
* @return Filter
|
* @return Filter
|
||||||
*/
|
*/
|
||||||
public function setOffset($offset): self
|
public function setOffset($offset): self
|
||||||
|
|
@ -102,6 +106,8 @@ class Filter
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param mixed $wheres
|
||||||
|
*
|
||||||
* @return Filter
|
* @return Filter
|
||||||
*/
|
*/
|
||||||
public function setWheres($wheres): self
|
public function setWheres($wheres): self
|
||||||
|
|
@ -117,6 +123,8 @@ class Filter
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param mixed $order
|
||||||
|
*
|
||||||
* @return Filter
|
* @return Filter
|
||||||
*/
|
*/
|
||||||
public function setOrder($order): self
|
public function setOrder($order): self
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,8 @@ class Route
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param mixed $propertyOptions
|
||||||
|
*
|
||||||
* @return Route
|
* @return Route
|
||||||
*/
|
*/
|
||||||
public function setPropertyOptions($propertyOptions)
|
public function setPropertyOptions($propertyOptions)
|
||||||
|
|
@ -328,6 +330,8 @@ class Route
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param mixed $exampleEntity
|
||||||
|
*
|
||||||
* @return Route
|
* @return Route
|
||||||
*/
|
*/
|
||||||
public function setExampleEntity($exampleEntity)
|
public function setExampleEntity($exampleEntity)
|
||||||
|
|
@ -343,6 +347,8 @@ class Route
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param mixed $exampleEntityFinderFunction
|
||||||
|
*
|
||||||
* @return Route
|
* @return Route
|
||||||
*/
|
*/
|
||||||
public function setExampleEntityFinderFunction($exampleEntityFinderFunction)
|
public function setExampleEntityFinderFunction($exampleEntityFinderFunction)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue