@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | $this->publishes([$this->configPath => $publishPath], 'config'); |
| 45 | 45 | |
| 46 | 46 | try { |
| 47 | - if (! is_dir(config('env-security.store'))) { |
|
| 48 | - if (! mkdir(config('env-security.store'))) { |
|
| 47 | + if (!is_dir(config('env-security.store'))) { |
|
| 48 | + if (!mkdir(config('env-security.store'))) { |
|
| 49 | 49 | throw new RuntimeException( |
| 50 | 50 | sprintf('Error creating the cipertext directory - %s', config('env-security.store')) |
| 51 | 51 | ); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | public function register() |
| 81 | 81 | { |
| 82 | - $this->app->singleton(EnvSecurityManager::class, function () { |
|
| 82 | + $this->app->singleton(EnvSecurityManager::class, function() { |
|
| 83 | 83 | return new EnvSecurityManager($this->app); |
| 84 | 84 | }); |
| 85 | 85 | $this->app->alias(EnvSecurityManager::class, 'sts.env-security'); |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | { |
| 59 | 59 | $environment = $this->argument('environment'); |
| 60 | 60 | |
| 61 | - if($ciphertext = $this->loadEncrypted($environment)) { |
|
| 61 | + if ($ciphertext = $this->loadEncrypted($environment)) { |
|
| 62 | 62 | $plaintext = $this->envSecurity->decrypt($ciphertext); |
| 63 | 63 | } else { |
| 64 | 64 | $plaintext = ''; |
@@ -48,10 +48,8 @@ |
||
| 48 | 48 | $source = $this->arguments('file'); |
| 49 | 49 | // try to find the file |
| 50 | 50 | $source = is_file($source) ? |
| 51 | - $source : |
|
| 52 | - is_file(base_path($source)) ? |
|
| 53 | - base_path($source) : |
|
| 54 | - false; |
|
| 51 | + $source : is_file(base_path($source)) ? |
|
| 52 | + base_path($source) : false; |
|
| 55 | 53 | // pitch a fit if we can't |
| 56 | 54 | if ($source === false) { |
| 57 | 55 | throw new \RuntimeException('Can not find that file.'); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * This is the default driver we'll use to manage encryption/decryption |
| 13 | 13 | */ |
| 14 | - 'default' => env('ENV_DRIVER','kms'), |
|
| 14 | + 'default' => env('ENV_DRIVER', 'kms'), |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Specify the preferred text editor on your system |