File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1010use NunoMaduro \PhpInsights \Domain \Metrics \Architecture \Classes ;
1111use NunoMaduro \PhpInsights \Domain \Metrics \Code \Code ;
1212use NunoMaduro \PhpInsights \Domain \Metrics \Style \Style ;
13+ use PHP_CodeSniffer \Standards \Generic \Sniffs \Formatting \SpaceAfterNotSniff ;
1314use PhpCsFixer \Fixer \Alias \ArrayPushFixer ;
1415use PhpCsFixer \Fixer \Alias \BacktickToShellExecFixer ;
1516use PhpCsFixer \Fixer \Alias \MbStrFunctionsFixer ;
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 ' => [
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments