Completed
Push — master ( 1a7910...41e170 )
by Aleksandar
126:10 queued 78:50
created
packages/Newsletter/tests/Service/NewsletterServiceFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
             ->disableOriginalConstructor()
11 11
             ->getMockForAbstractClass();
12 12
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
13
-            ->setMethods(['get'])
13
+            ->setMethods([ 'get' ])
14 14
             ->getMockForAbstractClass();
15 15
         $container->expects(static::at(0))
16 16
             ->method('get')
Please login to merge, or discard this patch.
packages/Newsletter/tests/Mapper/PageMapperFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
             ->disableOriginalConstructor()
11 11
             ->getMockForAbstractClass();
12 12
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
13
-            ->setMethods(['get'])
13
+            ->setMethods([ 'get' ])
14 14
             ->getMockForAbstractClass();
15 15
         $container->expects(static::at(0))
16 16
             ->method('get')
Please login to merge, or discard this patch.
packages/Newsletter/tests/Web/Action/HelperPostActionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
     {
9 9
         $newsletterService = $this->getMockBuilder(\Newsletter\Service\NewsletterService::class)
10 10
             ->disableOriginalConstructor()
11
-            ->setMethods(['registerNew'])
11
+            ->setMethods([ 'registerNew' ])
12 12
             ->getMockForAbstractClass();
13 13
         $newsletterService->expects(static::once())
14 14
             ->method('registerNew')
@@ -24,14 +24,14 @@  discard block
 block discarded – undo
24 24
     public function testHandlePostActionShouldReturnJsonResponseWithSuccess()
25 25
     {
26 26
         $newsletterService = $this->getMockBuilder(\Newsletter\Service\NewsletterService::class)
27
-            ->setMethods(['registerNew'])
27
+            ->setMethods([ 'registerNew' ])
28 28
             ->disableOriginalConstructor()
29 29
             ->getMockForAbstractClass();
30 30
         $request = $this->getMockBuilder(\Psr\Http\Message\ServerRequestInterface::class)
31 31
             ->getMockForAbstractClass();
32 32
         $request->expects(static::once())
33 33
             ->method('getParsedBody')
34
-            ->willReturn(['email' => '[email protected]']);
34
+            ->willReturn([ 'email' => '[email protected]' ]);
35 35
         $response = $this->getMockBuilder(\Psr\Http\Message\ResponseInterface::class)
36 36
             ->getMockForAbstractClass();
37 37
         $newsletterAction = new \Newsletter\Web\Action\HandlePostAction($newsletterService);
Please login to merge, or discard this patch.
packages/Newsletter/tests/Web/Action/HandlePostActionFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
             ->disableOriginalConstructor()
11 11
             ->getMockForAbstractClass();
12 12
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
13
-            ->setMethods(['get'])
13
+            ->setMethods([ 'get' ])
14 14
             ->getMockForAbstractClass();
15 15
         $container->expects(static::once())
16 16
             ->method('get')
Please login to merge, or discard this patch.
packages/Page/src/Entity/Page.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -235,10 +235,10 @@  discard block
 block discarded – undo
235 235
      *
236 236
      * @param array $data
237 237
      */
238
-    public function exchangeArray($data = [])
238
+    public function exchangeArray($data = [ ])
239 239
     {
240 240
         foreach (array_keys(get_object_vars($this)) as $property) {
241
-            $this->{$property} = isset($data[$property]) ? $data[$property]
241
+            $this->{$property} = isset($data[ $property ]) ? $data[ $property ]
242 242
                 : null;
243 243
         }
244 244
     }
@@ -249,18 +249,18 @@  discard block
 block discarded – undo
249 249
     public function getArrayCopy()
250 250
     {
251 251
         return [
252
-            'page_uuid'         => (binary)$this->page_uuid,
253
-            'page_id'           => (string)$this->page_id,
254
-            'title'             => (string)$this->title,
255
-            'body'              => (string)$this->body,
256
-            'description'       => (string)$this->description,
257
-            'main_img'          => (string)$this->main_img,
258
-            'has_layout'        => (boolean)$this->has_layout,
259
-            'is_homepage'       => (boolean)$this->is_homepage,
260
-            'is_active'         => (boolean)$this->is_active,
261
-            'is_wysiwyg_editor' => (boolean)$this->is_wysiwyg_editor,
262
-            'created_at'        => (string)$this->created_at,
263
-            'slug'              => (string)$this->slug
252
+            'page_uuid'         => (binary) $this->page_uuid,
253
+            'page_id'           => (string) $this->page_id,
254
+            'title'             => (string) $this->title,
255
+            'body'              => (string) $this->body,
256
+            'description'       => (string) $this->description,
257
+            'main_img'          => (string) $this->main_img,
258
+            'has_layout'        => (boolean) $this->has_layout,
259
+            'is_homepage'       => (boolean) $this->is_homepage,
260
+            'is_active'         => (boolean) $this->is_active,
261
+            'is_wysiwyg_editor' => (boolean) $this->is_wysiwyg_editor,
262
+            'created_at'        => (string) $this->created_at,
263
+            'slug'              => (string) $this->slug
264 264
         ];
265 265
     }
266 266
 }
Please login to merge, or discard this patch.
packages/Page/tests/View/Helper/PageHelperFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
             ->disableOriginalConstructor()
11 11
             ->getMockForAbstractClass();
12 12
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
13
-            ->setMethods(['get'])
13
+            ->setMethods([ 'get' ])
14 14
             ->getMockForAbstractClass();
15 15
         $container->expects(static::at(0))
16 16
             ->method('get')
Please login to merge, or discard this patch.
packages/Page/tests/View/Helper/PageHelperTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
     public function testForSelectShouldReturnArray()
17 17
     {
18 18
         $pageService = $this->getMockBuilder(\Page\Service\PageService::class)
19
-            ->setMethods(['getForSelect'])
19
+            ->setMethods([ 'getForSelect' ])
20 20
             ->disableOriginalConstructor()
21 21
             ->getMockForAbstractClass();
22 22
         $pageService->expects(static::once())
23 23
             ->method('getForSelect')
24
-            ->willReturn([]);
24
+            ->willReturn([ ]);
25 25
         $pageHelper = new \Page\View\Helper\PageHelper($pageService);
26
-        static::assertSame([], $pageHelper->forSelect());
26
+        static::assertSame([ ], $pageHelper->forSelect());
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
packages/Page/tests/Mapper/PageMapperFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
             ->disableOriginalConstructor()
11 11
             ->getMockForAbstractClass();
12 12
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
13
-            ->setMethods(['get'])
13
+            ->setMethods([ 'get' ])
14 14
             ->getMockForAbstractClass();
15 15
         $container->expects(static::at(0))
16 16
             ->method('get')
Please login to merge, or discard this patch.
packages/Page/tests/Mapper/PageMapperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             ->method('createStatement')
47 47
             ->willReturn($statementMock);
48 48
         $adapterMock = $this->getMockBuilder(\Zend\Db\Adapter\Adapter::class)
49
-            ->setConstructorArgs([$driverMock])
49
+            ->setConstructorArgs([ $driverMock ])
50 50
             ->getMockForAbstractClass();
51 51
         $resultSetMock = $this->getMockBuilder(\Zend\Db\ResultSet\HydratingResultSet::class)
52 52
             ->getMockForAbstractClass();
Please login to merge, or discard this patch.