@@ -341,8 +341,8 @@ |
||
341 | 341 | |
342 | 342 | try { |
343 | 343 | $this->assertSame( |
344 | - "'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくや...しゑひもせす'", |
|
345 | - $this->trimNewline($this->exporter->shortenedExport('いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす')) |
|
344 | + "'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくや...しゑひもせす'", |
|
345 | + $this->trimNewline($this->exporter->shortenedExport('いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす')) |
|
346 | 346 | ); |
347 | 347 | } catch (\Exception $e) { |
348 | 348 | \mb_internal_encoding($oldMbInternalEncoding); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $obj2 = new \stdClass; |
33 | 33 | $obj2->foo = 'bar'; |
34 | 34 | |
35 | - $obj3 = (object) [1, 2, "Test\r\n", 4, 5, 6, 7, 8]; |
|
35 | + $obj3 = (object)[1, 2, "Test\r\n", 4, 5, 6, 7, 8]; |
|
36 | 36 | |
37 | 37 | $obj = new \stdClass; |
38 | 38 | //@codingStandardsIgnoreStart |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | $array = []; |
387 | 387 | $array["\0gcdata"] = ''; |
388 | 388 | |
389 | - $this->assertEquals([], $this->exporter->toArray((object) $array)); |
|
389 | + $this->assertEquals([], $this->exporter->toArray((object)$array)); |
|
390 | 390 | } |
391 | 391 | |
392 | 392 | private function trimNewline($string) |
@@ -140,12 +140,12 @@ discard block |
||
140 | 140 | public function toArray($value) |
141 | 141 | { |
142 | 142 | if (!\is_object($value)) { |
143 | - return (array) $value; |
|
143 | + return (array)$value; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | $array = []; |
147 | 147 | |
148 | - foreach ((array) $value as $key => $val) { |
|
148 | + foreach ((array)$value as $key => $val) { |
|
149 | 149 | // Exception traces commonly reference hundreds to thousands of |
150 | 150 | // objects currently loaded in memory. Including them in the result |
151 | 151 | // has a severe negative performance impact. |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | // private $property => "\0Classname\0property" |
158 | 158 | // protected $property => "\0*\0property" |
159 | 159 | // public $property => "property" |
160 | - if (\preg_match('/^\0.+\0(.+)$/', (string) $key, $matches)) { |
|
160 | + if (\preg_match('/^\0.+\0(.+)$/', (string)$key, $matches)) { |
|
161 | 161 | $key = $matches[1]; |
162 | 162 | } |
163 | 163 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | return 'false'; |
210 | 210 | } |
211 | 211 | |
212 | - if (\is_float($value) && (float) ((int) $value) === $value) { |
|
212 | + if (\is_float($value) && (float)((int)$value) === $value) { |
|
213 | 213 | return "$value.0"; |
214 | 214 | } |
215 | 215 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | "'"; |
241 | 241 | } |
242 | 242 | |
243 | - $whitespace = \str_repeat(' ', (int)(4 * $indentation)); |
|
243 | + $whitespace = \str_repeat(' ', (int)(4*$indentation)); |
|
244 | 244 | |
245 | 245 | if (!$processed) { |
246 | 246 | $processed = new Context; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * @var int |
16 | 16 | */ |
17 | - public const STDIN = 0; |
|
17 | + public const STDIN = 0; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @var int |
@@ -109,14 +109,14 @@ discard block |
||
109 | 109 | private function getNumberOfColumnsInteractive(): int |
110 | 110 | { |
111 | 111 | if (\function_exists('shell_exec') && \preg_match('#\d+ (\d+)#', \shell_exec('stty size') ?: '', $match) === 1) { |
112 | - if ((int) $match[1] > 0) { |
|
113 | - return (int) $match[1]; |
|
112 | + if ((int)$match[1] > 0) { |
|
113 | + return (int)$match[1]; |
|
114 | 114 | } |
115 | 115 | } |
116 | 116 | |
117 | 117 | if (\function_exists('shell_exec') && \preg_match('#columns = (\d+);#', \shell_exec('stty') ?: '', $match) === 1) { |
118 | - if ((int) $match[1] > 0) { |
|
119 | - return (int) $match[1]; |
|
118 | + if ((int)$match[1] > 0) { |
|
119 | + return (int)$match[1]; |
|
120 | 120 | } |
121 | 121 | } |
122 | 122 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | function &foo($bar) |
15 | 15 | { |
16 | - $baz = function () {}; |
|
16 | + $baz = function() {}; |
|
17 | 17 | $a = true ? true : false; |
18 | 18 | $b = "{$a}"; |
19 | 19 | $c = "${b}"; |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | public function testKeyPositionCanBeRetreived() { |
57 | 57 | $this->collection->add($this->item); |
58 | - foreach($this->collection as $key => $item) { |
|
58 | + foreach ($this->collection as $key => $item) { |
|
59 | 59 | $this->assertEquals(0, $key); |
60 | 60 | } |
61 | 61 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | public function testKeyPositionCanBeRetreived() { |
57 | 57 | $this->collection->add($this->item); |
58 | - foreach($this->collection as $key => $item) { |
|
58 | + foreach ($this->collection as $key => $item) { |
|
59 | 59 | $this->assertEquals(0, $key); |
60 | 60 | } |
61 | 61 | } |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $description = ''; |
96 | 96 | } |
97 | 97 | |
98 | - $version = (string) $this->version; |
|
98 | + $version = (string)$this->version; |
|
99 | 99 | |
100 | 100 | return $version . ($description !== '' ? ($version !== '' ? ' ' : '') . $description : ''); |
101 | 101 | } |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $description = ''; |
96 | 96 | } |
97 | 97 | |
98 | - $version = (string) $this->version; |
|
98 | + $version = (string)$this->version; |
|
99 | 99 | |
100 | 100 | return $version . ($description !== '' ? ($version !== '' ? ' ' : '') . $description : ''); |
101 | 101 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | $description = ''; |
94 | 94 | } |
95 | 95 | |
96 | - $refers = (string) $this->refers; |
|
96 | + $refers = (string)$this->refers; |
|
97 | 97 | |
98 | 98 | return $refers . ($description !== '' ? ($refers !== '' ? ' ' : '') . $description : ''); |
99 | 99 | } |