Skip to content

Commit d200e61

Browse files
Update CheckViewFilesExistence.php
1 parent 421d0ae commit d200e61

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Checks/CheckViewFilesExistence.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Illuminate\Support\Facades\View;
66
use Imanghafoori\LaravelMicroscope\Commands\CheckViews;
7-
use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
7+
use Imanghafoori\LaravelMicroscope\ErrorTypes\BladeFile;
88

99
class CheckViewFilesExistence
1010
{
@@ -42,10 +42,7 @@ private static function isEnvMake($tokens, $i)
4242

4343
private static function error($tokens, $absPath, $i)
4444
{
45-
$p = app(ErrorPrinter::class);
46-
$p->print('included view: '.$tokens[$i + 4][1].' does not exist in blade file');
47-
$p->printLink($absPath, $tokens[$i + 4][2]);
48-
$p->end();
45+
BladeFile::isMissing($absPath, $tokens[$i + 4][2], $tokens[$i + 4][1]);
4946
}
5047

5148
private static function isVariable($token, string $varName)

0 commit comments

Comments
 (0)