-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37ad1e7
commit 9279305
Showing
284 changed files
with
37,609 additions
and
584 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# These are supported funding model platforms | ||
github: tomasvotruba | ||
custom: https://www.paypal.me/rectorphp |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
<?php | ||
namespace PHPStanBodyscan202405; | ||
|
||
require __DIR__ . '/phpstan-bodyscan.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,37 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Symfony\Component\Console\Application; | ||
use Symfony\Component\Console\Input\ArgvInput; | ||
use Symfony\Component\Console\Input\ArrayInput; | ||
use Symfony\Component\Console\Output\ConsoleOutput; | ||
use Symfony\Component\Console\Style\SymfonyStyle; | ||
declare (strict_types=1); | ||
namespace PHPStanBodyscan202405; | ||
|
||
use PHPStanBodyscan202405\Symfony\Component\Console\Application; | ||
use PHPStanBodyscan202405\Symfony\Component\Console\Input\ArgvInput; | ||
use PHPStanBodyscan202405\Symfony\Component\Console\Input\ArrayInput; | ||
use PHPStanBodyscan202405\Symfony\Component\Console\Output\ConsoleOutput; | ||
use PHPStanBodyscan202405\Symfony\Component\Console\Style\SymfonyStyle; | ||
use TomasVotruba\PHPStanBodyscan\Command\RunCommand; | ||
use TomasVotruba\PHPStanBodyscan\OutputFormatter\JsonOutputFormatter; | ||
use TomasVotruba\PHPStanBodyscan\OutputFormatter\TableOutputFormatter; | ||
use TomasVotruba\PHPStanBodyscan\PHPStanConfigFactory; | ||
use TomasVotruba\PHPStanBodyscan\Process\AnalyseProcessFactory; | ||
|
||
if (file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) { | ||
if (\file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) { | ||
// A. build downgraded package | ||
require_once __DIR__ . '/../vendor/scoper-autoload.php'; | ||
} else { | ||
// B. local repository | ||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
} | ||
|
||
// 1. setup dependencies | ||
$symfonyStyle = new SymfonyStyle(new ArrayInput([]), new ConsoleOutput()); | ||
|
||
$jsonOutputFormatter = new JsonOutputFormatter($symfonyStyle); | ||
$tableOutputFormatter = new TableOutputFormatter($symfonyStyle); | ||
|
||
$runCommand = new RunCommand( | ||
$symfonyStyle, | ||
new AnalyseProcessFactory(), | ||
new PHPStanConfigFactory(), | ||
$jsonOutputFormatter, | ||
$tableOutputFormatter | ||
); | ||
|
||
$runCommand = new RunCommand($symfonyStyle, new AnalyseProcessFactory(), new PHPStanConfigFactory(), $jsonOutputFormatter, $tableOutputFormatter); | ||
$application = new Application(); | ||
$application->add($runCommand); | ||
$application->setDefaultCommand('run'); | ||
|
||
// 2. hide default commands | ||
$application->get('completion') | ||
->setHidden(); | ||
$application->get('help') | ||
->setHidden(); | ||
$application->get('list') | ||
->setHidden(); | ||
|
||
$application->get('completion')->setHidden(); | ||
$application->get('help')->setHidden(); | ||
$application->get('list')->setHidden(); | ||
// 3. execute command | ||
$exitCode = $application->run(new ArgvInput(), new ConsoleOutput()); | ||
exit($exitCode); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.