Skip to content

Commit

Permalink
Fix pint code style
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Aug 23, 2022
1 parent cf4cdf9 commit f422e26
Show file tree
Hide file tree
Showing 17 changed files with 94 additions and 93 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"require-dev": {
"brianium/paratest": "^6.4.1",
"laravel/framework": "^9.7",
"laravel/pint": "^0.2.1",
"laravel/pint": "^1.1.1",
"nunomaduro/larastan": "^1.0.2",
"nunomaduro/mock-final-classes": "^1.1.0",
"orchestra/testbench": "^7.3.0",
Expand Down
6 changes: 3 additions & 3 deletions src/Adapters/Laravel/CollisionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class CollisionServiceProvider extends ServiceProvider
{
/**
* @inheritdoc
* {@inheritdoc}
*
* @var bool
*/
Expand All @@ -40,7 +40,7 @@ public function boot()
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function register()
{
Expand Down Expand Up @@ -75,7 +75,7 @@ function ($app) use ($appExceptionHandler) {
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function provides()
{
Expand Down
12 changes: 6 additions & 6 deletions src/Adapters/Laravel/Commands/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ public function handle()
$parallel = $this->option('parallel');

$process = (new Process(array_merge(
// Binary ...
$this->binary(),
// Arguments ...
$parallel ? $this->paratestArguments($options) : $this->phpunitArguments($options)
),
// Binary ...
$this->binary(),
// Arguments ...
$parallel ? $this->paratestArguments($options) : $this->phpunitArguments($options)
),
null,
// Envs ...
$parallel ? $this->paratestEnvironmentVariables() : $this->phpunitEnvironmentVariables(),
Expand Down Expand Up @@ -267,7 +267,7 @@ protected function phpunitEnvironmentVariables()
protected function paratestEnvironmentVariables()
{
return [
'LARAVEL_PARALLEL_TESTING' => 1,
'LARAVEL_PARALLEL_TESTING' => 1,
'LARAVEL_PARALLEL_TESTING_RECREATE_DATABASES' => $this->option('recreate-databases'),
'LARAVEL_PARALLEL_TESTING_DROP_DATABASES' => $this->option('drop-databases'),
];
Expand Down
6 changes: 3 additions & 3 deletions src/Adapters/Laravel/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ public function __construct(Container $container, ExceptionHandlerContract $appE
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function report(Throwable $e)
{
$this->appExceptionHandler->report($e);
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function render($request, Throwable $e)
{
return $this->appExceptionHandler->render($request, $e);
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function renderForConsole($output, Throwable $e)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/Laravel/IgnitionSolutionsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(SolutionProviderRepository $solutionProviderReposito
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function getFromThrowable(Throwable $throwable): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/Laravel/Inspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
final class Inspector extends BaseInspector
{
/**
* @inheritdoc
* {@inheritdoc}
*/
protected function getTrace($e)
{
Expand Down
20 changes: 10 additions & 10 deletions src/Adapters/Phpunit/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __construct(\Symfony\Component\Console\Output\ConsoleOutputInter
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function addError(Test $testCase, Throwable $throwable, float $time): void
{
Expand All @@ -89,7 +89,7 @@ public function addError(Test $testCase, Throwable $throwable, float $time): voi
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function addWarning(Test $testCase, Warning $warning, float $time): void
{
Expand All @@ -99,7 +99,7 @@ public function addWarning(Test $testCase, Warning $warning, float $time): void
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function addFailure(Test $testCase, AssertionFailedError $error, float $time): void
{
Expand All @@ -120,7 +120,7 @@ public function addFailure(Test $testCase, AssertionFailedError $error, float $t
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function addIncompleteTest(Test $testCase, Throwable $throwable, float $time): void
{
Expand All @@ -130,7 +130,7 @@ public function addIncompleteTest(Test $testCase, Throwable $throwable, float $t
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function addRiskyTest(Test $testCase, Throwable $throwable, float $time): void
{
Expand All @@ -140,7 +140,7 @@ public function addRiskyTest(Test $testCase, Throwable $throwable, float $time):
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function addSkippedTest(Test $testCase, Throwable $throwable, float $time): void
{
Expand All @@ -150,7 +150,7 @@ public function addSkippedTest(Test $testCase, Throwable $throwable, float $time
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function startTestSuite(TestSuite $suite): void
{
Expand All @@ -160,15 +160,15 @@ public function startTestSuite(TestSuite $suite): void
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function endTestSuite(TestSuite $suite): void
{
// ..
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function startTest(Test $testCase): void
{
Expand All @@ -183,7 +183,7 @@ public function startTest(Test $testCase): void
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function endTest(Test $testCase, float $time): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/ArgumentFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class ArgumentFormatter implements ArgumentFormatterContract
private const MAX_STRING_LENGTH = 1000;

/**
* @inheritdoc
* {@inheritdoc}
*/
public function format(array $arguments, bool $recursive = true): string
{
Expand Down
74 changes: 37 additions & 37 deletions src/ConsoleColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,52 +28,52 @@ final class ConsoleColor

/** @var array */
private const STYLES = [
'none' => null,
'bold' => '1',
'dark' => '2',
'italic' => '3',
'none' => null,
'bold' => '1',
'dark' => '2',
'italic' => '3',
'underline' => '4',
'blink' => '5',
'reverse' => '7',
'blink' => '5',
'reverse' => '7',
'concealed' => '8',

'default' => '39',
'black' => '30',
'red' => '31',
'green' => '32',
'yellow' => '33',
'blue' => '34',
'magenta' => '35',
'cyan' => '36',
'default' => '39',
'black' => '30',
'red' => '31',
'green' => '32',
'yellow' => '33',
'blue' => '34',
'magenta' => '35',
'cyan' => '36',
'light_gray' => '37',

'dark_gray' => '90',
'light_red' => '91',
'light_green' => '92',
'light_yellow' => '93',
'light_blue' => '94',
'dark_gray' => '90',
'light_red' => '91',
'light_green' => '92',
'light_yellow' => '93',
'light_blue' => '94',
'light_magenta' => '95',
'light_cyan' => '96',
'white' => '97',

'bg_default' => '49',
'bg_black' => '40',
'bg_red' => '41',
'bg_green' => '42',
'bg_yellow' => '43',
'bg_blue' => '44',
'bg_magenta' => '45',
'bg_cyan' => '46',
'light_cyan' => '96',
'white' => '97',

'bg_default' => '49',
'bg_black' => '40',
'bg_red' => '41',
'bg_green' => '42',
'bg_yellow' => '43',
'bg_blue' => '44',
'bg_magenta' => '45',
'bg_cyan' => '46',
'bg_light_gray' => '47',

'bg_dark_gray' => '100',
'bg_light_red' => '101',
'bg_light_green' => '102',
'bg_light_yellow' => '103',
'bg_light_blue' => '104',
'bg_dark_gray' => '100',
'bg_light_red' => '101',
'bg_light_green' => '102',
'bg_light_yellow' => '103',
'bg_light_blue' => '104',
'bg_light_magenta' => '105',
'bg_light_cyan' => '106',
'bg_white' => '107',
'bg_light_cyan' => '106',
'bg_white' => '107',
];

/** @var array */
Expand Down
6 changes: 3 additions & 3 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(WriterContract $writer = null)
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function handle()
{
Expand All @@ -42,7 +42,7 @@ public function handle()
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function setOutput(OutputInterface $output): HandlerContract
{
Expand All @@ -52,7 +52,7 @@ public function setOutput(OutputInterface $output): HandlerContract
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function getWriter(): WriterContract
{
Expand Down
22 changes: 11 additions & 11 deletions src/Highlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ final class Highlighter implements HighlighterContract
* @var array
*/
private const THEME = [
self::TOKEN_STRING => ['light_gray'],
self::TOKEN_STRING => ['light_gray'],
self::TOKEN_COMMENT => ['dark_gray', 'italic'],
self::TOKEN_KEYWORD => ['magenta', 'bold'],
self::TOKEN_DEFAULT => ['default', 'bold'],
self::TOKEN_HTML => ['blue', 'bold'],
self::TOKEN_HTML => ['blue', 'bold'],

self::ACTUAL_LINE_MARK => ['red', 'bold'],
self::LINE_NUMBER => ['dark_gray'],
self::MARKED_LINE_NUMBER => ['italic', 'bold'],
self::ACTUAL_LINE_MARK => ['red', 'bold'],
self::LINE_NUMBER => ['dark_gray'],
self::MARKED_LINE_NUMBER => ['italic', 'bold'],
self::LINE_NUMBER_DIVIDER => ['dark_gray'],
];

Expand All @@ -62,15 +62,15 @@ final class Highlighter implements HighlighterContract

/** @var array */
private const DEFAULT_THEME = [
self::TOKEN_STRING => 'red',
self::TOKEN_STRING => 'red',
self::TOKEN_COMMENT => 'yellow',
self::TOKEN_KEYWORD => 'green',
self::TOKEN_DEFAULT => 'default',
self::TOKEN_HTML => 'cyan',
self::TOKEN_HTML => 'cyan',

self::ACTUAL_LINE_MARK => 'dark_gray',
self::LINE_NUMBER => 'dark_gray',
self::MARKED_LINE_NUMBER => 'dark_gray',
self::ACTUAL_LINE_MARK => 'dark_gray',
self::LINE_NUMBER => 'dark_gray',
self::MARKED_LINE_NUMBER => 'dark_gray',
self::LINE_NUMBER_DIVIDER => 'dark_gray',
];

Expand Down Expand Up @@ -109,7 +109,7 @@ public function __construct(ConsoleColor $color = null, bool $UTF8 = true)
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function highlight(string $content, int $line): string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(RunInterface $run = null, HandlerContract $handler =
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function register(): ProviderContract
{
Expand All @@ -51,7 +51,7 @@ public function register(): ProviderContract
}

/**
* @inheritdoc
* {@inheritdoc}
*/
public function getHandler(): HandlerContract
{
Expand Down
Loading

0 comments on commit f422e26

Please sign in to comment.