@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | 8, |
43 | 43 | ]; |
44 | 44 | |
45 | - $constraints = \array_map(function (int $count) { |
|
45 | + $constraints = \array_map(function(int $count) { |
|
46 | 46 | return \CountConstraint::fromCount($count); |
47 | 47 | }, $counts); |
48 | 48 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | 'is rich in unsaturated fats', |
64 | 64 | ]; |
65 | 65 | |
66 | - $constraints = \array_map(function (string $name) { |
|
66 | + $constraints = \array_map(function(string $name) { |
|
67 | 67 | return \NamedConstraint::fromName($name); |
68 | 68 | }, $names); |
69 | 69 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | { |
230 | 230 | return \implode( |
231 | 231 | ' and ', |
232 | - \array_map(function (Constraint $constraint) { |
|
232 | + \array_map(function(Constraint $constraint) { |
|
233 | 233 | return $constraint->toString(); |
234 | 234 | }, $constraints) |
235 | 235 | ); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | 8, |
36 | 36 | ]; |
37 | 37 | |
38 | - $constraints = \array_map(function (int $count) { |
|
38 | + $constraints = \array_map(function(int $count) { |
|
39 | 39 | return \CountConstraint::fromCount($count); |
40 | 40 | }, $counts); |
41 | 41 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'is rich in unsaturated fats', |
57 | 57 | ]; |
58 | 58 | |
59 | - $constraints = \array_map(function (string $name) { |
|
59 | + $constraints = \array_map(function(string $name) { |
|
60 | 60 | return \NamedConstraint::fromName($name); |
61 | 61 | }, $names); |
62 | 62 | |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | { |
225 | 225 | return \implode( |
226 | 226 | ' or ', |
227 | - \array_map(function (Constraint $constraint) { |
|
227 | + \array_map(function(Constraint $constraint) { |
|
228 | 228 | return $constraint->toString(); |
229 | 229 | }, $constraints) |
230 | 230 | ); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $other = 'Foo'; |
21 | 21 | $count = 5; |
22 | 22 | |
23 | - $constraints = \array_map(function () use ($other) { |
|
23 | + $constraints = \array_map(function() use ($other) { |
|
24 | 24 | static $count = 0; |
25 | 25 | |
26 | 26 | $constraint = $this->getMockBuilder(Constraint::class)->getMock(); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | ->expects($this->once()) |
30 | 30 | ->method('evaluate') |
31 | 31 | ->with($this->identicalTo($other)) |
32 | - ->willReturn($count % 2 === 1); |
|
32 | + ->willReturn($count%2 === 1); |
|
33 | 33 | |
34 | 34 | ++$count; |
35 | 35 |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | |
26 | 26 | public function testConstraintCallback(): void |
27 | 27 | { |
28 | - $closureReflect = function ($parameter) { |
|
28 | + $closureReflect = function($parameter) { |
|
29 | 29 | return $parameter; |
30 | 30 | }; |
31 | 31 | |
32 | - $closureWithoutParameter = function () { |
|
32 | + $closureWithoutParameter = function() { |
|
33 | 33 | return true; |
34 | 34 | }; |
35 | 35 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | public function testConstraintCallbackFailure(): void |
55 | 55 | { |
56 | - $constraint = new Callback(function () { |
|
56 | + $constraint = new Callback(function() { |
|
57 | 57 | return false; |
58 | 58 | }); |
59 | 59 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | public function testExportingObjectsDoesNotBreakWindowsLineFeeds(): void |
15 | 15 | { |
16 | 16 | $this->assertEquals( |
17 | - (object) [1, 2, "Test\r\n", 4, 5, 6, 7, 8], |
|
18 | - (object) [1, 2, "Test\r\n", 4, 1, 6, 7, 8] |
|
17 | + (object)[1, 2, "Test\r\n", 4, 5, 6, 7, 8], |
|
18 | + (object)[1, 2, "Test\r\n", 4, 1, 6, 7, 8] |
|
19 | 19 | ); |
20 | 20 | } |
21 | 21 | } |
@@ -16,6 +16,6 @@ |
||
16 | 16 | $globalNull = null; |
17 | 17 | $globalArray = ['foo']; |
18 | 18 | $globalNestedArray = [['foo']]; |
19 | -$globalObject = (object) ['foo'=> 'bar']; |
|
20 | -$globalObjectWithBackSlashString = (object) ['foo'=> 'back\\slash']; |
|
21 | -$globalObjectWithDoubleBackSlashString = (object) ['foo'=> 'back\\\\slash']; |
|
19 | +$globalObject = (object)['foo'=> 'bar']; |
|
20 | +$globalObjectWithBackSlashString = (object)['foo'=> 'back\\slash']; |
|
21 | +$globalObjectWithDoubleBackSlashString = (object)['foo'=> 'back\\\\slash']; |
@@ -62,16 +62,16 @@ |
||
62 | 62 | |
63 | 63 | public function testGlobalObject(): void |
64 | 64 | { |
65 | - $this->assertEquals((object) ['foo'=> 'bar'], $GLOBALS['globalObject']); |
|
65 | + $this->assertEquals((object)['foo'=> 'bar'], $GLOBALS['globalObject']); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | public function testGlobalObjectWithBackSlashString(): void |
69 | 69 | { |
70 | - $this->assertEquals((object) ['foo'=> 'back\\slash'], $GLOBALS['globalObjectWithBackSlashString']); |
|
70 | + $this->assertEquals((object)['foo'=> 'back\\slash'], $GLOBALS['globalObjectWithBackSlashString']); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | public function testGlobalObjectWithDoubleBackSlashString(): void |
74 | 74 | { |
75 | - $this->assertEquals((object) ['foo'=> 'back\\\\slash'], $GLOBALS['globalObjectWithDoubleBackSlashString']); |
|
75 | + $this->assertEquals((object)['foo'=> 'back\\\\slash'], $GLOBALS['globalObjectWithDoubleBackSlashString']); |
|
76 | 76 | } |
77 | 77 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | parent::setUpBeforeClass(); |
29 | 29 | |
30 | 30 | if (\file_exists(self::PROCESS_ID_FILE_PATH)) { |
31 | - static::$masterPid = (int) \file_get_contents(self::PROCESS_ID_FILE_PATH); |
|
31 | + static::$masterPid = (int)\file_get_contents(self::PROCESS_ID_FILE_PATH); |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | parent::__construct($iterator); |
26 | 26 | |
27 | 27 | foreach ($suite->getGroupDetails() as $group => $tests) { |
28 | - if (\in_array((string) $group, $groups, true)) { |
|
28 | + if (\in_array((string)$group, $groups, true)) { |
|
29 | 29 | $testHashes = \array_map( |
30 | 30 | 'spl_object_hash', |
31 | 31 | $tests |