Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Apr 27, 2021
1 parent 6514e8d commit eadd9cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Checks/CheckStringy.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function checkStringy($tokens, $absFilePath)
}

$classPath = \trim($token[1], '\'\"');
if (\class_exists($classPath)) {
if (! \class_exists($classPath)) {
if (self::refersToDir($classPath)) {
continue;
}
Expand All @@ -36,9 +36,11 @@ public function checkStringy($tokens, $absFilePath)

$errorPrinter->printLink($absFilePath, $token[2]);
$command = app('current.command');

if (! self::ask($command, $token, $absFilePath)) {
continue;
}

$classPath = $this->getClassyPath($classPath);
$command->info('Replacing: '.$token[1].' with: '.$classPath);

Expand Down

0 comments on commit eadd9cc

Please sign in to comment.