@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function testIsSubdirectoryPositive(): void |
67 | 67 | { |
68 | - $dir = new Directory('/foo/bar/baz'); |
|
68 | + $dir = new Directory('/foo/bar/baz'); |
|
69 | 69 | $this->assertTrue($dir->isSubDirectoryOf(new Directory('/foo/bar'))); |
70 | 70 | $this->assertTrue($dir->isSubDirectoryOf(new Directory('/foo'))); |
71 | 71 | $this->assertTrue($dir->isSubDirectoryOf(new Directory('/'))); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function testIsSubdirectoryNegative(): void |
78 | 78 | { |
79 | - $dir = new Directory('/foo/bar'); |
|
79 | + $dir = new Directory('/foo/bar'); |
|
80 | 80 | $this->assertFalse($dir->isSubDirectoryOf(new Directory('/foo/bar/baz'))); |
81 | 81 | $this->assertFalse($dir->isSubDirectoryOf(new Directory('/fiz'))); |
82 | 82 | $this->assertFalse($dir->isSubDirectoryOf(new Directory('/fiz/baz'))); |
@@ -108,7 +108,7 @@ |
||
108 | 108 | $path = substr($path, 2); |
109 | 109 | } |
110 | 110 | |
111 | - $slash = substr($path, 0, 1); |
|
111 | + $slash = substr($path, 0, 1); |
|
112 | 112 | if ($slash === '\\' || $slash === '/') { |
113 | 113 | $this->root = trim($this->root, '/\\') . '/'; |
114 | 114 | $this->path = trim(str_replace('\\', '/', $path), '/'); |