Test Setup Failed
Branch develop (fb72f9)
by Joseph
04:43
created
Category
src/EnvSecurityServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Console/Edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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 = '';
Please login to merge, or discard this patch.
src/Console/Files/Encrypt.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,10 +48,8 @@
 block discarded – undo
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.');
Please login to merge, or discard this patch.
config/env-security.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.