@@ -10,7 +10,7 @@ |
||
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') |
@@ -235,10 +235,10 @@ discard block |
||
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 |
||
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 | } |
@@ -31,7 +31,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | { |
@@ -10,7 +10,7 @@ |
||
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') |
@@ -16,13 +16,13 @@ |
||
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 | } |
@@ -10,7 +10,7 @@ |
||
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') |
@@ -46,7 +46,7 @@ |
||
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(); |
@@ -16,52 +16,52 @@ |
||
16 | 16 | public function testForMenuShouldReturnArray() |
17 | 17 | { |
18 | 18 | $menuService = $this->getMockBuilder(\Menu\Service\MenuService::class) |
19 | - ->setMethods(['getNestedAll']) |
|
19 | + ->setMethods([ 'getNestedAll' ]) |
|
20 | 20 | ->disableOriginalConstructor() |
21 | 21 | ->getMockForAbstractClass(); |
22 | 22 | $menuService->expects(static::once()) |
23 | 23 | ->method('getNestedAll') |
24 | - ->willReturn([]); |
|
24 | + ->willReturn([ ]); |
|
25 | 25 | $menuHelper = new \Menu\View\Helper\MenuItems($menuService); |
26 | - static::assertSame([], $menuHelper->forMenu()); |
|
26 | + static::assertSame([ ], $menuHelper->forMenu()); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | public function testGetHeaderMenuShouldReturnArray() |
30 | 30 | { |
31 | 31 | $menuService = $this->getMockBuilder(\Menu\Service\MenuService::class) |
32 | - ->setMethods(['getNestedAll']) |
|
32 | + ->setMethods([ 'getNestedAll' ]) |
|
33 | 33 | ->disableOriginalConstructor() |
34 | 34 | ->getMockForAbstractClass(); |
35 | 35 | $menuService->expects(static::once()) |
36 | 36 | ->method('getNestedAll') |
37 | - ->willReturn([]); |
|
37 | + ->willReturn([ ]); |
|
38 | 38 | $menuHelper = new \Menu\View\Helper\MenuItems($menuService); |
39 | - static::assertSame([], $menuHelper->getHeaderMenu()); |
|
39 | + static::assertSame([ ], $menuHelper->getHeaderMenu()); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | public function testGetFooterShouldReturnArray() |
43 | 43 | { |
44 | 44 | $menuService = $this->getMockBuilder(\Menu\Service\MenuService::class) |
45 | - ->setMethods(['getNestedAll']) |
|
45 | + ->setMethods([ 'getNestedAll' ]) |
|
46 | 46 | ->disableOriginalConstructor() |
47 | 47 | ->getMockForAbstractClass(); |
48 | 48 | $menuService->expects(static::once()) |
49 | 49 | ->method('getNestedAll') |
50 | - ->willReturn([]); |
|
50 | + ->willReturn([ ]); |
|
51 | 51 | $menuHelper = new \Menu\View\Helper\MenuItems($menuService); |
52 | - static::assertSame([], $menuHelper->getFooterMenu()); |
|
52 | + static::assertSame([ ], $menuHelper->getFooterMenu()); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public function testGetSideMenuShouldReturnArray() |
56 | 56 | { |
57 | 57 | $menuService = $this->getMockBuilder(\Menu\Service\MenuService::class) |
58 | - ->setMethods(['getNestedAll']) |
|
58 | + ->setMethods([ 'getNestedAll' ]) |
|
59 | 59 | ->disableOriginalConstructor() |
60 | 60 | ->getMockForAbstractClass(); |
61 | 61 | $menuService->expects(static::once()) |
62 | 62 | ->method('getNestedAll') |
63 | - ->willReturn([]); |
|
63 | + ->willReturn([ ]); |
|
64 | 64 | $menuHelper = new \Menu\View\Helper\MenuItems($menuService); |
65 | - static::assertSame([], $menuHelper->getSideMenu()); |
|
65 | + static::assertSame([ ], $menuHelper->getSideMenu()); |
|
66 | 66 | } |
67 | 67 | } |
@@ -10,7 +10,7 @@ |
||
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') |
@@ -10,7 +10,7 @@ |
||
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') |