@@ 39-49 (lines=11) @@ | ||
36 | ||
37 | return $contents; |
|
38 | }, |
|
39 | function ($filePath, $prefix, $contents) { |
|
40 | if (strpos($filePath, 'vendor/phpmyadmin/sql-parser/src/Context.php') === 0) { |
|
41 | return str_replace( |
|
42 | '\'' . $prefix, |
|
43 | '\'\\\\' . $prefix, |
|
44 | $contents |
|
45 | ); |
|
46 | } |
|
47 | ||
48 | return $contents; |
|
49 | }, |
|
50 | function ($filePath, $prefix, $contents) { |
|
51 | if (strpos($filePath, 'vendor/openlss') === 0) { |
|
52 | return str_replace( |
|
@@ 50-60 (lines=11) @@ | ||
47 | ||
48 | return $contents; |
|
49 | }, |
|
50 | function ($filePath, $prefix, $contents) { |
|
51 | if (strpos($filePath, 'vendor/openlss') === 0) { |
|
52 | return str_replace( |
|
53 | $prefix . '\\DomDocument', |
|
54 | 'DomDocument', |
|
55 | $contents |
|
56 | ); |
|
57 | } |
|
58 | ||
59 | return $contents; |
|
60 | }, |
|
61 | function ($filePath, $prefix, $contents) { |
|
62 | if ($filePath === 'src/psalm.php') { |
|
63 | return str_replace( |
|
@@ 61-71 (lines=11) @@ | ||
58 | ||
59 | return $contents; |
|
60 | }, |
|
61 | function ($filePath, $prefix, $contents) { |
|
62 | if ($filePath === 'src/psalm.php') { |
|
63 | return str_replace( |
|
64 | '\\' . $prefix . '\\PSALM_VERSION', |
|
65 | 'PSALM_VERSION', |
|
66 | $contents |
|
67 | ); |
|
68 | } |
|
69 | ||
70 | return $contents; |
|
71 | }, |
|
72 | function ($filePath, $prefix, $contents) { |
|
73 | $ret = str_replace( |
|
74 | $prefix . '\\Psalm\\', |