Skip to content

Commit 4224cd0

Browse files
committed
updating cache and helpers
1 parent 4d9a339 commit 4224cd0

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/ConfigProject/ConfigProjectCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getCommandName(): string
4848
public function getDefaultArgs(): array
4949
{
5050
return [
51-
'path' => Helpers::getProjectPaths('projectRoot'),
51+
'path' => Helpers::getProjectPaths('root'),
5252
];
5353
}
5454

src/Db/ExportCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function __invoke(array $args, array $assocArgs)
9292

9393
try {
9494
dbExport( // phpcs:ignore
95-
Helpers::getProjectPaths('projectRoot')
95+
Helpers::getProjectPaths('root')
9696
);
9797
} catch (ExitException $e) {
9898
exit("{$e->getCode()}: {$e->getMessage()}"); // phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped

src/Db/ImportCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getDefaultArgs(): array
5151
'from' => '',
5252
'to' => '',
5353
'file_name' => '',
54-
'setup_file' => Helpers::getProjectPaths('projectRoot', 'setup.json'),
54+
'setup_file' => Helpers::getProjectPaths('root', 'setup.json'),
5555
];
5656
}
5757

src/GitIgnore/GitIgnoreCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getCommandName(): string
4747
public function getDefaultArgs(): array
4848
{
4949
return [
50-
'path' => Helpers::getProjectPaths('projectRoot'),
50+
'path' => Helpers::getProjectPaths('root'),
5151
];
5252
}
5353

src/Helpers/Helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public static function getProjectPaths(string $type, array|string $suffix = ''):
251251
}
252252

253253
switch ($type) {
254-
case 'projectRoot':
254+
case 'root':
255255
return self::joinPaths([\dirname(__FILE__, 9), ...$suffix]);
256256
case 'src':
257257
return self::joinPaths([$root, 'src', ...$suffix]);
@@ -270,7 +270,7 @@ public static function getProjectPaths(string $type, array|string $suffix = ''):
270270
case 'wrapper':
271271
return self::joinPaths([$root, 'src', 'Blocks', 'wrapper', ...$suffix]);
272272
default:
273-
return '';
273+
return $root;
274274
}
275275
}
276276

src/Readme/ReadmeCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getCommandName(): string
4747
public function getDefaultArgs(): array
4848
{
4949
return [
50-
'path' => Helpers::getProjectPaths('projectRoot'),
50+
'path' => Helpers::getProjectPaths('root'),
5151
];
5252
}
5353

src/Setup/SetupCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getCommandName(): string
4747
public function getDefaultArgs(): array
4848
{
4949
return [
50-
'path' => Helpers::getProjectPaths('projectRoot'),
50+
'path' => Helpers::getProjectPaths('root'),
5151
'file_name' => 'setup.json',
5252
'source_path' => __DIR__,
5353
];

0 commit comments

Comments
 (0)