Skip to content

Commit d51827f

Browse files
sammyskillskenjis
andauthored
applied code review suggestion
Co-authored-by: kenjis <[email protected]>
1 parent d32c7be commit d51827f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/View/Cells/Cell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ final protected function view(?string $view, array $data = []): string
7979
$ref = new ReflectionClass($this);
8080
$view = decamelize($ref->getShortName());
8181
$viewPath = dirname($ref->getFileName()) . DIRECTORY_SEPARATOR . $view . '.php';
82-
$view = file_exists($viewPath) ? $viewPath : str_replace('_cell', '', $view);
82+
$view = is_file($viewPath) ? $viewPath : str_replace('_cell', '', $view);
8383
}
8484

8585
// Locate our view, preferring the directory of the class.

0 commit comments

Comments
 (0)