diff --git a/src/Adapter/Posix.php b/src/Adapter/Posix.php index d73dcb5..c432754 100644 --- a/src/Adapter/Posix.php +++ b/src/Adapter/Posix.php @@ -111,7 +111,7 @@ public function getWidth() * Try to read env variable */ if (($result = getenv('COLUMNS')) !== false) { - return $width = (int)$result; + return $width = (int) $result; } /** @@ -119,7 +119,7 @@ public function getWidth() */ $result = exec('tput cols', $output, $return); if (!$return && is_numeric($result)) { - return $width = (int)$result; + return $width = (int) $result; } return $width = parent::getWidth(); @@ -145,7 +145,7 @@ public function getHeight() // Try to read console size from "tput" command $result = exec('tput lines', $output, $return); if (!$return && is_numeric($result)) { - return $height = (int)$result; + return $height = (int) $result; } return $height = parent::getHeight(); diff --git a/src/Adapter/Windows.php b/src/Adapter/Windows.php index d8991ca..e35984c 100644 --- a/src/Adapter/Windows.php +++ b/src/Adapter/Windows.php @@ -85,7 +85,7 @@ public function getHeight() } if (count($this->probeResult) && (int) $this->probeResult[1]) { - $height = (int)$this->probeResult[1]; + $height = (int) $this->probeResult[1]; } else { $height = parent::getheight(); } diff --git a/src/Prompt/Number.php b/src/Prompt/Number.php index 0377c1a..75800cd 100644 --- a/src/Prompt/Number.php +++ b/src/Prompt/Number.php @@ -110,7 +110,7 @@ public function show() * Cast proper type */ if ($number !== null) { - $number = $this->allowFloat ? (double)$number : (int)$number; + $number = $this->allowFloat ? (double) $number : (int) $number; } return $this->lastResponse = $number;