Skip to content

Commit

Permalink
minor refactoring on Gacela.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Oct 14, 2023
1 parent 9cece7e commit 2e45a15
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'ereg_to_preg' => true,
'explicit_string_variable' => true,
'fully_qualified_strict_types' => true,
'function_typehint_space' => true,
'type_declaration_spaces' => true,
'general_phpdoc_annotation_remove' => [
'annotations' => [
'author',
Expand Down
38 changes: 18 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/Framework/Gacela.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ private static function processConfigFnIntoSetup(Closure $configFn = null): Setu
return SetupGacela::fromCallable($configFn);
}

$gacelaFilePath = sprintf('%s%s%s', self::rootDir(), DIRECTORY_SEPARATOR, self::GACELA_PHP_FILENAME);
$gacelaFilePath = sprintf(
'%s%s%s',
self::rootDir(),
DIRECTORY_SEPARATOR,
self::GACELA_PHP_FILENAME,
);

if (is_file($gacelaFilePath)) {
return SetupGacela::fromFile($gacelaFilePath);
Expand Down

0 comments on commit 2e45a15

Please sign in to comment.