Skip to content

Commit 11dd548

Browse files
Fixed code-style
1 parent 44dcc9d commit 11dd548

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Filesystem/Directory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function ensureDelete(array|string $paths): void
170170
*
171171
* @throws \DragonCode\Support\Exceptions\DirectoryNotFoundException
172172
*/
173-
public function ensureDirectory(string $path, int $mode = 0o0755, bool $can_delete = false): void
173+
public function ensureDirectory(string $path, int $mode = 0755, bool $can_delete = false): void
174174
{
175175
if ($can_delete && $this->exists($path)) {
176176
$this->delete($path);

src/Filesystem/File.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function names(string $path, ?callable $callback = null, bool $recursive
7575
*
7676
* @return string returns the full path to the saved file
7777
*/
78-
public function store(string $path, string $content, int $mode = 0o0755): string
78+
public function store(string $path, string $content, int $mode = 0755): string
7979
{
8080
Directory::ensureDirectory(Path::dirname($path), $mode);
8181

@@ -113,7 +113,7 @@ public function load(string $path): array
113113
/**
114114
* Copies file.
115115
*/
116-
public function copy(string $source, string $target, int $mode = 0o0755): void
116+
public function copy(string $source, string $target, int $mode = 0755): void
117117
{
118118
Directory::ensureDirectory(Path::dirname($target), $mode);
119119

@@ -125,7 +125,7 @@ public function copy(string $source, string $target, int $mode = 0o0755): void
125125
*
126126
* @throws \DragonCode\Support\Exceptions\FileNotFoundException
127127
*/
128-
public function move(string $source, string $target, int $mode = 0o0755): void
128+
public function move(string $source, string $target, int $mode = 0755): void
129129
{
130130
Directory::ensureDirectory(Path::dirname($target), $mode);
131131

tests/Unit/Filesystem/Directory/EnsureDirectoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testEnsureDirectory()
4747
$this->assertTrue(Directory::exists($path1));
4848
$this->assertTrue(Directory::exists($path2));
4949

50-
Directory::ensureDirectory($path, 0o0755, true);
50+
Directory::ensureDirectory($path, 0755, true);
5151

5252
$this->assertTrue(Directory::exists($path));
5353
$this->assertTrue(Directory::doesntExist($path1));

0 commit comments

Comments
 (0)