Skip to content

Commit

Permalink
Replace ternary expression with if/else block
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 26, 2024
1 parent 36e8b5e commit cdcf30e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/framework/src/Support/Includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ class Includes
*/
public static function path(?string $filename = null): string
{
return $filename === null
? Hyde::path(static::$includesDirectory)
: Hyde::path(static::$includesDirectory.'/'.static::normalizePath($filename));
if ($filename === null) {
return Hyde::path(static::$includesDirectory);
} else {
return Hyde::path(static::$includesDirectory.'/'.static::normalizePath($filename));
}
}

/**
Expand Down

0 comments on commit cdcf30e

Please sign in to comment.