Completed
Pull Request — master (#106)
by
unknown
22:56 queued 05:30
created
packages/Web/Factory/Action/PostActionFactory.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\Factory\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Web/Factory/Action/EventActionFactory.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\Factory\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Web/Factory/Action/VideosActionFactory.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\Factory\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Web/Factory/Action/HomeActionFactory.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\Factory\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Web/Factory/Action/VideoActionFactory.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\Factory\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Web/Factory/Action/EventsActionFactory.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\Factory\Action;
6 6
 
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
 
5 5
 namespace Web\Factory\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Web/Action/PostAction.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $urlSlug1 = $request->getAttribute('segment_1');
49 49
         $urlSlug2 = $request->getAttribute('segment_2');
50 50
 
51
-        if($urlSlug2) {
51
+        if ($urlSlug2) {
52 52
             $categorySlug = $urlSlug1;
53 53
             $postSlug     = $urlSlug2;
54 54
         } else {
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
 
59 59
         $post = $this->postService->fetchSingleArticleBySlug($postSlug);
60 60
 
61
-        if(!$post) {
61
+        if (!$post) {
62 62
             return $next($request, $response);
63 63
         }
64 64
 
65 65
         list($previousPost, $nextPost) = $this->postService->fetchNearestArticle($post->published_at);
66 66
 
67
-        if(!$post) {
67
+        if (!$post) {
68 68
             $response = $response->withStatus(404);
69 69
 
70 70
             return $next($request, $response, new \Exception("Post by URL does not exist!", 404));
Please login to merge, or discard this patch.
packages/Web/Action/EventAction.php 2 patches
Spacing   +6 added lines, -6 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
 
@@ -64,21 +64,21 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $eventSlug = $request->getAttribute('event_slug');
66 66
         $event     = $this->eventService->fetchEventBySlug($eventSlug);
67
-        $attendees = [];
67
+        $attendees = [ ];
68 68
 
69
-        if(!$event) {
69
+        if (!$event) {
70 70
             return $next($request, $response);
71 71
         }
72 72
 
73 73
         // Fetch going ppl
74 74
         try {
75
-            if(strpos($event->event_url, 'meetup.com') !== false) {
75
+            if (strpos($event->event_url, 'meetup.com') !== false) {
76 76
                 $parts     = explode('/', $event->event_url);
77
-                $attendees = $this->meetupService->getMeetupAttendees($parts[count($parts) - 2]);
77
+                $attendees = $this->meetupService->getMeetupAttendees($parts[ count($parts) - 2 ]);
78 78
                 shuffle($attendees);
79 79
             }
80 80
         }
81
-        catch(\Exception $e) {
81
+        catch (\Exception $e) {
82 82
         }
83 83
 
84 84
         return new HtmlResponse($this->template->render('web::event', [
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
                 $attendees = $this->meetupService->getMeetupAttendees($parts[count($parts) - 2]);
74 74
                 shuffle($attendees);
75 75
             }
76
-        }
77
-        catch(\Exception $e) {
76
+        } catch(\Exception $e) {
78 77
         }
79 78
 
80 79
         return new HtmlResponse($this->template->render('web::event', [
Please login to merge, or discard this patch.