@@ -96,7 +96,7 @@ |
||
| 96 | 96 | { |
| 97 | 97 | $this |
| 98 | 98 | ->given($selector = $this->newDefaultTestedInstance()) |
| 99 | - ->define($callable = function () { |
|
| 99 | + ->define($callable = function() { |
|
| 100 | 100 | }) |
| 101 | 101 | ->let($custom = $selector->custom($callable)) |
| 102 | 102 | ->let($selected = $selector->select(new Custom($callable))) |
@@ -61,10 +61,10 @@ |
||
| 61 | 61 | ->then() |
| 62 | 62 | ->string($composite->apply(array('foo' => (object) array('bar' => 'baz')))) |
| 63 | 63 | ->isEqualTo('baz') |
| 64 | - ->exception(function () use ($composite) { |
|
| 64 | + ->exception(function() use ($composite) { |
|
| 65 | 65 | $composite->apply(array('foo' => null)); |
| 66 | 66 | })->isInstanceOf(\RuntimeException::class) |
| 67 | - ->exception(function () use ($composite) { |
|
| 67 | + ->exception(function() use ($composite) { |
|
| 68 | 68 | $composite->apply(array('foo' => (object) array())); |
| 69 | 69 | })->isInstanceOf(\RuntimeException::class) |
| 70 | 70 | ; |
@@ -37,10 +37,10 @@ |
||
| 37 | 37 | ->then() |
| 38 | 38 | ->string($property->apply((object) array('foo' => 'bar'))) |
| 39 | 39 | ->isEqualTo('bar') |
| 40 | - ->exception(function () use ($property) { |
|
| 40 | + ->exception(function() use ($property) { |
|
| 41 | 41 | $property->apply(null); |
| 42 | 42 | })->isInstanceOf(\RuntimeException::class) |
| 43 | - ->exception(function () use ($property) { |
|
| 43 | + ->exception(function() use ($property) { |
|
| 44 | 44 | $property->apply((object) array()); |
| 45 | 45 | })->isInstanceOf(\RuntimeException::class) |
| 46 | 46 | ; |
@@ -79,10 +79,10 @@ discard block |
||
| 79 | 79 | $this |
| 80 | 80 | ->given($method = $this->newTestedInstance('foo')) |
| 81 | 81 | ->then() |
| 82 | - ->exception(function () use ($method) { |
|
| 82 | + ->exception(function() use ($method) { |
|
| 83 | 83 | $method->apply(null); |
| 84 | 84 | })->isInstanceOf(\RuntimeException::class) |
| 85 | - ->exception(function () use ($method) { |
|
| 85 | + ->exception(function() use ($method) { |
|
| 86 | 86 | $method->apply($this); |
| 87 | 87 | })->isInstanceOf(\RuntimeException::class) |
| 88 | 88 | ; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $this |
| 91 | 91 | ->given($method = $this->newTestedInstance('privateMethod')) |
| 92 | 92 | ->then() |
| 93 | - ->exception(function () use ($method) { |
|
| 93 | + ->exception(function() use ($method) { |
|
| 94 | 94 | $method->apply($this); |
| 95 | 95 | })->isInstanceOf(\RuntimeException::class) |
| 96 | 96 | ; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function newDefaultTestedInstance() |
| 27 | 27 | { |
| 28 | - return $this->newTestedInstance(function ($value) { |
|
| 28 | + return $this->newTestedInstance(function($value) { |
|
| 29 | 29 | return $value + 1; |
| 30 | 30 | }); |
| 31 | 31 | } |