@@ -163,8 +163,8 @@ |
||
| 163 | 163 | $fieldClass = get_class($field); |
| 164 | 164 | |
| 165 | 165 | $supportedClasses = [ |
| 166 | - PlainText::class => 1, |
|
| 167 | - Dropdown::class => 1 |
|
| 166 | + PlainText::class => 1, |
|
| 167 | + Dropdown::class => 1 |
|
| 168 | 168 | ]; |
| 169 | 169 | |
| 170 | 170 | if (isset($supportedClasses[$fieldClass])){ |
@@ -45,8 +45,7 @@ |
||
| 45 | 45 | Craft::$app->getSession()->setError(Craft::t('enupal-socializer', "Unable to authenticate user")); |
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | - } |
|
| 49 | - catch (\Exception $e) { |
|
| 48 | + } catch (\Exception $e) { |
|
| 50 | 49 | Craft::error($e->getMessage(), __METHOD__); |
| 51 | 50 | } |
| 52 | 51 | |
@@ -34,7 +34,7 @@ |
||
| 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 | } |