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