Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 0470fd8

Browse files
committed
patterm to delete comment
1 parent 87448d4 commit 0470fd8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/helpers/ScanHelper.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@ public static function scanControllerActionIds(array $controllers)
6565
$actions = [];
6666
foreach ($controllers as $filename) {
6767
$content = file_get_contents($filename);
68-
$content = preg_replace('/(\/\*([^*]|[\r\n]|(\*([^/]|[\r\n])))*\*\/)|(\/\/.*)/i', '', $content);
69-
68+
$content = preg_replace(
69+
"/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/)|(\/\/.*)/i",
70+
'',
71+
$content
72+
);
7073
// ignore abstract classes
7174
if (false !== strpos($content, 'abstract class')) {
7275
continue;

0 commit comments

Comments
 (0)