Skip to content

Commit

Permalink
Removes version compare in attempt to see if it is actually necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
craigpaul committed Nov 26, 2023
1 parent c4c2c73 commit a735d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ public static function fromFile(SplFileInfo $file): static
*/
public function className(): string
{
$path = version_compare(app()->version(), '10.0.0', '<') ? '' : '/';
// $path = version_compare(app()->version(), '10.0.0', '<') ? '' : '/';

return str_replace(
['/', '.php'],
['\\', ''],
ucfirst(
ltrim(
array_reverse(
explode(rtrim(base_path($path), '/'), $this->path, 2)
explode(rtrim(base_path('/'), '/'), $this->path, 2)
)[0],
'/',
),
Expand Down

0 comments on commit a735d82

Please sign in to comment.