Skip to content

Commit 7c16ebc

Browse files
committed
fixed CS
1 parent 719d208 commit 7c16ebc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Tests/FilesystemTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,21 +1334,21 @@ public function testMirrorContentsWithSameNameAsSourceOrTargetWithDeleteOption()
13341334

13351335
public function testMirrorWithCustomIterator()
13361336
{
1337-
$sourcePath = $this->workspace.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR;
1337+
$sourcePath = $this->workspace.\DIRECTORY_SEPARATOR.'source'.\DIRECTORY_SEPARATOR;
13381338
mkdir($sourcePath);
13391339

1340-
$file = $sourcePath.DIRECTORY_SEPARATOR.'file';
1340+
$file = $sourcePath.\DIRECTORY_SEPARATOR.'file';
13411341
file_put_contents($file, 'FILE');
13421342

1343-
$targetPath = $this->workspace.DIRECTORY_SEPARATOR.'target'.DIRECTORY_SEPARATOR;
1343+
$targetPath = $this->workspace.\DIRECTORY_SEPARATOR.'target'.\DIRECTORY_SEPARATOR;
13441344

13451345
$splFile = new \SplFileInfo($file);
1346-
$iterator = new \ArrayObject(array($splFile));
1346+
$iterator = new \ArrayObject([$splFile]);
13471347

13481348
$this->filesystem->mirror($sourcePath, $targetPath, $iterator);
13491349

13501350
$this->assertTrue(is_dir($targetPath));
1351-
$this->assertFileEquals($file, $targetPath.DIRECTORY_SEPARATOR.'file');
1351+
$this->assertFileEquals($file, $targetPath.\DIRECTORY_SEPARATOR.'file');
13521352
}
13531353

13541354
/**
@@ -1357,17 +1357,17 @@ public function testMirrorWithCustomIterator()
13571357
*/
13581358
public function testMirrorWithCustomIteratorWithRelativePath()
13591359
{
1360-
$sourcePath = $this->workspace.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR;
1361-
$realSourcePath = $this->workspace.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR;
1360+
$sourcePath = $this->workspace.\DIRECTORY_SEPARATOR.'source'.\DIRECTORY_SEPARATOR.'..'.\DIRECTORY_SEPARATOR.'source'.\DIRECTORY_SEPARATOR;
1361+
$realSourcePath = $this->workspace.\DIRECTORY_SEPARATOR.'source'.\DIRECTORY_SEPARATOR;
13621362
mkdir($realSourcePath);
13631363

13641364
$file = $realSourcePath.'file';
13651365
file_put_contents($file, 'FILE');
13661366

1367-
$targetPath = $this->workspace.DIRECTORY_SEPARATOR.'target'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'target'.DIRECTORY_SEPARATOR;
1367+
$targetPath = $this->workspace.\DIRECTORY_SEPARATOR.'target'.\DIRECTORY_SEPARATOR.'..'.\DIRECTORY_SEPARATOR.'target'.\DIRECTORY_SEPARATOR;
13681368

13691369
$splFile = new \SplFileInfo($file);
1370-
$iterator = new \ArrayObject(array($splFile));
1370+
$iterator = new \ArrayObject([$splFile]);
13711371

13721372
$this->filesystem->mirror($sourcePath, $targetPath, $iterator);
13731373
}

0 commit comments

Comments
 (0)