Method run
has 40 lines of code (exceeds 25 allowed). Consider refactoring.
public function run()
{
try {
$this->finder->in($this->dirs)->files();
$defaults = clone $this->finder;
Function readProperties
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
public function readProperties($root = null, $web = null, $vendor = null)
{
if (!$this->getConfig()->get('digipolis.properties.read', false)) {
if (is_null($root)) {
if (is_callable([$this, 'taskDetermineProjectRoot'])) {
Method parseConfigFiles
has 26 lines of code (exceeds 25 allowed). Consider refactoring.
protected function parseConfigFiles(Finder $files)
{
$configs = [];
foreach ($files as $file) {
Each class must be in a namespace of at least one level (a top-level vendor name)
class RoboFile extends \Robo\Tasks
Missing class import via use statement (line '122', column '22').
[new \Grasmash\Expander\Expander(), 'expandArrayProperties'];
Function run
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
public function run()
{
$finder = clone $this->finder;
$finder->in([$this->dir])->exclude($this->exclude)->depth('<=' . $this->depth)->files();
$rootCandidates = [];
Function parseConfigFiles
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function parseConfigFiles(Finder $files)
{
$configs = [];
foreach ($files as $file) {
Line indented incorrectly; expected at least 12 spaces, found 10
return [];
Opening parenthesis of a multi-line function call must be the last content on the line
$parsedConfig = call_user_func($expander,
Code block style
public function myCommand(