fix cs and phpstan

This commit is contained in:
TomasVotruba 2017-09-06 12:53:24 +02:00
parent af69092363
commit f869b168b9
4 changed files with 6 additions and 10 deletions

View File

@ -48,7 +48,6 @@ final class ExtractCommand extends Command
$source = $input->getArgument(self::ARGUMENT_SOURCE_NAME);
$this->triggerExtractor->scanDirectories($source);
// $output->writeln()
// write found deprecations...
return 0;

View File

@ -2,16 +2,11 @@
namespace Rector\TriggerExtractor\NodeVisitor;
use Exception;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\Expr\ConstFetch;
use PhpParser\Node\Expr\FuncCall;
use PhpParser\Node\Name;
use PhpParser\Node\Scalar\MagicConst\Method;
use PhpParser\Node\Scalar\String_;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\NodeVisitorAbstract;
use Rector\TriggerExtractor\Deprecation\DeprecationCollector;
use Rector\TriggerExtractor\TriggerError\TriggerMessageResolver;
@ -84,7 +79,6 @@ final class DeprecationDetector extends NodeVisitorAbstract // @todo use : class
return false;
}
return $node->name->toString() === $name;
}
}

View File

@ -35,9 +35,10 @@ final class TriggerMessageResolver
}
throw new Exception(sprintf(
'Not implemented yet %s::%s()',
'Not implemented yet. Go to "%s::%s()" and add check for "%s" node.',
__CLASS__,
__METHOD__
__METHOD__,
get_class($node)
));
}

View File

@ -3,4 +3,6 @@ parameters:
- '#Internal error#'
- '#Undefined variable: \$possibleAutoloadPaths#'
- '#Undefined variable: \$container#'
- '#Undefined variable: \$application#'
- '#Undefined variable: \$application#'
excludes_analyse:
- *packages/TriggerExtractor/tests/TriggerExtractorSource/Definition.php