private function getDirectoriesToScan(InputInterface $input, array $dirsConfigured): array
    {
        $dirsProvidedAsArgs = $input->getArgument('paths');
        if (count($dirsProvidedAsArgs) > 0) {
            return $dirsProvidedAsArgs;
        }

        if (count($dirsConfigured) > 0) {
            return $dirsConfigured;
        }

        throw new InvalidArgumentException(
            'Provide the directories you want to scan as arguments, ' .
            'or configure them under "directoriesToScan" in your churn.yml file.'
        );
    }
private function getDirectoriesToScan(InputInterface $input, array $dirsConfigured): array
    {
        $dirsProvidedAsArgs = $input->getArgument('paths');
        if (count($dirsProvidedAsArgs) > 0) {
            return $dirsProvidedAsArgs;
        }

        if (count($dirsConfigured) > 0) {
            return $dirsConfigured;
        }

        throw new InvalidArgumentException(
            'Provide the directories you want to scan as arguments, ' .
            'or configure them under "directoriesToScan" in your churn.yml file.'
        );
    }
private function getDirectoriesToScan ( InputInterface $ input , array $ dirsConfigured ) : array { $ dirsProvidedAsArgs = $ input -> getArgument ( 'paths' ) ; if ( count ( $ dirsProvidedAsArgs ) > 0 ) { return $ dirsProvidedAsArgs ; } if ( count ( $ dirsConfigured ) > 0 ) { return $ dirsConfigured ; } throw new InvalidArgumentException ( 'Provide the directories you want to scan as arguments, ' . 'or configure them under "directoriesToScan" in your churn.yml file.' ) ; }
Get the directories to scan.
@param InputInterface $input          Input Interface.
@param array          $dirsConfigured The directories configured to scan.
@throws InvalidArgumentException If paths argument invalid.
@return array When no directories to scan found.
Get the directories to scan .