@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $stream->next(); |
| 61 | 61 | |
| 62 | 62 | $body = $this->parser->subparse( |
| 63 | - function (\Twig_Token $token) { |
|
| 63 | + function(\Twig_Token $token) { |
|
| 64 | 64 | return $token->test(['endcontenteditable']); |
| 65 | 65 | }, |
| 66 | 66 | true |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | if (!$this->authorizationChecker->isGranted('ROLE_ADMIN')) { |
| 55 | 55 | return; |
| 56 | 56 | } |
| 57 | - } |
|
| 58 | - catch (AuthenticationCredentialsNotFoundException $e) { |
|
| 57 | + } catch (AuthenticationCredentialsNotFoundException $e) { |
|
| 59 | 58 | return; |
| 60 | 59 | } |
| 61 | 60 | |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | $request = new Request(); |
| 166 | 166 | $response = new Response( |
| 167 | 167 | '<body></body>', |
| 168 | - 200, |
|
| 168 | + 200, |
|
| 169 | 169 | ['Content-Type' => 'text/html'] |
| 170 | 170 | ); |
| 171 | 171 | |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Persistence\ObjectManager; |
| 15 | 15 | use Doctrine\Common\Persistence\ObjectRepository; |
| 16 | -use Doctrine\ORM\UnitOfWork; |
|
| 17 | 16 | use Ivoaz\Bundle\ContentEditableBundle\Manager\ContentManager; |
| 18 | 17 | use Ivoaz\Bundle\ContentEditableBundle\Exception\MissingLocaleException; |
| 19 | 18 | use Ivoaz\Bundle\ContentEditableBundle\Model\Content; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | ->method('persist') |
| 128 | 128 | ->with( |
| 129 | 129 | $this->callback( |
| 130 | - function ($value) use ($expectedContent) { |
|
| 130 | + function($value) use ($expectedContent) { |
|
| 131 | 131 | return $value == $expectedContent; |
| 132 | 132 | } |
| 133 | 133 | ) |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | ->method('flush') |
| 138 | 138 | ->with( |
| 139 | 139 | $this->callback( |
| 140 | - function ($value) use ($expectedContent) { |
|
| 140 | + function($value) use ($expectedContent) { |
|
| 141 | 141 | return $value == $expectedContent; |
| 142 | 142 | } |
| 143 | 143 | ) |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | ->method('detach') |
| 201 | 201 | ->with( |
| 202 | 202 | $this->callback( |
| 203 | - function ($value) use ($content) { |
|
| 203 | + function($value) use ($content) { |
|
| 204 | 204 | return $value == $content; |
| 205 | 205 | } |
| 206 | 206 | ) |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | ], |
| 102 | 102 | [ |
| 103 | 103 | 'mongodb', |
| 104 | - ['ivoaz_content_editable' => ['model_type' => 'mongodb'],], |
|
| 104 | + ['ivoaz_content_editable' => ['model_type' => 'mongodb'], ], |
|
| 105 | 105 | 'The mongodb model type was not used.', |
| 106 | 106 | ], |
| 107 | 107 | ]; |