File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ public static function getScreenSize($refresh = false)
414414 $ output = [];
415415 exec ('mode con ' , $ output );
416416
417- if (isset ($ output, $ output [1 ]) && strpos ($ output [1 ], 'CON ' ) !== false ) {
417+ if (isset ($ output [1 ]) && strpos ($ output [1 ], 'CON ' ) !== false ) {
418418 return ($ size = [
419419 (int )preg_replace ('~\D~ ' , '' , $ output [3 ]),
420420 (int )preg_replace ('~\D~ ' , '' , $ output [4 ])
@@ -542,14 +542,12 @@ public static function dumpVars(...$args)
542542 */
543543 public static function printVars (...$ args )
544544 {
545- ob_start () ;
545+ $ string = '' ;
546546
547547 foreach ($ args as $ arg ) {
548- print_r ($ arg) ;
548+ $ string .= print_r ($ arg, 1 ) . PHP_EOL ;
549549 }
550550
551- $ string = ob_get_clean ();
552-
553551 return preg_replace ("/Array \n\s+\(/ " , 'Array ( ' , $ string );
554552 }
555553}
You can’t perform that action at this time.
0 commit comments