Completed
Push — master ( e53efb...f3ecaf )
by Grummfy
02:39
created
src/ReadOnlyFallbackAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,13 +192,13 @@
 block discarded – undo
192 192
 		$inverseRef = [];
193 193
 		foreach ($tmpResult as $index => $mainContent)
194 194
 		{
195
-			$inverseRef[ $mainContent[ 'path' ] ] = $index;
195
+			$inverseRef[$mainContent['path']] = $index;
196 196
 		}
197 197
 
198 198
 		$fallbackContents = $this->_readOnlyAdapter->listContents($directory, $recursive);
199 199
 		foreach ($fallbackContents as $fallbackContent)
200 200
 		{
201
-			if (!isset($inverseRef[ $fallbackContent[ 'path' ] ]))
201
+			if (!isset($inverseRef[$fallbackContent['path']]))
202 202
 			{
203 203
 				$tmpResult[] = $fallbackContent;
204 204
 			}
Please login to merge, or discard this patch.
tests/units/ReadOnlyFallbackAdapter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		$this
39 39
 			->assert('test path existence on mainAdapter')
40 40
 			->given($this->calling($mainAdapter)->has = true,
41
-			        $this->calling($readOnlyAdapter)->has = false)
41
+					$this->calling($readOnlyAdapter)->has = false)
42 42
 			->then
43 43
 				->boolean($this->testedInstance->has('/foo'))->isTrue
44 44
 				->mock($mainAdapter)->receive('has')->withIdenticalArguments('/foo')->once
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 		$this
49 49
 			->assert('test none existing path')
50 50
 			->given($this->calling($mainAdapter)->has = false,
51
-			        $this->calling($readOnlyAdapter)->has = false)
51
+					$this->calling($readOnlyAdapter)->has = false)
52 52
 			->then
53 53
 				->boolean($this->testedInstance->has('/foo'))->isFalse
54 54
 				->mock($mainAdapter)->receive('has')->withIdenticalArguments('/foo')->once
Please login to merge, or discard this patch.