Completed
Push — master ( 468f99...0748be )
by Dan
21s queued 10s
created
src/Knp/FriendlyContexts/Context/TableContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             }
49 49
         }
50 50
 
51
-        $message = implode("\n", array_map(function ($e) { return $e->getMessage(); }, $exceptions));
51
+        $message = implode("\n", array_map(function($e) { return $e->getMessage(); }, $exceptions));
52 52
 
53 53
         throw new \Exception($message);
54 54
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             }
83 83
         }
84 84
 
85
-        $message = implode("\n", array_map(function ($e) { return $e->getMessage(); }, $exceptions));
85
+        $message = implode("\n", array_map(function($e) { return $e->getMessage(); }, $exceptions));
86 86
 
87 87
         throw new \Exception($message);
88 88
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function iShouldSeeATableWithRows($nbr)
95 95
     {
96
-        $nbr = (int) $nbr;
96
+        $nbr = (int)$nbr;
97 97
 
98 98
         $this->iShouldSeeATable();
99 99
         $exceptions = array();
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             }
113 113
         }
114 114
 
115
-        $message = implode("\n", array_map(function ($e) { return $e->getMessage(); }, $exceptions));
115
+        $message = implode("\n", array_map(function($e) { return $e->getMessage(); }, $exceptions));
116 116
 
117 117
         throw new \Exception($message);
118 118
     }
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Context/EntityContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function entitiesShouldHaveBeen($expected, $entity, $state)
107 107
     {
108
-        $expected = (int) $expected;
108
+        $expected = (int)$expected;
109 109
 
110 110
         $entityName = $this->resolveEntity($entity)->getName();
111 111
         $collection = $this
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             ->getCollection($entityName)
114 114
         ;
115 115
 
116
-        $records = array_map(function ($e) { return $e->getEntity(); }, $collection->all());
116
+        $records = array_map(function($e) { return $e->getEntity(); }, $collection->all());
117 117
         $entities = $this
118 118
             ->getEntityManager()
119 119
             ->getRepository($entityName)
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     {
178 178
         $this->storeTags($event);
179 179
 
180
-        if ($this->hasTags([ 'reset-schema', '~not-reset-schema' ])) {
180
+        if ($this->hasTags(['reset-schema', '~not-reset-schema'])) {
181 181
             foreach ($this->getEntityManagers() as $entityManager) {
182 182
                 $metadata = $this->getMetadata($entityManager);
183 183
 
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Context/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
                         'Failed to find a unique model from the name "%s", "%s" found',
150 150
                         $name,
151 151
                         implode('" and "', array_map(
152
-                            function ($rfl) {
152
+                            function($rfl) {
153 153
                                 return $rfl->getName();
154 154
                             },
155 155
                             $entities
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Builder/DeleteRequestBuilder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
         }
18 18
 
19 19
         $resource = $queries ?
20
-            sprintf('%s?%s', $uri, $this->formatQueryString($queries)) :
21
-            $uri
20
+            sprintf('%s?%s', $uri, $this->formatQueryString($queries)) : $uri
22 21
         ;
23 22
 
24 23
         return $this->getClient()->delete($resource, $headers, $body, $options);
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Builder/HeadRequestBuilder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
         parent::build($uri, $queries, $headers, $postBody, $body, $options);
10 10
 
11 11
         $resource = $queries ?
12
-            sprintf('%s?%s', $uri, $this->formatQueryString($queries)) :
13
-            $uri
12
+            sprintf('%s?%s', $uri, $this->formatQueryString($queries)) : $uri
14 13
         ;
15 14
 
16 15
         return $this->getClient()->head($resource, $headers, $options);
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Builder/GetRequestBuilder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
         parent::build($uri, $queries, $headers, $postBody, $body, $options);
11 11
 
12 12
         $resource = $queries ?
13
-            sprintf('%s?%s', $uri, $this->formatQueryString($queries)) :
14
-            $uri
13
+            sprintf('%s?%s', $uri, $this->formatQueryString($queries)) : $uri
15 14
         ;
16 15
 
17 16
         return $this->getClient()->get($resource, $headers, $options);
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Builder/OptionsRequestBuilder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
         parent::build($uri, $queries, $headers, $postBody, $body, $options);
10 10
 
11 11
         $resource = $queries ?
12
-            sprintf('%s?%s', $uri, $this->formatQueryString($queries)) :
13
-            $uri
12
+            sprintf('%s?%s', $uri, $this->formatQueryString($queries)) : $uri
14 13
         ;
15 14
 
16 15
         return $this->getClient()->options($resource, $options);
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/DependencyInjection/Compiler/KernelPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             $alias = $container
19 19
                 ->setAlias('friendly.symfony.kernel', 'symfony2_extension.kernel')
20 20
             ;
21
-            if ( ! $alias instanceof Alias) {
21
+            if (!$alias instanceof Alias) {
22 22
                 $alias = $container->getAlias('friendly.symfony.kernel');
23 23
             }
24 24
             $alias->setPublic(true);
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Alice/Fixtures/Alice2/Loader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@
 block discarded – undo
32 32
         parent::instantiateFixtures($fixtures);
33 33
 
34 34
         foreach ($fixtures as $fixture) {
35
-            $spec = array_map(function ($property) {
35
+            $spec = array_map(function($property) {
36 36
                 return $property->getValue();
37 37
             }, $fixture->getProperties());
38 38
 
39
-            $this->cache[] = [ $spec, $this->objects->get($fixture->getName()) ];
39
+            $this->cache[] = [$spec, $this->objects->get($fixture->getName())];
40 40
         }
41 41
     }
42 42
 }
Please login to merge, or discard this patch.