for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
#!/usr/bin/php
<?php
require __DIR__ . '/../vendor/autoload.php';
use Stefaminator\Cli\App;
use Stefaminator\Cli\AppParser;
use Stefaminator\Cli\Cmd;
AppParser::run(
(new class extends App {
public function setup(): Cmd {
return Cmd::root()
->setCallable(static function (Cmd $cmd) {
$cmd
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
->setCallable(static function (/** @scrutinizer ignore-unused */ Cmd $cmd) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
echo 'Hello World' . self::EOL;
});
}
})
);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.