Completed
Push — master ( 487c4e...3ebe8c )
by Dan
06:24 queued 11s
created
src/Knp/FriendlyContexts/Context/RawMinkContext.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public function getMinkParameter($offset)
30 30
     {
31
-       if (!isset($this->minkParameters[$offset])) {
31
+        if (!isset($this->minkParameters[$offset])) {
32 32
             throw new \Exception(sprintf(
33 33
                 'Invalid mink parameter "%s".',
34 34
                 $offset
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
 
51 51
     public function locatePath($path)
52 52
     {
53
-        $startUrl = rtrim($this->getMinkParameter('base_url'), '/') . '/';
53
+        $startUrl = rtrim($this->getMinkParameter('base_url'), '/').'/';
54 54
 
55
-        return 0 !== strpos($path, 'http') ? $startUrl . ltrim($path, '/') : $path;
55
+        return 0 !== strpos($path, 'http') ? $startUrl.ltrim($path, '/') : $path;
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
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/Context/ApiContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
                     $this
185 185
                         ->getAsserter()
186 186
                         ->assertEquals($contentType, $formatedContentType)
187
-                     ;
187
+                        ;
188 188
                     return;
189 189
                 } catch (\Exception $e) {
190 190
                     continue;
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.