Passed
Branch master (25138d)
by Byron
03:03
created
Category
src/SecretManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function __construct(AdapterInterface $adapter)
26 26
     {
27
-        $this->adapter = $adapter;
27
+        $this->adapter=$adapter;
28 28
     }
29 29
 
30 30
     /**
Please login to merge, or discard this patch.
src/Adapter/JsonFileAdapter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @var array<string, array<int|string, array<string, array<string, string>|string>|string>|string|false>
46 46
      */
47
-    private $schema = [
47
+    private $schema=[
48 48
         'type' => 'object',
49 49
         'properties' => [
50 50
             'secrets' => ['type' => 'object', 'additionalProperties' => ['type' => 'string']],
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function __construct(string $path)
62 62
     {
63
-        $this->path = $path;
63
+        $this->path=$path;
64 64
         $this->load();
65 65
     }
66 66
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     public function update(string $name, string $value): void
91 91
     {
92 92
         $this->assertSecretExists($name);
93
-        $this->data['secrets'][$name] = $value;
93
+        $this->data['secrets'][$name]=$value;
94 94
         $this->persist();
95 95
     }
96 96
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     public function create(string $name, string $value): void
102 102
     {
103 103
         $this->assertSecretDoesNotExist($name);
104
-        $this->data['secrets'][$name] = $value;
104
+        $this->data['secrets'][$name]=$value;
105 105
         $this->persist();
106 106
     }
107 107
 
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
     private function load(): void
122 122
     {
123 123
         try {
124
-            $validator = new Validator();
125
-            $this->data = json_decode(@file_get_contents($this->path), true);
124
+            $validator=new Validator();
125
+            $this->data=json_decode(@file_get_contents($this->path), true);
126 126
             $validator->validate($this->data, $this->schema,
127 127
                 Constraint::CHECK_MODE_EXCEPTIONS | Constraint::CHECK_MODE_TYPE_CAST);
128 128
         } catch (JsonException | ValidationException | FilesystemException $exception) {
Please login to merge, or discard this patch.