Completed
Pull Request — master (#114)
by
unknown
30:05
created
packages/Web/Action/HomeAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Web\Action;
6 6
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $page = $this->pageService->getHomepage();
56 56
 
57 57
         return new HtmlResponse($this->template->render('web::home',
58
-            ['page' => $page, 'layout' => 'layout/web']));
58
+            [ 'page' => $page, 'layout' => 'layout/web' ]));
59 59
     }
60 60
 
61 61
 }
Please login to merge, or discard this patch.
packages/Web/Action/EventsAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Web\Action;
6 6
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         callable $next = null
61 61
     ) {
62 62
         $params       = $request->getQueryParams();
63
-        $page         = isset($params['page']) ? $params['page'] : 1;
63
+        $page         = isset($params[ 'page' ]) ? $params[ 'page' ] : 1;
64 64
         $futureEvents = $this->eventService->fetchFutureEvents();
65 65
         $pastEvents   = $this->eventService->fetchPastEventsPagination($page, 10);
66 66
         $category     = $this->categoryService->getCategoryBySlug('events');
Please login to merge, or discard this patch.
packages/Web/Action/VideoAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Web\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Web/Action/PostAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Web\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Menu/tests/Factory/Controller/IndexControllerFactoryTest.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/Menu/tests/Factory/FilterFactoryTest.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/Menu/tests/Factory/Service/MenuServiceFactoryTest.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/Menu/tests/Factory/MapperFactoryTest.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/Menu/tests/Mapper/MenuMapperTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
             ->method('createStatement')
33 33
             ->willReturn($statementMock);
34 34
         $adapterMock = $this->getMockBuilder(\Zend\Db\Adapter\Adapter::class)
35
-            ->setConstructorArgs([$driverMock])
35
+            ->setConstructorArgs([ $driverMock ])
36 36
             ->getMockForAbstractClass();
37 37
 
38 38
         $menuMapper = new \Menu\Mapper\MenuMapper();
39 39
         $menuMapper->setDbAdapter($adapterMock);
40 40
         $menuMapper->initialize();
41
-        static::assertInstanceOf(\Zend\Db\ResultSet\ResultSet::class, $menuMapper->selectAll(true, ['is_in_header' => 1]));
41
+        static::assertInstanceOf(\Zend\Db\ResultSet\ResultSet::class, $menuMapper->selectAll(true, [ 'is_in_header' => 1 ]));
42 42
     }
43 43
 
44 44
     public function testSelectAllWithFooterFilterShouldReturnSelectInstance()
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
             ->method('createStatement')
58 58
             ->willReturn($statementMock);
59 59
         $adapterMock = $this->getMockBuilder(\Zend\Db\Adapter\Adapter::class)
60
-            ->setConstructorArgs([$driverMock])
60
+            ->setConstructorArgs([ $driverMock ])
61 61
             ->getMockForAbstractClass();
62 62
 
63 63
         $menuMapper = new \Menu\Mapper\MenuMapper();
64 64
         $menuMapper->setDbAdapter($adapterMock);
65 65
         $menuMapper->initialize();
66
-        static::assertInstanceOf(\Zend\Db\ResultSet\ResultSet::class, $menuMapper->selectAll(true, ['is_in_footer' => 1]));
66
+        static::assertInstanceOf(\Zend\Db\ResultSet\ResultSet::class, $menuMapper->selectAll(true, [ 'is_in_footer' => 1 ]));
67 67
     }
68 68
 
69 69
     public function testSelectAllWithSideFilterShouldReturnSelectInstance()
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
             ->method('createStatement')
83 83
             ->willReturn($statementMock);
84 84
         $adapterMock = $this->getMockBuilder(\Zend\Db\Adapter\Adapter::class)
85
-            ->setConstructorArgs([$driverMock])
85
+            ->setConstructorArgs([ $driverMock ])
86 86
             ->getMockForAbstractClass();
87 87
 
88 88
         $menuMapper = new \Menu\Mapper\MenuMapper();
89 89
         $menuMapper->setDbAdapter($adapterMock);
90 90
         $menuMapper->initialize();
91
-        static::assertInstanceOf(\Zend\Db\ResultSet\ResultSet::class, $menuMapper->selectAll(true, ['is_in_side' => 1]));
91
+        static::assertInstanceOf(\Zend\Db\ResultSet\ResultSet::class, $menuMapper->selectAll(true, [ 'is_in_side' => 1 ]));
92 92
     }
93 93
 
94 94
     public function testInsertmenuItemShouldReturnId()
@@ -107,12 +107,12 @@  discard block
 block discarded – undo
107 107
             ->method('createStatement')
108 108
             ->willReturn($statementMock);
109 109
         $adapterMock = $this->getMockBuilder(\Zend\Db\Adapter\Adapter::class)
110
-            ->setConstructorArgs([$driverMock])
110
+            ->setConstructorArgs([ $driverMock ])
111 111
             ->getMockForAbstractClass();
112 112
 
113 113
         $menuMapper = new \Menu\Mapper\MenuMapper();
114 114
         $menuMapper->setDbAdapter($adapterMock);
115 115
         $menuMapper->initialize();
116
-        static::assertInstanceOf(\Zend\Db\ResultSet\ResultSet::class, $menuMapper->insertMenuItem([]));
116
+        static::assertInstanceOf(\Zend\Db\ResultSet\ResultSet::class, $menuMapper->insertMenuItem([ ]));
117 117
     }
118 118
 }
119 119
\ No newline at end of file
Please login to merge, or discard this patch.