Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 0e1e6f8

Browse files
committed
Do not scope common namespaces in strings
1 parent 704f8ed commit 0e1e6f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scoper.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
return [
66
'patchers' => [
77
function (string $filePath, string $prefix, string $content): string {
8-
if ($filePath === 'src/Tasks/ModelTableName.php') {
8+
if (str_starts_with($filePath, 'src/Tasks/')) {
99
$content = str_replace(
10-
$prefix . '\\\\Illuminate\\\\Database\\\\',
10+
$prefix . '\\\\Illuminate\\\\',
1111
'Illuminate\\\\Database\\\\',
1212
$content
1313
);
1414

1515
$content = str_replace(
16-
$prefix . '\\\\App\\\\Models\\\\',
16+
$prefix . '\\\\App\\\\',
1717
'App\\\\Models\\\\',
1818
$content
1919
);

0 commit comments

Comments
 (0)