Completed
Push — master ( e8dc78...6f875e )
by Jimmy
03:16 queued 01:44
created
src/SsoServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function boot()
21 21
     {
22
-        $this->app['router']->group(["middleware" => ["web", "auth"]], function (Router $router) {
22
+        $this->app['router']->group(["middleware" => ["web", "auth"]], function(Router $router) {
23 23
             $router->get($this->app['config']->get('services.discourse.route'), [
24 24
                 'uses' => 'Spinen\Discourse\Controllers\SsoController@login',
25 25
                 'as'   => 'sso.login',
Please login to merge, or discard this patch.
src/Controllers/SsoController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function castBooleansToString($property)
83 83
     {
84
-        if (! is_bool($property)) {
84
+        if (!is_bool($property)) {
85 85
             return $property;
86 86
         }
87 87
 
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
         $access = $this->config->get('user')
115 115
                                ->get('access', null);
116 116
 
117
-        if (! is_null($access) && ! $this->parseUserValue($access)) {
117
+        if (!is_null($access) && !$this->parseUserValue($access)) {
118 118
             abort(403); //Forbidden
119 119
         }
120 120
 
121
-        if (! ($this->sso->validatePayload($payload = $request->get('sso'), $request->get('sig')))) {
121
+        if (!($this->sso->validatePayload($payload = $request->get('sso'), $request->get('sig')))) {
122 122
             abort(403); //Forbidden
123 123
         }
124 124
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function parseUserValue($property)
157 157
     {
158
-        if (! is_string($property)) {
158
+        if (!is_string($property)) {
159 159
             return $property;
160 160
         }
161 161
 
Please login to merge, or discard this patch.