Passed
Push — master ( aba784...c39888 )
by Andre
09:06 queued 11s
created
src/validators/EnabledValidator.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
     {
29 29
         if ($object->type != Apple::class) {
30 30
             if ($object->enabled && !$object->clientId) {
31
-                $this->addError($object, $attribute, Craft::t('enupal-socializer','Client ID cannot be blank'));
31
+                $this->addError($object, $attribute, Craft::t('enupal-socializer', 'Client ID cannot be blank'));
32 32
             }
33 33
 
34 34
             if ($object->enabled && !$object->clientSecret) {
35
-                $this->addError($object, 'clientSecret', Craft::t('enupal-socializer','Client Secret cannot be blank'));
35
+                $this->addError($object, 'clientSecret', Craft::t('enupal-socializer', 'Client Secret cannot be blank'));
36 36
             }
37
-        }else if ($object->type === Apple::class && $object->enabled) {
37
+        } else if ($object->type === Apple::class && $object->enabled) {
38 38
             if (!Socializer::$app->settings->validateAppleSettings()) {
39
-                $this->addError($object, 'enabled', Craft::t('enupal-socializer','Unable to process the Apple settings from the config file'));
39
+                $this->addError($object, 'enabled', Craft::t('enupal-socializer', 'Unable to process the Apple settings from the config file'));
40 40
             }
41 41
         }
42 42
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             if ($object->enabled && !$object->clientSecret) {
35 35
                 $this->addError($object, 'clientSecret', Craft::t('enupal-socializer','Client Secret cannot be blank'));
36 36
             }
37
-        }else if ($object->type === Apple::class && $object->enabled) {
37
+        } else if ($object->type === Apple::class && $object->enabled) {
38 38
             if (!Socializer::$app->settings->validateAppleSettings()) {
39 39
                 $this->addError($object, 'enabled', Craft::t('enupal-socializer','Unable to process the Apple settings from the config file'));
40 40
             }
Please login to merge, or discard this patch.