Skip to content

Commit e1e5a65

Browse files
committed
wip
1 parent 39634d2 commit e1e5a65

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

phpinsights.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use NunoMaduro\PhpInsights\Domain\Metrics\Architecture\Classes;
1111
use NunoMaduro\PhpInsights\Domain\Metrics\Code\Code;
1212
use NunoMaduro\PhpInsights\Domain\Metrics\Style\Style;
13+
use PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff;
1314
use PhpCsFixer\Fixer\Alias\ArrayPushFixer;
1415
use PhpCsFixer\Fixer\Alias\BacktickToShellExecFixer;
1516
use PhpCsFixer\Fixer\Alias\MbStrFunctionsFixer;
@@ -139,6 +140,7 @@
139140
NewWithParenthesesFixer::class, // Disabled as per pint.json
140141
NotOperatorWithSuccessorSpaceFixer::class, // Disabled as per pint.json
141142
DisallowYodaComparisonSniff::class, // Allow normal comparisons
143+
SpaceAfterNotSniff::class, // Don't require space after NOT operator - Pint handles this
142144
],
143145

144146
'config' => [

src/Traits/WithPipeline.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ protected function startHookConsoleTask(): Closure
5959

6060
$taskTitle = $this->getHookTaskTitle($hook);
6161
$loadingText = 'loading...';
62-
$this->output->write("{$taskTitle}: <comment>{$loadingText}</comment>");
62+
$this->output->write(
63+
"{$taskTitle}: <comment>{$loadingText}</comment>"
64+
);
6365
};
6466
}
6567

6668
/**
67-
* Finish the console task of the Hook which just executed, with success or failure
69+
* Finish the console task of the Hook which just executed
6870
*/
6971
protected function finishHookConsoleTask(): Closure
7072
{
@@ -73,7 +75,8 @@ protected function finishHookConsoleTask(): Closure
7375
return;
7476
}
7577

76-
if ($this->output->isDecorated()) { // Determines if we can use escape sequences
78+
// Check if we can use escape sequences
79+
if ($this->output->isDecorated()) {
7780
// Move the cursor to the beginning of the line
7881
$this->output->write("\x0D");
7982

0 commit comments

Comments
 (0)