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

Commit 87448d4

Browse files
committed
delete comments from controller content
1 parent 0c40696 commit 87448d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/helpers/ScanHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ 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);
6869

6970
// ignore abstract classes
7071
if (false !== strpos($content, 'abstract class')) {

0 commit comments

Comments
 (0)