getFilename(), '.blade.php')) { continue; } $contents = File::get($view->getRealPath()); if (! str_contains($contents, '@endphp')) { continue; } // Exakt das Muster des Compilers: jeder Treffer, dessen Inhalt mit // `(` beginnt, ist ein inline @php(, das einen Block verschluckt. preg_match_all('/(?getRelativePathname(), substr_count($contents, "\n", 0, $offset) + 1); } } } expect($offenders)->toBe([], "Inline @php( vor einem @php-Block — auf Blockform umstellen:\n".implode("\n", $offenders)); });