Completed
Pull Request — master (#218)
by Christopher
67:05 queued 62:34
created
generated-classes/TechWilk/Rota/User.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function getName()
79 79
     {
80
-        return $this->firstname.' '.$this->lastname;
80
+        return $this->firstname . ' ' . $this->lastname;
81 81
     }
82 82
 
83 83
     /**
@@ -96,16 +96,16 @@  discard block
 block discarded – undo
96 96
                 if ($socialAuth->getPlatform() == 'facebook') {
97 97
                     switch ($size) {
98 98
                         case 'small': // 50px x 50px
99
-                            return '//graph.facebook.com/'.$socialAuth->getSocialId().'/picture?type=square';
99
+                            return '//graph.facebook.com/' . $socialAuth->getSocialId() . '/picture?type=square';
100 100
                             break;
101 101
                         case 'medium': // 200px x 200px
102
-                            return '//graph.facebook.com/'.$socialAuth->getSocialId().'/picture?type=large';
102
+                            return '//graph.facebook.com/' . $socialAuth->getSocialId() . '/picture?type=large';
103 103
                             break;
104 104
                         case 'large': // 200px x 200px
105
-                            return '//graph.facebook.com/'.$socialAuth->getSocialId().'/picture?type=large';
105
+                            return '//graph.facebook.com/' . $socialAuth->getSocialId() . '/picture?type=large';
106 106
                             break;
107 107
                         default:
108
-                            return '//graph.facebook.com/'.$socialAuth->getSocialId().'/picture';
108
+                            return '//graph.facebook.com/' . $socialAuth->getSocialId() . '/picture';
109 109
                             break;
110 110
                     }
111 111
                 } elseif ($socialAuth->getPlatform() == 'onebody') {
@@ -114,16 +114,16 @@  discard block
 block discarded – undo
114 114
                     $extension = pathinfo($socialAuth->getMeta()['photo-file-name'], PATHINFO_EXTENSION);
115 115
                     switch ($size) {
116 116
                         case 'small': // 50px x 50px
117
-                            return $baseUrl.'/system/production/people/photos/'.$socialAuth->getSocialId().'/tn/'.$photoFingerprint.'.'.$extension;
117
+                            return $baseUrl . '/system/production/people/photos/' . $socialAuth->getSocialId() . '/tn/' . $photoFingerprint . '.' . $extension;
118 118
                             break;
119 119
                         case 'medium': // 150px x 150px
120
-                            return $baseUrl.'/system/production/people/photos/'.$socialAuth->getSocialId().'/small/'.$photoFingerprint.'.'.$extension;
120
+                            return $baseUrl . '/system/production/people/photos/' . $socialAuth->getSocialId() . '/small/' . $photoFingerprint . '.' . $extension;
121 121
                             break;
122 122
                         case 'large': // 500px x 500px
123
-                            return $baseUrl.'/system/production/people/photos/'.$socialAuth->getSocialId().'/medium/'.$photoFingerprint.'.'.$extension;
123
+                            return $baseUrl . '/system/production/people/photos/' . $socialAuth->getSocialId() . '/medium/' . $photoFingerprint . '.' . $extension;
124 124
                             break;
125 125
                         default:
126
-                            return $baseUrl.'/system/production/people/photos/'.$socialAuth->getSocialId().'/tn/'.$photoFingerprint.'.'.$extension;
126
+                            return $baseUrl . '/system/production/people/photos/' . $socialAuth->getSocialId() . '/tn/' . $photoFingerprint . '.' . $extension;
127 127
                         break;
128 128
                     }
129 129
                 }
@@ -132,16 +132,16 @@  discard block
 block discarded – undo
132 132
 
133 133
         switch ($size) {
134 134
             case 'small': // 50px x 50px
135
-                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s=50&d=mm';
135
+                return '//www.gravatar.com/avatar/' . md5(strtolower(trim($this->email))) . '?s=50&d=mm';
136 136
                 break;
137 137
             case 'medium': // 200px x 200px
138
-                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s=200&d=mm';
138
+                return '//www.gravatar.com/avatar/' . md5(strtolower(trim($this->email))) . '?s=200&d=mm';
139 139
                 break;
140 140
             case 'large': // 500px x 500px
141
-                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s=500&d=mm';
141
+                return '//www.gravatar.com/avatar/' . md5(strtolower(trim($this->email))) . '?s=500&d=mm';
142 142
                 break;
143 143
             default:
144
-                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s=50&d=mm';
144
+                return '//www.gravatar.com/avatar/' . md5(strtolower(trim($this->email))) . '?s=50&d=mm';
145 145
             break;
146 146
         }
147 147
     }
Please login to merge, or discard this patch.
src/config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__.'/../config/database.php';
4
-require __DIR__.'/../config/auth.php';
5
-require __DIR__.'/../config/email.php';
6
-require __DIR__.'/../config/recording.php';
3
+require __DIR__ . '/../config/database.php';
4
+require __DIR__ . '/../config/auth.php';
5
+require __DIR__ . '/../config/email.php';
6
+require __DIR__ . '/../config/recording.php';
7 7
 
8 8
 function getConfig()
9 9
 {
Please login to merge, or discard this patch.
src/settings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__.'/config.php';
3
+require_once __DIR__ . '/config.php';
4 4
 
5 5
 $config = getConfig();
6 6
 
@@ -12,13 +12,13 @@  discard block
 block discarded – undo
12 12
 
13 13
         // Renderer settings
14 14
         'renderer' => [
15
-            'template_path' => __DIR__.'/../templates/',
15
+            'template_path' => __DIR__ . '/../templates/',
16 16
         ],
17 17
 
18 18
         // Monolog settings
19 19
         'logger' => [
20 20
             'name'  => 'rota',
21
-            'path'  => __DIR__.'/../logs/app.log',
21
+            'path'  => __DIR__ . '/../logs/app.log',
22 22
             'level' => \Monolog\Logger::DEBUG,
23 23
         ],
24 24
 
Please login to merge, or discard this patch.
src/classes/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $hostname = $_SERVER['HTTP_HOST'];
40 40
 
41 41
         return [
42
-            'base'     => $http.'://'.$hostname,
42
+            'base'     => $http . '://' . $hostname,
43 43
             'protocol' => $http,
44 44
             'host'     => $hostname,
45 45
         ];
Please login to merge, or discard this patch.
src/classes/AuthProvider/UsernamePassword/OneBodyAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $base_uri = $this->guzzle->getConfig()['base_uri'];
72 72
 
73 73
         if (strlen($base_uri) > 0) {
74
-            $url = $base_uri.'/account/new?forgot=true';
74
+            $url = $base_uri . '/account/new?forgot=true';
75 75
         }
76 76
 
77 77
         return $url;
Please login to merge, or discard this patch.
src/classes/Crypt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public static function generateInt($min, $max)
33 33
     {
34 34
         if ($min >= $max) {
35
-            throw new InvalidArgumentException('Invalid constraints - minimum ('.$min.') is above the maximum ('.$max.')');
35
+            throw new InvalidArgumentException('Invalid constraints - minimum (' . $min . ') is above the maximum (' . $max . ')');
36 36
         }
37 37
 
38 38
         if (function_exists('random_int')) { // use secure random numbers when available
Please login to merge, or discard this patch.
src/classes/Controller/AvailabilityController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function getAvailabilityForm(ServerRequestInterface $request, ResponseInterface $response, $args)
16 16
     {
17
-        $this->logger->info("Fetch user availability GET '/user/".$args['id']."/availability'");
17
+        $this->logger->info("Fetch user availability GET '/user/" . $args['id'] . "/availability'");
18 18
 
19 19
         $u = UserQuery::create()->findPk($args['id']);
20 20
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function postAvailability(ServerRequestInterface $request, ResponseInterface $response, $args)
35 35
     {
36
-        $this->logger->info("Update user availability POST '/user/".$args['id']."/availability'");
36
+        $this->logger->info("Update user availability POST '/user/" . $args['id'] . "/availability'");
37 37
 
38 38
         $u = UserQuery::create()
39 39
             ->findPk($args['id']);
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
                 $a->setAvailable(false);
63 63
             }
64 64
 
65
-            if (strlen($data['event'.$eventId.'comment']) > 0) {
66
-                $a->setComment($data['event'.$eventId.'comment']);
65
+            if (strlen($data['event' . $eventId . 'comment']) > 0) {
66
+                $a->setComment($data['event' . $eventId . 'comment']);
67 67
             } else {
68 68
                 $a->setComment(null);
69 69
             }
Please login to merge, or discard this patch.
src/classes/Controller/RoleController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     public function getAssignRolesForm(ServerRequestInterface $request, ResponseInterface $response, $args)
15 15
     {
16
-        $this->logger->info("Fetch user GET '/user/".$args['id']."/roles'");
16
+        $this->logger->info("Fetch user GET '/user/" . $args['id'] . "/roles'");
17 17
         $r = RoleQuery::create()->find();
18 18
         $u = UserQuery::create()->findPK($args['id']);
19 19
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function postUserAssignRoles(ServerRequestInterface $request, ResponseInterface $response, $args)
28 28
     {
29
-        $this->logger->info("Create user people POST '/user/".$args['id']."/roles'");
29
+        $this->logger->info("Create user people POST '/user/" . $args['id'] . "/roles'");
30 30
 
31 31
         $userId = filter_var($args['id'], FILTER_SANITIZE_NUMBER_INT);
32 32
         $existingRoles = RoleQuery::create()->useUserRoleQuery()->filterByUserId($userId)->endUse()->find();
Please login to merge, or discard this patch.
src/classes/Controller/CalendarController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     public function getRevokeCalendar(ServerRequestInterface $request, ResponseInterface $response, $args)
78 78
     {
79
-        $this->logger->info("Fetch settings GET '/user/me/calendar/".$args['id']."/revoke'");
79
+        $this->logger->info("Fetch settings GET '/user/me/calendar/" . $args['id'] . "/revoke'");
80 80
 
81 81
         $auth = $this->auth;
82 82
         $u = $auth->currentUser();
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     public function getRenderedCalendar(ServerRequestInterface $request, ResponseInterface $response, $args)
103 103
     {
104
-        $this->logger->info("Fetch calendar GET '/calendar/".$args['token'].'.'.$args['format']."'");
104
+        $this->logger->info("Fetch calendar GET '/calendar/" . $args['token'] . '.' . $args['format'] . "'");
105 105
 
106 106
         $c = CalendarTokenQuery::create()
107 107
             ->filterByToken($args['token'])
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     {
119 119
         $getParameters = $request->getQueryParams();
120 120
 
121
-        $this->logger->info("Fetch -LEGACY- calendar GET '/calendar.php?user=".$getParameters['user'].'&token='.$getParameters['token'].'&format='.$getParameters['format']."'");
121
+        $this->logger->info("Fetch -LEGACY- calendar GET '/calendar.php?user=" . $getParameters['user'] . '&token=' . $getParameters['token'] . '&format=' . $getParameters['format'] . "'");
122 122
 
123 123
         $userId = filter_var($getParameters['user'], FILTER_VALIDATE_INT);
124 124
         $token = $getParameters['token'];
Please login to merge, or discard this patch.