@@ -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 ];
@@ -688,7 +688,7 @@ public static function table(array $tbody, array $thead = []) : void
688688 // All the rows in the table will be here until the end
689689 $ tableRows = [];
690690 // We need only indexes and not keys
691- if ( ! empty ($ thead )) {
691+ if (! empty ($ thead )) {
692692 $ tableRows [] = \array_values ($ thead );
693693 }
694694 foreach ($ tbody as $ tr ) {
@@ -712,7 +712,7 @@ public static function table(array $tbody, array $thead = []) : void
712712 // If the current column does not have a value among the larger ones
713713 // or the value of this is greater than the existing one
714714 // then, now, this assumes the maximum length
715- if ( ! isset ($ maxColsLengths [$ column ])
715+ if (! isset ($ maxColsLengths [$ column ])
716716 || $ allColsLengths [$ row ][$ column ] > $ maxColsLengths [$ column ]) {
717717 $ maxColsLengths [$ column ] = $ allColsLengths [$ row ][$ column ];
718718 }
@@ -746,7 +746,7 @@ public static function table(array $tbody, array $thead = []) : void
746746 // Set the vertical borders
747747 $ table .= '| ' . \implode (' | ' , $ value ) . ' | ' . \PHP_EOL ;
748748 // Set the thead and table borders-bottom
749- if (($ row === 0 && ! empty ($ thead )) || $ row + 1 === $ totalRows ) {
749+ if (($ row === 0 && !empty ($ thead )) || $ row + 1 === $ totalRows ) {
750750 $ table .= $ line . \PHP_EOL ;
751751 }
752752 }
0 commit comments