@@ -91,8 +91,7 @@ |
||
91 | 91 | foreach ($this->filters as $filter) { |
92 | 92 | if ($data) { |
93 | 93 | $data = $filter->filterWrite($name, $data); |
94 | - } |
|
95 | - else { |
|
94 | + } else { |
|
96 | 95 | // The filterWrite has an array type hint in the interface. |
97 | 96 | $data = $filter->filterWrite($name, []); |
98 | 97 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * {@inheritdoc} |
63 | 63 | */ |
64 | 64 | protected function findDefinitions() { |
65 | - $definitions = array_map(function ($definition) { |
|
65 | + $definitions = array_map(function($definition) { |
|
66 | 66 | if (empty($definition['storages'])) { |
67 | 67 | // The sync storage is the default. |
68 | 68 | $definition['storages'] = ['config.storage.sync']; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | }, parent::findDefinitions()); |
72 | 72 | |
73 | 73 | // Sort the definitions by weight. |
74 | - uasort($definitions, function ($a, $b) { |
|
74 | + uasort($definitions, function($a, $b) { |
|
75 | 75 | return strcmp($a['weight'], $b['weight']); |
76 | 76 | }); |
77 | 77 |
@@ -106,7 +106,7 @@ |
||
106 | 106 | $this->fail(); |
107 | 107 | } |
108 | 108 | catch (UnsupportedMethod $exception) { |
109 | - $this->assertEquals( ReadOnlyStorage::class .'::' . $method . ' is not allowed on a ReadOnlyStorage', $exception->getMessage()); |
|
109 | + $this->assertEquals(ReadOnlyStorage::class . '::' . $method . ' is not allowed on a ReadOnlyStorage', $exception->getMessage()); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 |
@@ -104,8 +104,7 @@ |
||
104 | 104 | try { |
105 | 105 | call_user_func_array([$storage, $method], $arguments); |
106 | 106 | $this->fail(); |
107 | - } |
|
108 | - catch (UnsupportedMethod $exception) { |
|
107 | + } catch (UnsupportedMethod $exception) { |
|
109 | 108 | $this->assertEquals( ReadOnlyStorage::class .'::' . $method . ' is not allowed on a ReadOnlyStorage', $exception->getMessage()); |
110 | 109 | } |
111 | 110 | } |
@@ -119,8 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | if ($expected) { |
121 | 121 | $source->write($name, $expected)->willReturn(TRUE); |
122 | - } |
|
123 | - else { |
|
122 | + } else { |
|
124 | 123 | $source->write(Argument::any())->shouldNotBeCalled(); |
125 | 124 | $source->exists($name)->willReturn($exists); |
126 | 125 | if ($exists) { |
@@ -158,8 +157,7 @@ discard block |
||
158 | 157 | |
159 | 158 | if ($expected) { |
160 | 159 | $source->delete($name)->willReturn(TRUE); |
161 | - } |
|
162 | - else { |
|
160 | + } else { |
|
163 | 161 | $source->delete(Argument::any())->shouldNotBeCalled(); |
164 | 162 | } |
165 | 163 | |
@@ -191,8 +189,7 @@ discard block |
||
191 | 189 | |
192 | 190 | if ($expected) { |
193 | 191 | $source->rename($name, $name2)->willReturn(TRUE); |
194 | - } |
|
195 | - else { |
|
192 | + } else { |
|
196 | 193 | $source->rename(Argument::any())->shouldNotBeCalled(); |
197 | 194 | } |
198 | 195 | |
@@ -223,8 +220,7 @@ discard block |
||
223 | 220 | |
224 | 221 | if ($expected) { |
225 | 222 | $source->deleteAll($name)->willReturn(TRUE); |
226 | - } |
|
227 | - else { |
|
223 | + } else { |
|
228 | 224 | $source->deleteAll(Argument::any())->shouldNotBeCalled(); |
229 | 225 | $all = [$this->randomString(), $this->randomString()]; |
230 | 226 | $source->listAll($name)->willReturn($all); |