Completed
Push — master ( 782d2b...c13a9b )
by
unknown
51:48 queued 23:53
created
packages/Admin/tests/Factory/Action/IndexFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
         $template = $this->getMockBuilder('Zend\Expressive\Template\TemplateRendererInterface')
10 10
             ->getMockForAbstractClass();
11 11
         $container = $this->getMockBuilder('Interop\Container\ContainerInterface')
12
-            ->setMethods(['get'])
12
+            ->setMethods([ 'get' ])
13 13
             ->getMockForAbstractClass();
14 14
         $container->expects(static::once())
15 15
             ->method('get')
Please login to merge, or discard this patch.
packages/Article/tests/Factory/Controller/PostFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             ->getMockForAbstractClass();
19 19
         $session = new \Zend\Session\SessionManager();
20 20
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
21
-            ->setMethods(['get'])
21
+            ->setMethods([ 'get' ])
22 22
             ->getMockForAbstractClass();
23 23
         $container->expects(static::at(0))
24 24
             ->method('get')
Please login to merge, or discard this patch.
packages/Article/tests/Factory/Controller/EventFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             ->getMockForAbstractClass();
19 19
         $session = new \Zend\Session\SessionManager();
20 20
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
21
-            ->setMethods(['get'])
21
+            ->setMethods([ 'get' ])
22 22
             ->getMockForAbstractClass();
23 23
         $container->expects(static::at(0))
24 24
             ->method('get')
Please login to merge, or discard this patch.
packages/Article/tests/Factory/Controller/VideoFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             ->getMockForAbstractClass();
19 19
         $session = new \Zend\Session\SessionManager();
20 20
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
21
-            ->setMethods(['get'])
21
+            ->setMethods([ 'get' ])
22 22
             ->getMockForAbstractClass();
23 23
         $container->expects(static::at(0))
24 24
             ->method('get')
Please login to merge, or discard this patch.
packages/Article/tests/Factory/Service/EventServiceFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
             ->getMockForAbstractClass();
21 21
 
22 22
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
23
-            ->setMethods(['get'])
23
+            ->setMethods([ 'get' ])
24 24
             ->getMockForAbstractClass();
25 25
         $container->expects(static::at(0))
26 26
             ->method('get')
27
-            ->will(static::returnValue(['upload' => ['public_path' => 'test', 'non_public_path' => 'test']]));
27
+            ->will(static::returnValue([ 'upload' => [ 'public_path' => 'test', 'non_public_path' => 'test' ] ]));
28 28
         $container->expects(static::at(1))
29 29
             ->method('get')
30 30
             ->will(static::returnValue($articleMapper));
Please login to merge, or discard this patch.
packages/Article/tests/Factory/Service/VideoServiceFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
             ->getMockForAbstractClass();
21 21
 
22 22
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
23
-            ->setMethods(['get'])
23
+            ->setMethods([ 'get' ])
24 24
             ->getMockForAbstractClass();
25 25
         $container->expects(static::at(0))
26 26
             ->method('get')
27
-            ->will(static::returnValue(['upload' => ['public_path' => 'test', 'non_public_path' => 'test']]));
27
+            ->will(static::returnValue([ 'upload' => [ 'public_path' => 'test', 'non_public_path' => 'test' ] ]));
28 28
         $container->expects(static::at(1))
29 29
             ->method('get')
30 30
             ->will(static::returnValue($articleMapper));
Please login to merge, or discard this patch.
packages/Article/tests/Factory/View/Helper/VideoHelperFactoryTest.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.
data/phinx/migrations/20161003183350_category.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,16 +9,16 @@
 block discarded – undo
9 9
 
10 10
     public function up()
11 11
     {
12
-        $this->table('category', ['id' => false, 'primary_key' => 'category_uuid'])
13
-            ->addColumn('category_uuid', 'binary', ['limit' => 16])
12
+        $this->table('category', [ 'id' => false, 'primary_key' => 'category_uuid' ])
13
+            ->addColumn('category_uuid', 'binary', [ 'limit' => 16 ])
14 14
             ->addColumn('category_id', 'text')
15 15
             ->addColumn('name', 'text')
16 16
             ->addColumn('slug', 'text')
17
-            ->addColumn('title', 'text', ['null' => true])
18
-            ->addColumn('description', 'text', ['null' => true])
19
-            ->addColumn('main_img', 'text', ['null' => true])
20
-            ->addColumn('is_in_homepage', 'boolean', ['default' => false])
21
-            ->addColumn('is_in_category_list', 'boolean', ['default' => true])
17
+            ->addColumn('title', 'text', [ 'null' => true ])
18
+            ->addColumn('description', 'text', [ 'null' => true ])
19
+            ->addColumn('main_img', 'text', [ 'null' => true ])
20
+            ->addColumn('is_in_homepage', 'boolean', [ 'default' => false ])
21
+            ->addColumn('is_in_category_list', 'boolean', [ 'default' => true ])
22 22
             ->create();
23 23
     }
24 24
 
Please login to merge, or discard this patch.
packages/Web/Action/CategoryAction.php 2 patches
Spacing   +5 added lines, -5 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
 
@@ -51,17 +51,17 @@  discard block
 block discarded – undo
51 51
     public function __invoke(Request $request, Response $response, callable $next = null)
52 52
     {
53 53
         $params     = $request->getQueryParams();
54
-        $page       = isset($params['page']) ? $params['page'] : 1;
54
+        $page       = isset($params[ 'page' ]) ? $params[ 'page' ] : 1;
55 55
         $urlSlug    = $request->getAttribute('category');
56 56
         $categories = $this->categoryService->getCategories(true);
57 57
         $category   = $this->categoryService->getCategoryBySlug($urlSlug);
58 58
 
59
-        if(!$category) {
60
-            if($urlSlug !== 'all') {
59
+        if (!$category) {
60
+            if ($urlSlug !== 'all') {
61 61
                 return $next($request, $response);
62 62
             }
63 63
 
64
-            $category = (object)[
64
+            $category = (object) [
65 65
                 'name'        => 'Svi članci',
66 66
                 'slug'        => 'all',
67 67
                 'title'       => 'Svi članci',
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,21 +21,21 @@
 block discarded – undo
21 21
     /**
22 22
 * 
23 23
      *
24
- * @var Template 
24
+     * @var Template 
25 25
 */
26 26
     private $template;
27 27
 
28 28
     /**
29 29
 * 
30 30
      *
31
- * @var PostService 
31
+     * @var PostService 
32 32
 */
33 33
     private $postService;
34 34
 
35 35
     /**
36 36
 * 
37 37
      *
38
- * @var CategoryService 
38
+     * @var CategoryService 
39 39
 */
40 40
     private $categoryService;
41 41
 
Please login to merge, or discard this patch.