Passed
Push — master ( 85dadb...c783b5 )
by
unknown
03:01 queued 14s
created
config/saml2.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
         |
160 160
         */
161 161
 
162
-        'x509cert' => env('SAML2_SP_CERT_x509',''),
163
-        'privateKey' => env('SAML2_SP_CERT_PRIVATEKEY',''),
162
+        'x509cert' => env('SAML2_SP_CERT_x509', ''),
163
+        'privateKey' => env('SAML2_SP_CERT_PRIVATEKEY', ''),
164 164
 
165 165
         /*
166 166
         |--------------------------------------------------------------------------
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         |
172 172
         */
173 173
 
174
-        'entityId' => env('SAML2_SP_ENTITYID',''),
174
+        'entityId' => env('SAML2_SP_ENTITYID', ''),
175 175
 
176 176
         /*
177 177
         |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
src/Saml2User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function parseUserAttribute($samlAttribute = null, $propertyName = null)
110 110
     {
111
-        if(empty($samlAttribute)) {
111
+        if (empty($samlAttribute)) {
112 112
             return null;
113 113
         }
114 114
 
115
-        if(empty($propertyName)) {
115
+        if (empty($propertyName)) {
116 116
             return $this->getAttribute($samlAttribute);
117 117
         }
118 118
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function parseAttributes($attributes = [])
130 130
     {
131
-        foreach($attributes as $propertyName => $samlAttribute) {
131
+        foreach ($attributes as $propertyName => $samlAttribute) {
132 132
             $this->parseUserAttribute($samlAttribute, $propertyName);
133 133
         }
134 134
     }
Please login to merge, or discard this patch.
src/Auth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
      */
157 157
     public function sls($retrieveParametersFromServer = false)
158 158
     {
159
-        $this->base->processSLO(false, null, $retrieveParametersFromServer, function () {
159
+        $this->base->processSLO(false, null, $retrieveParametersFromServer, function() {
160 160
             event(new SignedOut());
161 161
         });
162 162
 
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $target = \Illuminate\Support\Facades\URL::to($path, $parameters, $secure);
18 18
 
19
-        if(!$uuid) {
20
-            if(!$uuid = saml_tenant_uuid()) {
19
+        if (!$uuid) {
20
+            if (!$uuid = saml_tenant_uuid()) {
21 21
                 return $target;
22 22
             }
23 23
         }
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $target = \Illuminate\Support\Facades\URL::route($name, $parameters, true);
43 43
 
44
-        if(!$uuid) {
45
-            if(!$uuid = saml_tenant_uuid()) {
44
+        if (!$uuid) {
45
+            if (!$uuid = saml_tenant_uuid()) {
46 46
                 return $target;
47 47
             }
48 48
         }
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     protected function bootRoutes()
39 39
     {
40
-        if($this->app['config']['saml2.useRoutes'] == true) {
40
+        if ($this->app['config']['saml2.useRoutes'] == true) {
41 41
             include __DIR__ . '/Http/routes.php';
42 42
         }
43 43
     }
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 Route::group([
4 4
     'prefix' => config('saml2.routesPrefix'),
5 5
     'middleware' => array_merge(['saml2.resolveTenant'], config('saml2.routesMiddleware')),
6
-], function () {
6
+], function() {
7 7
     Route::get('/{uuid}/logout', array(
8 8
         'as' => 'saml.logout',
9 9
         'uses' => 'Slides\Saml2\Http\Controllers\Saml2Controller@logout',
Please login to merge, or discard this patch.
src/Commands/RendersTenants.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
                 $columns[] = [$column, $value ?: '(empty)'];
35 35
             }
36 36
 
37
-            if($tenants->last()->id !== $tenant->id) {
37
+            if ($tenants->last()->id !== $tenant->id) {
38 38
                 $columns[] = new \Symfony\Component\Console\Helper\TableSeparator();
39 39
             }
40 40
         }
41 41
 
42
-        if($title) {
42
+        if ($title) {
43 43
             $this->getOutput()->title($title);
44 44
         }
45 45
 
Please login to merge, or discard this patch.
src/Commands/UpdateTenant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function handle()
60 60
     {
61
-        if(!$tenant = $this->tenants->findById($this->argument('id'))) {
61
+        if (!$tenant = $this->tenants->findById($this->argument('id'))) {
62 62
             $this->error('Cannot find a tenant #' . $this->argument('id'));
63 63
             return;
64 64
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'metadata' => ConsoleHelper::stringToArray($this->option('metadata'))
73 73
         ]));
74 74
 
75
-        if(!$tenant->save()) {
75
+        if (!$tenant->save()) {
76 76
             $this->error('Tenant cannot be saved.');
77 77
             return;
78 78
         }
Please login to merge, or discard this patch.
src/Commands/CreateTenant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $key = $this->option('key');
82 82
         $metadata = ConsoleHelper::stringToArray($this->option('metadata'));
83 83
 
84
-        if($key && ($tenant = $this->tenants->findByKey($key))) {
84
+        if ($key && ($tenant = $this->tenants->findByKey($key))) {
85 85
             $this->renderTenants($tenant, 'Already found tenant(s) using this key');
86 86
             $this->error(
87 87
                 'Cannot create a tenant because the key is already being associated with other tenants.'
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             'metadata' => $metadata,
102 102
         ]);
103 103
 
104
-        if(!$tenant->save()) {
104
+        if (!$tenant->save()) {
105 105
             $this->error('Tenant cannot be saved.');
106 106
             return;
107 107
         }
Please login to merge, or discard this patch.