Completed
Push — master ( 88b7e8...d57605 )
by Aleksandar
26:29
created
data/phinx/seeds/Menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             'is_in_side'    => false,
41 41
             'order_no'      => 2,
42 42
             'page_uuid'     => null,
43
-            'category_uuid' => $categoryVideo['category_uuid']
43
+            'category_uuid' => $categoryVideo[ 'category_uuid' ]
44 44
         ])->save();
45 45
 
46 46
         // Insert events category in Menu
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             'is_in_side'    => false,
58 58
             'order_no'      => 3,
59 59
             'page_uuid'     => null,
60
-            'category_uuid' => $categoryEvent['category_uuid']
60
+            'category_uuid' => $categoryEvent[ 'category_uuid' ]
61 61
         ])->save();
62 62
 
63 63
         // Insert link to external web site
Please login to merge, or discard this patch.
packages/Newsletter/tests/Service/NewsletterServiceTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function testRegisterNewShouldReturnTrue()
22 22
     {
23 23
         $newsletterMapper = $this->getMockBuilder(\Newsletter\Mapper\NewsletterMapper::class)
24
-            ->setMethods(['insert', 'select', 'current'])
24
+            ->setMethods([ 'insert', 'select', 'current' ])
25 25
             ->disableOriginalConstructor()
26 26
             ->getMock();
27 27
         $newsletterMapper->expects(static::once())
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     public function testRegisterNewWithExistingEmailShouldDoNothingAndReturnNull()
42 42
     {
43 43
         $newsletterMapper = $this->getMockBuilder(\Newsletter\Mapper\NewsletterMapper::class)
44
-            ->setMethods(['select', 'current'])
44
+            ->setMethods([ 'select', 'current' ])
45 45
             ->disableOriginalConstructor()
46 46
             ->getMock();
47 47
         $newsletterMapper->expects(static::once())
Please login to merge, or discard this patch.
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 2 patches
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.
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-     * @param mixed $is_wysiwyg_editor
34
+     * @param integer $is_wysiwyg_editor
35 35
      */
36 36
     public function setIsWysiwygEditor($is_wysiwyg_editor)
37 37
     {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @param mixed $slug
50
+     * @param string $slug
51 51
      */
52 52
     public function setSlug($slug)
53 53
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @param mixed $is_active
73
+     * @param integer $is_active
74 74
      */
75 75
     public function setIsActive($is_active)
76 76
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-     * @param $page_uuid
89
+     * @param string $page_uuid
90 90
      */
91 91
     public function setPageUuid($page_uuid)
92 92
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-     * @param $page_id
105
+     * @param integer $page_id
106 106
      */
107 107
     public function setPageId($page_id)
108 108
     {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @param mixed $title
121
+     * @param string $title
122 122
      */
123 123
     public function setTitle($title)
124 124
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     }
135 135
 
136 136
     /**
137
-     * @param mixed $body
137
+     * @param string $body
138 138
      */
139 139
     public function setBody($body)
140 140
     {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     }
157 157
 
158 158
     /**
159
-     * @param mixed $description
159
+     * @param string $description
160 160
      */
161 161
     public function setDescription($description)
162 162
     {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     }
173 173
 
174 174
     /**
175
-     * @param mixed $main_img
175
+     * @param string $main_img
176 176
      */
177 177
     public function setMainImg($main_img)
178 178
     {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     }
203 203
 
204 204
     /**
205
-     * @param mixed $is_homepage
205
+     * @param integer $is_homepage
206 206
      */
207 207
     public function setIsHomepage($is_homepage)
208 208
     {
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.