File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,17 @@ public static function run(bool $isCli = true)
5050 private static function outputForCli (array $ output , array $ thead , array $ tbody ): void
5151 {
5252 foreach ($ output as $ directive => $ values ) {
53- $ current = $ values ['current ' ];
53+ $ current = $ values ['current ' ] ?? '' ;
5454 $ notRecommended = false ;
5555
5656 if ($ values ['recommended ' ] !== '' ) {
57- if ($ values ['recommended ' ] !== $ values [ ' current ' ] ) {
57+ if ($ values ['recommended ' ] !== $ current ) {
5858 $ notRecommended = true ;
5959 }
6060
6161 $ current = $ notRecommended
62- ? CLI ::color ($ values [ ' current ' ] === '' ? 'n/a ' : $ values [ ' current ' ] , 'red ' )
63- : $ values [ ' current ' ] ;
62+ ? CLI ::color ($ current === '' ? 'n/a ' : $ current , 'red ' )
63+ : $ current ;
6464 }
6565
6666 $ directive = $ notRecommended ? CLI ::color ($ directive , 'red ' ) : $ directive ;
You can’t perform that action at this time.
0 commit comments