@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | $this->info('Plaintext contents: ' . $contents); |
| 22 | 22 | |
| 23 | - if($this->option('append')) { |
|
| 23 | + if ($this->option('append')) { |
|
| 24 | 24 | $contents = trim($contents . " " . $this->option('append')); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function testDecryptMissingFile() |
| 25 | 25 | { |
| 26 | 26 | // Make sure no file is present |
| 27 | - if(file_exists($this->getFilePathForEnvironment('testing'))) { |
|
| 27 | + if (file_exists($this->getFilePathForEnvironment('testing'))) { |
|
| 28 | 28 | unlink($this->getFilePathForEnvironment('testing')); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function testEditEmptyFile() |
| 14 | 14 | { |
| 15 | 15 | // Make sure no file is present |
| 16 | - if(file_exists($this->getFilePathForEnvironment('testing'))) { |
|
| 16 | + if (file_exists($this->getFilePathForEnvironment('testing'))) { |
|
| 17 | 17 | unlink($this->getFilePathForEnvironment('testing')); |
| 18 | 18 | } |
| 19 | 19 | |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | protected function verifyDirectory() |
| 58 | 58 | { |
| 59 | 59 | try { |
| 60 | - if (! is_dir(config('env-security.store'))) { |
|
| 61 | - if (! mkdir(config('env-security.store'))) { |
|
| 60 | + if (!is_dir(config('env-security.store'))) { |
|
| 61 | + if (!mkdir(config('env-security.store'))) { |
|
| 62 | 62 | throw new RuntimeException( |
| 63 | 63 | sprintf('Error creating the cipertext directory - %s', config('env-security.store')) |
| 64 | 64 | ); |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | public function register() |
| 97 | 97 | { |
| 98 | - $this->app->singleton(EnvSecurityManager::class, function () { |
|
| 98 | + $this->app->singleton(EnvSecurityManager::class, function() { |
|
| 99 | 99 | return new EnvSecurityManager($this->app); |
| 100 | 100 | }); |
| 101 | 101 | $this->app->alias(EnvSecurityManager::class, 'sts.env-security'); |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | */ |
| 98 | 98 | protected function loadEnvContents() |
| 99 | 99 | { |
| 100 | - if($ciphertext = $this->loadEncrypted($this->environment())) { |
|
| 100 | + if ($ciphertext = $this->loadEncrypted($this->environment())) { |
|
| 101 | 101 | return $this->envSecurity->decrypt($ciphertext); |
| 102 | 102 | } |
| 103 | 103 | |