Passed
Branch master (d0b8e0)
by Nate
06:54
created
src/services/AbstractProviderIdentityService.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
     public function save(ProviderIdentityInterface $record, $runValidation = true, $attributeNames = null): ProviderIdentityInterface
72 72
     {
73 73
 
74
-        if (! $record->save($runValidation, $attributeNames)) {
74
+        if (!$record->save($runValidation, $attributeNames)) {
75 75
             throw new \Exception(Json::encode($record->getErrors()));
76 76
         }
77 77
 
Please login to merge, or discard this patch.
src/services/messages/AbstractLogoutRequest.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
                  * We only support post right now
57 57
                  */
58 58
                     SamlConstants::BINDING_SAML2_HTTP_POST
59
-                )->getLocation() :
60
-                $provider->getMetadataModel()->getFirstIdpSsoDescriptor()->getFirstSingleLogoutService(
59
+                )->getLocation() : $provider->getMetadataModel()->getFirstIdpSsoDescriptor()->getFirstSingleLogoutService(
61 60
                 /**
62 61
                  * We only support post right now
63 62
                  */
Please login to merge, or discard this patch.
src/services/messages/AbstractLogoutResponse.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
                  * We only support post right now
60 60
                  */
61 61
                     SamlConstants::BINDING_SAML2_HTTP_POST
62
-                )->getLocation() :
63
-                $provider->getMetadataModel()->getFirstIdpSsoDescriptor()->getFirstSingleLogoutService(
62
+                )->getLocation() : $provider->getMetadataModel()->getFirstIdpSsoDescriptor()->getFirstSingleLogoutService(
64 63
                 /**
65 64
                  * We only support post right now
66 65
                  */
Please login to merge, or discard this patch.
src/services/messages/AbstractMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      */
71 71
     protected function createDescriptor(string $binding)
72 72
     {
73
-        if (! in_array($binding, [
73
+        if (!in_array($binding, [
74 74
             SamlConstants::BINDING_SAML2_HTTP_REDIRECT,
75 75
             SamlConstants::BINDING_SAML2_HTTP_POST,
76 76
         ])) {
Please login to merge, or discard this patch.
src/controllers/cp/view/metadata/AbstractEditController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
         $variables['singleLogoutServices'] = null;
223 223
         $variables['singleSignOnServices'] = null;
224 224
 
225
-        if (! $provider->getMetadataModel()) {
225
+        if (!$provider->getMetadataModel()) {
226 226
             return $variables;
227 227
         }
228 228
 
Please login to merge, or discard this patch.
src/controllers/AbstractMetadataController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $record->setMetadataModel($provider->getMetadataModel());
74 74
 
75 75
 
76
-        if (! $this->getSamlPlugin()->getProvider()->save($record)) {
76
+        if (!$this->getSamlPlugin()->getProvider()->save($record)) {
77 77
             return $this->renderTemplate(
78 78
                 $this->getTemplateIndex() . AbstractEditController::TEMPLATE_INDEX . DIRECTORY_SEPARATOR . 'edit',
79 79
                 array_merge(
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $record = $this->processSaveAction();
104 104
         $record->metadata = Craft::$app->request->getBodyParam('metadata');
105
-        if (! $this->getSamlPlugin()->getProvider()->save($record)) {
105
+        if (!$this->getSamlPlugin()->getProvider()->save($record)) {
106 106
             return $this->renderTemplate(
107 107
                 $this->getTemplateIndex() . AbstractEditController::TEMPLATE_INDEX . DIRECTORY_SEPARATOR . 'edit',
108 108
                 array_merge(
@@ -145,9 +145,9 @@  discard block
 block discarded – undo
145 145
             'id' => $providerId,
146 146
         ])->one();
147 147
 
148
-        $record->enabled = ! $record->enabled;
148
+        $record->enabled = !$record->enabled;
149 149
 
150
-        if (! $this->getSamlPlugin()->getProvider()->save($record)) {
150
+        if (!$this->getSamlPlugin()->getProvider()->save($record)) {
151 151
             return $this->renderTemplate(
152 152
                 $this->getTemplateIndex() . AbstractEditController::TEMPLATE_INDEX . DIRECTORY_SEPARATOR . 'edit',
153 153
                 array_merge(
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             'id' => $providerId,
184 184
         ])->one();
185 185
 
186
-        if (! $this->getSamlPlugin()->getProvider()->delete($record)) {
186
+        if (!$this->getSamlPlugin()->getProvider()->delete($record)) {
187 187
             return $this->renderTemplate(
188 188
                 $this->getTemplateIndex() . AbstractEditController::TEMPLATE_INDEX . DIRECTORY_SEPARATOR . 'edit',
189 189
                 array_merge(
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         $this->requireAdmin();
253 253
 
254 254
         /** @var KeyChainRecord $keychain */
255
-        if (! $keychain = KeyChainRecord::find()->where([
255
+        if (!$keychain = KeyChainRecord::find()->where([
256 256
             'id' => $keyId,
257 257
         ])->one()) {
258 258
             throw new NotFoundHttpException('Key not found');
Please login to merge, or discard this patch.
src/controllers/messages/AbstractLogoutController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         /** @var Request $request */
71 71
         $request = \Craft::$app->request;
72 72
 
73
-        if(false === ($request instanceof Request)) {
73
+        if (false === ($request instanceof Request)) {
74 74
             throw new HttpException(400, 'Must be a web request.');
75 75
         }
76 76
         $message = $this->receive($request);
Please login to merge, or discard this patch.