@@ -86,7 +86,7 @@ |
||
86 | 86 | ->setAllowedTypes('entity', 'string') |
87 | 87 | ->setAllowedTypes('requirements', 'array') |
88 | 88 | ->setAllowedTypes('options', 'array') |
89 | - ->setNormalizer('route', function (Options $options, $value) { |
|
89 | + ->setNormalizer('route', function(Options $options, $value) { |
|
90 | 90 | if (null === $value && null === $options->offsetGet('pattern')) { |
91 | 91 | throw new InvalidOptionsException('A pattern or a route should be provided'); |
92 | 92 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | 'array', |
53 | 53 | 'string', |
54 | 54 | ]) |
55 | - ->setNormalizer('where', function (Options $options, $value) { |
|
55 | + ->setNormalizer('where', function(Options $options, $value) { |
|
56 | 56 | // Allow the configuration "where: article.enabled" instead of |
57 | 57 | // where: |
58 | 58 | // - article.enabled |
@@ -77,7 +77,7 @@ |
||
77 | 77 | $valueToFind = $accessor->getValue($entity, $property); |
78 | 78 | $found = false; |
79 | 79 | |
80 | - $crawler->filter($selector)->each(function (Crawler $node) use ($valueToFind, &$found) { |
|
80 | + $crawler->filter($selector)->each(function(Crawler $node) use ($valueToFind, &$found) { |
|
81 | 81 | if (false !== strpos($node->text(), $valueToFind)) { |
82 | 82 | $found = true; |
83 | 83 | } |
@@ -129,7 +129,7 @@ |
||
129 | 129 | $urlInfo = new UrlInfo( |
130 | 130 | $urlParts['scheme'], |
131 | 131 | $urlParts['host'], |
132 | - (int) $urlParts['port'], |
|
132 | + (int)$urlParts['port'], |
|
133 | 133 | $urlParts['path'], |
134 | 134 | $urlParts['query'], |
135 | 135 | $urlParts['fragment'], |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | public function testResolveWithoutEntity() |
37 | 37 | { |
38 | - $this->assertExceptionRaised(MissingOptionsException::class, function () { |
|
38 | + $this->assertExceptionRaised(MissingOptionsException::class, function() { |
|
39 | 39 | $this->createResolver([ |
40 | 40 | 'panda' => [ |
41 | 41 | 'provider' => 'my_little_provider', |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $this->assertEquals($provider, $registry->get('default')); |
26 | 26 | $this->assertEquals($provider, $registry->all()['default']); |
27 | 27 | |
28 | - $this->assertExceptionRaised(Exception::class, function () use ($registry) { |
|
28 | + $this->assertExceptionRaised(Exception::class, function() use ($registry) { |
|
29 | 29 | $registry->get('whatever'); |
30 | 30 | }); |
31 | 31 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | { |
97 | 97 | list($provider) = $this->createProvider(); |
98 | 98 | |
99 | - $resolver =$this->createMock(OptionsResolver::class); |
|
99 | + $resolver = $this->createMock(OptionsResolver::class); |
|
100 | 100 | |
101 | 101 | $provider->configure($resolver); |
102 | 102 | $this->assertTrue(true); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | 'host' => '127.0.0.1', |
110 | 110 | 'port' => '8000', |
111 | 111 | 'base_url' => null, |
112 | - ],[ |
|
112 | + ], [ |
|
113 | 113 | 'panda_route' => [ |
114 | 114 | 'provider' => 'symfony', |
115 | 115 | ], |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ], |
100 | 100 | ] |
101 | 101 | ]); |
102 | - $this->assertExceptionRaised(Exception::class, function () use ($handler, $crawler, $client) { |
|
102 | + $this->assertExceptionRaised(Exception::class, function() use ($handler, $crawler, $client) { |
|
103 | 103 | $handler->handle('existent_route', $crawler, $client); |
104 | 104 | }); |
105 | 105 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ] |
118 | 118 | ]); |
119 | 119 | |
120 | - $this->assertExceptionRaised(Exception::class, function () use ($handler, $crawler, $client) { |
|
120 | + $this->assertExceptionRaised(Exception::class, function() use ($handler, $crawler, $client) { |
|
121 | 121 | $handler->handle('existent_route', $crawler, $client); |
122 | 122 | }); |
123 | 123 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->assertCount(1, $registry->all()); |
29 | 29 | $this->assertEquals($handler, $registry->all()['my_handler']); |
30 | 30 | |
31 | - $this->assertExceptionRaised(Exception::class, function () use ($registry) { |
|
31 | + $this->assertExceptionRaised(Exception::class, function() use ($registry) { |
|
32 | 32 | $registry->get('wrong_handler'); |
33 | 33 | }); |
34 | 34 | } |