@@ -87,7 +87,7 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public function apply($input) |
| 89 | 89 | { |
| 90 | - return (string) Multiline::create($input)->setEol($this); |
|
| 90 | + return (string)Multiline::create($input)->setEol($this); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * getLastCommand returns the string last used by a previous call to `run()`. |
| 86 | 86 | * |
| 87 | - * @return string|null |
|
| 87 | + * @return string |
|
| 88 | 88 | */ |
| 89 | 89 | public function getLastCommand() |
| 90 | 90 | { |
@@ -88,14 +88,14 @@ discard block |
||
| 88 | 88 | public static function ensureInteger($value) |
| 89 | 89 | { |
| 90 | 90 | $numeric = self::ensure($value); |
| 91 | - if ((float) (int) $numeric !== (float) $numeric) { |
|
| 91 | + if ((float)(int)$numeric !== (float)$numeric) { |
|
| 92 | 92 | throw new \InvalidArgumentException(sprintf( |
| 93 | 93 | "Could not safely convert value '%s' of type '%s' to integer because of trailing decimal places.", |
| 94 | 94 | $value, |
| 95 | 95 | Type::summarize($value) |
| 96 | 96 | )); |
| 97 | 97 | } |
| 98 | - return (int) $numeric; |
|
| 98 | + return (int)$numeric; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -118,6 +118,6 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | public static function ensureFloat($value) |
| 120 | 120 | { |
| 121 | - return (float) self::ensure($value); |
|
| 121 | + return (float)self::ensure($value); |
|
| 122 | 122 | } |
| 123 | 123 | } |
@@ -191,10 +191,10 @@ |
||
| 191 | 191 | */ |
| 192 | 192 | private function trimPrecision($number) |
| 193 | 193 | { |
| 194 | - if ($this->precisionTrimming && strpos((string) $number, '.') !== false) { |
|
| 194 | + if ($this->precisionTrimming && strpos((string)$number, '.') !== false) { |
|
| 195 | 195 | $number = rtrim($number, '0'); |
| 196 | 196 | $number = rtrim($number, '.'); |
| 197 | - $number = (double) $number; |
|
| 197 | + $number = (double)$number; |
|
| 198 | 198 | } |
| 199 | 199 | return $number; |
| 200 | 200 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function __toString() |
| 37 | 37 | { |
| 38 | - return implode((string) $this->eol, $this->list); |
|
| 38 | + return implode((string)$this->eol, $this->list); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $quotedSeparator = preg_quote(DIRECTORY_SEPARATOR); |
| 34 | 34 | $pattern = '#' . $quotedSeparator . '+#'; |
| 35 | 35 | $path->path = preg_replace($pattern, $quotedSeparator, $path->path); |
| 36 | - return (string) $path; |
|
| 36 | + return (string)$path; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $path = self::create($path); |
| 51 | 51 | } |
| 52 | 52 | $path->path = str_replace(['\\', '/'], $directorySeparator, $path->path); |
| 53 | - return (string) $path; |
|
| 53 | + return (string)$path; |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |