@@ -48,7 +48,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -149,7 +149,7 @@ |
||
| 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 |
@@ -17,8 +17,7 @@ |
||
| 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); |
@@ -9,8 +9,7 @@ |
||
| 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); |
@@ -10,8 +10,7 @@ |
||
| 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); |
@@ -9,8 +9,7 @@ |
||
| 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); |
@@ -18,7 +18,7 @@ |
||
| 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); |
@@ -32,11 +32,11 @@ |
||
| 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 | } |