Skip to content

Commit 618fac2

Browse files
committed
up
1 parent 611fcfe commit 618fac2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Utils/Helper.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)