@@ -371,7 +371,7 @@ public static function getWidth(int $default = 80) : int
371371 return $ default ;
372372 }
373373 $ width = (int ) \shell_exec ('tput cols ' );
374- if ( ! $ width ) {
374+ if (! $ width ) {
375375 return $ default ;
376376 }
377377 return $ width ;
@@ -509,7 +509,7 @@ public static function liveLine(string $text, bool $finalize = false) : void
509509 {
510510 // See: https://stackoverflow.com/a/35190285
511511 $ string = '' ;
512- if ( ! static ::isWindows ()) {
512+ if (! static ::isWindows ()) {
513513 $ string .= "\33[2K " ;
514514 }
515515 $ string .= "\r" ;
@@ -548,7 +548,7 @@ public static function box(
548548 ) : void {
549549 $ width = static ::getWidth ();
550550 $ width -= 2 ;
551- if ( ! \is_array ($ lines )) {
551+ if (! \is_array ($ lines )) {
552552 $ lines = [
553553 $ lines ,
554554 ];
@@ -669,7 +669,7 @@ public static function table(array $tbody, array $thead = []) : void
669669 // All the rows in the table will be here until the end
670670 $ tableRows = [];
671671 // We need only indexes and not keys
672- if ( ! empty ($ thead )) {
672+ if (! empty ($ thead )) {
673673 $ tableRows [] = \array_values ($ thead );
674674 }
675675 foreach ($ tbody as $ tr ) {
@@ -693,7 +693,7 @@ public static function table(array $tbody, array $thead = []) : void
693693 // If the current column does not have a value among the larger ones
694694 // or the value of this is greater than the existing one
695695 // then, now, this assumes the maximum length
696- if ( ! isset ($ maxColsLengths [$ column ])
696+ if (! isset ($ maxColsLengths [$ column ])
697697 || $ allColsLengths [$ row ][$ column ] > $ maxColsLengths [$ column ]) {
698698 $ maxColsLengths [$ column ] = $ allColsLengths [$ row ][$ column ];
699699 }
@@ -727,7 +727,7 @@ public static function table(array $tbody, array $thead = []) : void
727727 // Set the vertical borders
728728 $ table .= '| ' . \implode (' | ' , $ value ) . ' | ' . \PHP_EOL ;
729729 // Set the thead and table borders-bottom
730- if (($ row === 0 && ! empty ($ thead )) || $ row + 1 === $ totalRows ) {
730+ if (($ row === 0 && !empty ($ thead )) || $ row + 1 === $ totalRows ) {
731731 $ table .= $ line . \PHP_EOL ;
732732 }
733733 }
0 commit comments