@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | } elseif (!isset($this->prefixDirsPsr4[$prefix])) { |
| 249 | 249 | // Register directories for a new namespace. |
| 250 | 250 | $length = strlen($prefix); |
| 251 | - if ('\\' !== $prefix[$length - 1]) { |
|
| 251 | + if ('\\' !== $prefix[$length-1]) { |
|
| 252 | 252 | throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); |
| 253 | 253 | } |
| 254 | 254 | $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | $this->fallbackDirsPsr4 = (array) $paths; |
| 304 | 304 | } else { |
| 305 | 305 | $length = strlen($prefix); |
| 306 | - if ('\\' !== $prefix[$length - 1]) { |
|
| 306 | + if ('\\' !== $prefix[$length-1]) { |
|
| 307 | 307 | throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); |
| 308 | 308 | } |
| 309 | 309 | $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | } |
| 396 | 396 | |
| 397 | 397 | if ($prepend) { |
| 398 | - self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; |
|
| 398 | + self::$registeredLoaders = array($this->vendorDir => $this)+self::$registeredLoaders; |
|
| 399 | 399 | } else { |
| 400 | 400 | unset(self::$registeredLoaders[$this->vendorDir]); |
| 401 | 401 | self::$registeredLoaders[$this->vendorDir] = $this; |
@@ -493,18 +493,18 @@ discard block |
||
| 493 | 493 | private function findFileWithExtension($class, $ext) |
| 494 | 494 | { |
| 495 | 495 | // PSR-4 lookup |
| 496 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
| 496 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
| 497 | 497 | |
| 498 | 498 | $first = $class[0]; |
| 499 | 499 | if (isset($this->prefixLengthsPsr4[$first])) { |
| 500 | 500 | $subPath = $class; |
| 501 | 501 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
| 502 | 502 | $subPath = substr($subPath, 0, $lastPos); |
| 503 | - $search = $subPath . '\\'; |
|
| 503 | + $search = $subPath.'\\'; |
|
| 504 | 504 | if (isset($this->prefixDirsPsr4[$search])) { |
| 505 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
| 505 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos+1); |
|
| 506 | 506 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
| 507 | - if (file_exists($file = $dir . $pathEnd)) { |
|
| 507 | + if (file_exists($file = $dir.$pathEnd)) { |
|
| 508 | 508 | return $file; |
| 509 | 509 | } |
| 510 | 510 | } |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | |
| 515 | 515 | // PSR-4 fallback dirs |
| 516 | 516 | foreach ($this->fallbackDirsPsr4 as $dir) { |
| 517 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
| 517 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
| 518 | 518 | return $file; |
| 519 | 519 | } |
| 520 | 520 | } |
@@ -522,18 +522,18 @@ discard block |
||
| 522 | 522 | // PSR-0 lookup |
| 523 | 523 | if (false !== $pos = strrpos($class, '\\')) { |
| 524 | 524 | // namespaced class name |
| 525 | - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) |
|
| 526 | - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
|
| 525 | + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos+1) |
|
| 526 | + . strtr(substr($logicalPathPsr4, $pos+1), '_', DIRECTORY_SEPARATOR); |
|
| 527 | 527 | } else { |
| 528 | 528 | // PEAR-like class name |
| 529 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
| 529 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
| 530 | 530 | } |
| 531 | 531 | |
| 532 | 532 | if (isset($this->prefixesPsr0[$first])) { |
| 533 | 533 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
| 534 | 534 | if (0 === strpos($class, $prefix)) { |
| 535 | 535 | foreach ($dirs as $dir) { |
| 536 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
| 536 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
| 537 | 537 | return $file; |
| 538 | 538 | } |
| 539 | 539 | } |
@@ -543,7 +543,7 @@ discard block |
||
| 543 | 543 | |
| 544 | 544 | // PSR-0 fallback dirs |
| 545 | 545 | foreach ($this->fallbackDirsPsr0 as $dir) { |
| 546 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
| 546 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
| 547 | 547 | return $file; |
| 548 | 548 | } |
| 549 | 549 | } |
@@ -4,10 +4,10 @@ |
||
| 4 | 4 | $baseDir = dirname($vendorDir); |
| 5 | 5 | |
| 6 | 6 | return array( |
| 7 | - 'Kristuff\\Mishell\\Console' => $baseDir . '/lib/Console.php', |
|
| 8 | - 'Kristuff\\Mishell\\Program' => $baseDir . '/lib/Program.php', |
|
| 9 | - 'Kristuff\\Mishell\\ShellPrinter' => $baseDir . '/lib/ShellPrinter.php', |
|
| 10 | - 'Kristuff\\Mishell\\ShellTablePrinter' => $baseDir . '/lib/ShellTablePrinter.php', |
|
| 11 | - 'Kristuff\\Mishell\\ShellColoredPrinter' => $baseDir . '/lib/ShellColoredPrinter.php', |
|
| 12 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 7 | + 'Kristuff\\Mishell\\Console' => $baseDir.'/lib/Console.php', |
|
| 8 | + 'Kristuff\\Mishell\\Program' => $baseDir.'/lib/Program.php', |
|
| 9 | + 'Kristuff\\Mishell\\ShellPrinter' => $baseDir.'/lib/ShellPrinter.php', |
|
| 10 | + 'Kristuff\\Mishell\\ShellTablePrinter' => $baseDir.'/lib/ShellTablePrinter.php', |
|
| 11 | + 'Kristuff\\Mishell\\ShellColoredPrinter' => $baseDir.'/lib/ShellColoredPrinter.php', |
|
| 12 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 13 | 13 | ); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | return implode(' || ', $ranges); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 159 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | return $installed['versions'][$packageName]['version']; |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 180 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /** |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | return $installed['versions'][$packageName]['pretty_version']; |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 201 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | /** |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | return $installed['versions'][$packageName]['reference']; |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 222 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | /** |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 239 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | // only require the installed.php file if this file is loaded from its dumped location, |
| 266 | 266 | // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 |
| 267 | 267 | if (substr(__DIR__, -8, 1) !== 'C') { |
| 268 | - self::$installed = include __DIR__ . '/installed.php'; |
|
| 268 | + self::$installed = include __DIR__.'/installed.php'; |
|
| 269 | 269 | } else { |
| 270 | 270 | self::$installed = array(); |
| 271 | 271 | } |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | } elseif (is_file($vendorDir.'/composer/installed.php')) { |
| 329 | 329 | $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; |
| 330 | 330 | if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { |
| 331 | - self::$installed = $installed[count($installed) - 1]; |
|
| 331 | + self::$installed = $installed[count($installed)-1]; |
|
| 332 | 332 | } |
| 333 | 333 | } |
| 334 | 334 | } |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | // only require the installed.php file if this file is loaded from its dumped location, |
| 339 | 339 | // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 |
| 340 | 340 | if (substr(__DIR__, -8, 1) !== 'C') { |
| 341 | - self::$installed = require __DIR__ . '/installed.php'; |
|
| 341 | + self::$installed = require __DIR__.'/installed.php'; |
|
| 342 | 342 | } else { |
| 343 | 343 | self::$installed = array(); |
| 344 | 344 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | public static function loadClassLoader($class) |
| 10 | 10 | { |
| 11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
| 12 | - require __DIR__ . '/ClassLoader.php'; |
|
| 12 | + require __DIR__.'/ClassLoader.php'; |
|
| 13 | 13 | } |
| 14 | 14 | } |
| 15 | 15 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | return self::$loader; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - require __DIR__ . '/platform_check.php'; |
|
| 25 | + require __DIR__.'/platform_check.php'; |
|
| 26 | 26 | |
| 27 | 27 | spl_autoload_register(array('ComposerAutoloaderInite5eca23334d547f58d55dd3321eace6e', 'loadClassLoader'), true, true); |
| 28 | 28 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); |
@@ -30,21 +30,21 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
| 32 | 32 | if ($useStaticLoader) { |
| 33 | - require __DIR__ . '/autoload_static.php'; |
|
| 33 | + require __DIR__.'/autoload_static.php'; |
|
| 34 | 34 | |
| 35 | 35 | call_user_func(\Composer\Autoload\ComposerStaticInite5eca23334d547f58d55dd3321eace6e::getInitializer($loader)); |
| 36 | 36 | } else { |
| 37 | - $map = require __DIR__ . '/autoload_namespaces.php'; |
|
| 37 | + $map = require __DIR__.'/autoload_namespaces.php'; |
|
| 38 | 38 | foreach ($map as $namespace => $path) { |
| 39 | 39 | $loader->set($namespace, $path); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - $map = require __DIR__ . '/autoload_psr4.php'; |
|
| 42 | + $map = require __DIR__.'/autoload_psr4.php'; |
|
| 43 | 43 | foreach ($map as $namespace => $path) { |
| 44 | 44 | $loader->setPsr4($namespace, $path); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
| 47 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
| 48 | 48 | if ($classMap) { |
| 49 | 49 | $loader->addClassMap($classMap); |
| 50 | 50 | } |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | $baseDir = dirname($vendorDir); |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Kristuff\\Mishell\\' => array($baseDir . '/lib'), |
|
| 9 | + 'Kristuff\\Mishell\\' => array($baseDir.'/lib'), |
|
| 10 | 10 | ); |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | $issues = array(); |
| 6 | 6 | |
| 7 | 7 | if (!(PHP_VERSION_ID >= 50600)) { |
| 8 | - $issues[] = 'Your Composer dependencies require a PHP version ">= 5.6.0". You are running ' . PHP_VERSION . '.'; |
|
| 8 | + $issues[] = 'Your Composer dependencies require a PHP version ">= 5.6.0". You are running '.PHP_VERSION.'.'; |
|
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | if ($issues) { |
@@ -14,13 +14,13 @@ discard block |
||
| 14 | 14 | } |
| 15 | 15 | if (!ini_get('display_errors')) { |
| 16 | 16 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
| 17 | - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); |
|
| 17 | + fwrite(STDERR, 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.implode(PHP_EOL, $issues).PHP_EOL.PHP_EOL); |
|
| 18 | 18 | } elseif (!headers_sent()) { |
| 19 | - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; |
|
| 19 | + echo 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)).PHP_EOL.PHP_EOL; |
|
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | trigger_error( |
| 23 | - 'Composer detected issues in your platform: ' . implode(' ', $issues), |
|
| 23 | + 'Composer detected issues in your platform: '.implode(' ', $issues), |
|
| 24 | 24 | E_USER_ERROR |
| 25 | 25 | ); |
| 26 | 26 | } |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | 'pretty_version' => '1.0.0+no-version-set', |
| 4 | 4 | 'version' => '1.0.0.0', |
| 5 | 5 | 'type' => 'library', |
| 6 | - 'install_path' => __DIR__ . '/../../', |
|
| 6 | + 'install_path' => __DIR__.'/../../', |
|
| 7 | 7 | 'aliases' => array(), |
| 8 | 8 | 'reference' => NULL, |
| 9 | 9 | 'name' => 'kristuff/mishell', |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | 'pretty_version' => '1.0.0+no-version-set', |
| 15 | 15 | 'version' => '1.0.0.0', |
| 16 | 16 | 'type' => 'library', |
| 17 | - 'install_path' => __DIR__ . '/../../', |
|
| 17 | + 'install_path' => __DIR__.'/../../', |
|
| 18 | 18 | 'aliases' => array(), |
| 19 | 19 | 'reference' => NULL, |
| 20 | 20 | 'dev_requirement' => false, |
@@ -58,12 +58,12 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | protected static $defaultVerticalSign = '|'; |
| 60 | 60 | |
| 61 | - /** |
|
| 62 | - * The default vertical sign. |
|
| 63 | - * |
|
| 64 | - * @access protected |
|
| 65 | - * @var string |
|
| 66 | - */ |
|
| 61 | + /** |
|
| 62 | + * The default vertical sign. |
|
| 63 | + * |
|
| 64 | + * @access protected |
|
| 65 | + * @var string |
|
| 66 | + */ |
|
| 67 | 67 | protected static $defaultVerticalInnerSign = '+'; |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | public static $verticalHeaderSeparator = '+'; |
| 108 | 108 | |
| 109 | - /** |
|
| 109 | + /** |
|
| 110 | 110 | * The vertical separator sign. |
| 111 | 111 | * |
| 112 | 112 | * @access public |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * |
| 258 | 258 | * @return string |
| 259 | 259 | */ |
| 260 | - public static function tableRow() |
|
| 260 | + public static function tableRow() |
|
| 261 | 261 | { |
| 262 | 262 | // get and parse arguments: |
| 263 | 263 | // - extract first argument (columns list) |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * @access public |
| 81 | 81 | * @var string |
| 82 | 82 | */ |
| 83 | - public static $tableCellPadding = ' '; |
|
| 83 | + public static $tableCellPadding = ' '; |
|
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * The horizontal separator sign. |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * @access public |
| 97 | 97 | * @var string |
| 98 | 98 | */ |
| 99 | - public static $verticalSeparator = '|'; |
|
| 99 | + public static $verticalSeparator = '|'; |
|
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * The vertical header separator sign. |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * @access public |
| 105 | 105 | * @var string |
| 106 | 106 | */ |
| 107 | - public static $verticalHeaderSeparator = '+'; |
|
| 107 | + public static $verticalHeaderSeparator = '+'; |
|
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | 110 | * The vertical separator sign. |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * @access public |
| 113 | 113 | * @var string |
| 114 | 114 | */ |
| 115 | - public static $verticalInnerSeparator = '+'; |
|
| 115 | + public static $verticalInnerSeparator = '+'; |
|
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * Resets the default options |
@@ -148,13 +148,13 @@ discard block |
||
| 148 | 148 | $columnsPads = !empty($args) ? $args[0] : []; |
| 149 | 149 | array_shift($args); |
| 150 | 150 | |
| 151 | - $str = self::$verticalSeparator ; |
|
| 152 | - $cellPaddingLenght = mb_strlen(self::$tableCellPadding) *2; |
|
| 153 | - foreach ($columnsPads as $key => $pad){ |
|
| 154 | - $str .= str_repeat(self::$horizontalSeparator , $pad + $cellPaddingLenght) .self::$verticalInnerSeparator; |
|
| 151 | + $str = self::$verticalSeparator; |
|
| 152 | + $cellPaddingLenght = mb_strlen(self::$tableCellPadding)*2; |
|
| 153 | + foreach ($columnsPads as $key => $pad) { |
|
| 154 | + $str .= str_repeat(self::$horizontalSeparator, $pad+$cellPaddingLenght).self::$verticalInnerSeparator; |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - return self::getCliString(self::$verticalInnerSeparator === '' ? $str : substr($str, 0, mb_strlen($str) -1). self::$verticalSeparator, $args); |
|
| 157 | + return self::getCliString(self::$verticalInnerSeparator === '' ? $str : substr($str, 0, mb_strlen($str)-1).self::$verticalSeparator, $args); |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
@@ -174,12 +174,12 @@ discard block |
||
| 174 | 174 | $columnsPads = !empty($args) ? $args[0] : []; |
| 175 | 175 | array_shift($args); |
| 176 | 176 | |
| 177 | - $str = self::$verticalHeaderSeparator ; |
|
| 178 | - $cellPaddingLenght = mb_strlen(self::$tableCellPadding) *2; |
|
| 179 | - foreach ($columnsPads as $key => $pad){ |
|
| 180 | - $str .= str_repeat(self::$horizontalSeparator , $pad + $cellPaddingLenght) .self::$verticalInnerSeparator ; |
|
| 177 | + $str = self::$verticalHeaderSeparator; |
|
| 178 | + $cellPaddingLenght = mb_strlen(self::$tableCellPadding)*2; |
|
| 179 | + foreach ($columnsPads as $key => $pad) { |
|
| 180 | + $str .= str_repeat(self::$horizontalSeparator, $pad+$cellPaddingLenght).self::$verticalInnerSeparator; |
|
| 181 | 181 | } |
| 182 | - return self::getCliString(self::$verticalInnerSeparator === '' ? $str : substr($str, 0, mb_strlen($str) -1). self::$verticalHeaderSeparator, $args); |
|
| 182 | + return self::getCliString(self::$verticalInnerSeparator === '' ? $str : substr($str, 0, mb_strlen($str)-1).self::$verticalHeaderSeparator, $args); |
|
| 183 | 183 | |
| 184 | 184 | } |
| 185 | 185 | |
@@ -203,12 +203,12 @@ discard block |
||
| 203 | 203 | $columnsPads = !empty($args) ? $args[0] : []; |
| 204 | 204 | array_shift($args); |
| 205 | 205 | |
| 206 | - $str = self::$verticalSeparator ; |
|
| 207 | - foreach ($columnsPads as $pad){ |
|
| 206 | + $str = self::$verticalSeparator; |
|
| 207 | + foreach ($columnsPads as $pad) { |
|
| 208 | 208 | $str .= self::$tableCellPadding. |
| 209 | 209 | str_pad(' ', $pad). |
| 210 | 210 | self::$tableCellPadding. |
| 211 | - self::$verticalSeparator ; |
|
| 211 | + self::$verticalSeparator; |
|
| 212 | 212 | } |
| 213 | 213 | return self::getCliString($str, $args); |
| 214 | 214 | } |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | $str = self::$verticalSeparator; |
| 272 | 272 | |
| 273 | 273 | // add columns |
| 274 | - foreach ($columns as $column => $pad){ |
|
| 274 | + foreach ($columns as $column => $pad) { |
|
| 275 | 275 | $str .= self::$tableCellPadding. |
| 276 | 276 | self::pad($column, $pad). |
| 277 | 277 | self::$tableCellPadding. |
@@ -279,6 +279,6 @@ discard block |
||
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | // format full row |
| 282 | - return self::getCliString($str, $args) ; |
|
| 282 | + return self::getCliString($str, $args); |
|
| 283 | 283 | } |
| 284 | 284 | } |
| 285 | 285 | \ No newline at end of file |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public static function getColumns(): int |
| 52 | 52 | { |
| 53 | - if (!self::isWin() ){ |
|
| 53 | + if (!self::isWin()) { |
|
| 54 | 54 | return (int) shell_exec('tput cols'); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public static function getLines() |
| 69 | 69 | { |
| 70 | - if (!self::isWin() ){ |
|
| 70 | + if (!self::isWin()) { |
|
| 71 | 71 | return (int) shell_exec('tput lines'); |
| 72 | 72 | } |
| 73 | 73 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | public static function newWindow() |
| 84 | 84 | { |
| 85 | - if (!self::isWin() ){ |
|
| 85 | + if (!self::isWin()) { |
|
| 86 | 86 | system('tput smcup'); |
| 87 | 87 | self::clear(); |
| 88 | 88 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | public static function restoreWindow() |
| 100 | 100 | { |
| 101 | - if (!self::isWin() ){ |
|
| 101 | + if (!self::isWin()) { |
|
| 102 | 102 | system('tput rmcup'); |
| 103 | 103 | } |
| 104 | 104 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | public static function hideInput() |
| 115 | 115 | { |
| 116 | - if (!self::isWin() ){ |
|
| 116 | + if (!self::isWin()) { |
|
| 117 | 117 | system('stty -echo'); |
| 118 | 118 | } |
| 119 | 119 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public static function restoreInput() |
| 130 | 130 | { |
| 131 | - if (!self::isWin()){ |
|
| 131 | + if (!self::isWin()) { |
|
| 132 | 132 | system('stty echo'); |
| 133 | 133 | } |
| 134 | 134 | } |