Completed
Push — master ( 88b7e8...d57605 )
by Aleksandar
26:29
created
packages/Web/Action/HomeAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
         $page = $this->pageService->getHomepage();
59 59
 
60 60
         return new HtmlResponse($this->template->render('web::home',
61
-            ['page' => $page, 'layout' => 'layout/web']));
61
+            [ 'page' => $page, 'layout' => 'layout/web' ]));
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
packages/Web/Action/EventsAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         callable $next = null
66 66
     ) {
67 67
         $params       = $request->getQueryParams();
68
-        $page         = isset($params['page']) ? $params['page'] : 1;
68
+        $page         = isset($params[ 'page' ]) ? $params[ 'page' ] : 1;
69 69
         $futureEvents = $this->eventService->fetchFutureEvents();
70 70
         $pastEvents = $this->eventService->fetchPastEventsPagination($page, 10);
71 71
         $category = $this->categoryService->getCategoryBySlug('events');
Please login to merge, or discard this patch.
packages/Web/Factory/Action/CategoryActionFactory.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
 namespace Web\Factory\Action;
5 5
 
6 6
 use Article\Service\PostService;
Please login to merge, or discard this patch.
packages/Meetup/src/ConfigProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Meetup;
4 4
 
5 5
 class ConfigProvider
Please login to merge, or discard this patch.
packages/Meetup/src/MeetupApiService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Meetup;
4 4
 
5 5
 use GuzzleHttp\Client;
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
     public function getMeetupAttendees($eventUrl)
35 35
     {
36 36
         if (strpos($eventUrl, 'meetup.com') === false) {
37
-            return [];
37
+            return [ ];
38 38
         }
39 39
 
40 40
         try {
41 41
             $parts = explode('/', $eventUrl);
42
-            $meetupId = $parts[count($parts) - 2];
42
+            $meetupId = $parts[ count($parts) - 2 ];
43 43
             $uri = sprintf(self::API_URL, $meetupId, $this->key);
44 44
             $request = new Request('GET', $uri);
45 45
             $response = $this->httpClient->send($request);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
             return $attendees;
51 51
         } catch (\Exception $e) {
52
-            return [];
52
+            return [ ];
53 53
         }
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
packages/Meetup/src/MeetupApiServiceFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Meetup;
4 4
 
5 5
 use Interop\Container\ContainerInterface;
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function __invoke(ContainerInterface $container): MeetupApiService
16 16
     {
17
-        $config = $container->get('config')['meetupApi'];
17
+        $config = $container->get('config')[ 'meetupApi' ];
18 18
 
19
-        return new MeetupApiService($config['key']);
19
+        return new MeetupApiService($config[ 'key' ]);
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
packages/Category/tests/Factory/Service/CategoryServiceFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
         $categoryMapper = $this->getMockBuilder(\Category\Mapper\CategoryMapper::class)
12 12
             ->getMockForAbstractClass();
13 13
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
14
-            ->setMethods(['get'])
14
+            ->setMethods([ 'get' ])
15 15
             ->getMockForAbstractClass();
16 16
         $container->expects(static::at(0))
17 17
             ->method('get')
18
-            ->will(static::returnValue(['upload' => ['public_path' => 'test', 'non_public_path' => 'test']]));
18
+            ->will(static::returnValue([ 'upload' => [ 'public_path' => 'test', 'non_public_path' => 'test' ] ]));
19 19
         $container->expects(static::at(1))
20 20
             ->method('get')
21 21
             ->will(static::returnValue($categoryMapper));
Please login to merge, or discard this patch.
packages/Admin/tests/Service/AdminUserServiceTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
             public $admin_user_id = '123';
14 14
         };
15 15
         $bcrypt = $this->getMockBuilder(\Zend\Crypt\Password\Bcrypt::class)
16
-            ->setMethods(['verify'])
16
+            ->setMethods([ 'verify' ])
17 17
             ->getMock();
18 18
         $bcrypt->expects(static::once())
19 19
             ->method('verify')
20 20
             ->will(static::returnValue(true));
21 21
         $adminUsersMapper = $this->getMockBuilder(\Admin\Mapper\AdminUsersMapper::class)
22
-            ->setMethods(['getByEmail', 'updateLogin'])
22
+            ->setMethods([ 'getByEmail', 'updateLogin' ])
23 23
             ->getMock();
24 24
         $adminUsersMapper->expects(static::once())
25 25
             ->method('updateLogin')
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
             public $admin_user_uuid = 'uuid';
50 50
         };
51 51
         $bcrypt = $this->getMockBuilder(\Zend\Crypt\Password\Bcrypt::class)
52
-            ->setMethods(['verify'])
52
+            ->setMethods([ 'verify' ])
53 53
             ->getMock();
54 54
         $bcrypt->expects(static::once())
55 55
             ->method('verify')
56 56
             ->will(static::returnValue(false));
57 57
         $adminUsersMapper = $this->getMockBuilder(\Admin\Mapper\AdminUsersMapper::class)
58
-            ->setMethods(['getByEmail'])
58
+            ->setMethods([ 'getByEmail' ])
59 59
             ->getMock();
60 60
         $adminUsersMapper->expects(static::once())
61 61
             ->method('getByEmail')
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $bcrypt = $this->getMockBuilder(\Zend\Crypt\Password\Bcrypt::class)
81 81
             ->getMock();
82 82
         $adminUsersMapper = $this->getMockBuilder(\Admin\Mapper\AdminUsersMapper::class)
83
-            ->setMethods(['getByEmail'])
83
+            ->setMethods([ 'getByEmail' ])
84 84
             ->getMock();
85 85
         $adminUsersMapper->expects(static::once())
86 86
             ->method('getByEmail')
Please login to merge, or discard this patch.
packages/Admin/tests/Middleware/AdminAuthTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
     {
9 9
         $session = new \Zend\Session\SessionManager();
10 10
         $router = $this->getMockBuilder('Zend\Expressive\Router\RouterInterface')
11
-            ->setMethods(['generateUri'])
11
+            ->setMethods([ 'generateUri' ])
12 12
             ->getMockForAbstractClass();
13 13
         $router->expects(static::at(0))
14 14
             ->method('generateUri')
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
         $response = new \Zend\Diactoros\Response();
18 18
         $adminAuthMiddleware = new \Admin\Middleware\AdminAuth($router, $session);
19 19
         /** @var \Zend\Diactoros\Response $response */
20
-        $response = $adminAuthMiddleware($request, $response, function ($request, $response) {
20
+        $response = $adminAuthMiddleware($request, $response, function($request, $response) {
21 21
 
22 22
         });
23 23
         static::assertSame(302, $response->getStatusCode());
24
-        static::assertSame(['http://unfinished.dev/admin/login'], $response->getHeader('Location'));
24
+        static::assertSame([ 'http://unfinished.dev/admin/login' ], $response->getHeader('Location'));
25 25
     }
26 26
 
27 27
     public function testExecutionShouldContinueFurtherIfUserIsLoggedIn()
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $request = new \Zend\Diactoros\ServerRequest();
40 40
         $response = new \Zend\Diactoros\Response();
41 41
         $adminAuthMiddleware = new \Admin\Middleware\AdminAuth($router, $session);
42
-        $middlewareResponse = $adminAuthMiddleware($request, $response, function ($request, $response) {
42
+        $middlewareResponse = $adminAuthMiddleware($request, $response, function($request, $response) {
43 43
             return $response;
44 44
         });
45 45
         static::assertSame($response, $middlewareResponse);
Please login to merge, or discard this patch.