Passed
Push — master ( bc3760...1cf7cf )
by Damien
06:39
created
src/models/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public $opensslDefaults = [
24 24
         'digestAlgorithm'=>'sha256',
25 25
         'keyBits'=>2048,
26
-        'daysExpiry'=>365*2, //2 years
26
+        'daysExpiry'=>365 * 2, //2 years
27 27
         'description' => 'My Key Pair',
28 28
         'countryName' => 'US',
29 29
         'stateOrProvinceName' => 'Colorado',
Please login to merge, or discard this patch.
src/controllers/AbstractUpsertController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             return $this->asJson($keyPair->toArray());
158 158
         }
159 159
 
160
-        if (! $keyPair->hasErrors()) {
160
+        if (!$keyPair->hasErrors()) {
161 161
             Craft::$app->getSession()->setNotice(Craft::t('keychain', 'Key pair saved.'));
162 162
         } else {
163 163
             Craft::$app->getSession()->setError(Craft::t('keychain', 'Key pair didn\'t save.'));
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             'id' => $keypairId,
191 191
         ])->one();
192 192
 
193
-        $keychainRecord->enabled = ! $keychainRecord->enabled;
193
+        $keychainRecord->enabled = !$keychainRecord->enabled;
194 194
 
195 195
         if (KeyChain::getInstance()->getService()->save($keychainRecord)) {
196 196
             Craft::$app->getSession()->setNotice(Craft::t('keychain', 'Key pair saved.'));
Please login to merge, or discard this patch.
src/cli/AbstractOpenSSL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         $keyPairRecord->isDecrypted = true;
76 76
 
77 77
 
78
-        if (! KeyChain::getInstance()->getService()->save($keyPairRecord)) {
78
+        if (!KeyChain::getInstance()->getService()->save($keyPairRecord)) {
79 79
             $this->stderr(
80 80
                 sprintf('Failed to save new key pair to the database') . PHP_EOL,
81 81
                 Console::FG_RED
Please login to merge, or discard this patch.