Skip to content

Commit eadd9cc

Browse files
committed
fix
1 parent 6514e8d commit eadd9cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Checks/CheckStringy.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function checkStringy($tokens, $absFilePath)
2626
}
2727

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

3737
$errorPrinter->printLink($absFilePath, $token[2]);
3838
$command = app('current.command');
39+
3940
if (! self::ask($command, $token, $absFilePath)) {
4041
continue;
4142
}
43+
4244
$classPath = $this->getClassyPath($classPath);
4345
$command->info('Replacing: '.$token[1].' with: '.$classPath);
4446

0 commit comments

Comments
 (0)