@@ 49-52 (lines=4) @@ | ||
46 | protected static function calculateResourcePathname($filename_path, $source) |
|
47 | { |
|
48 | $source_file = preg_replace("/'/", "", $source[1]); |
|
49 | if (preg_match('/\#/', $source_file)) { |
|
50 | $source_file = explode("#", $source_file); |
|
51 | $source_file = $source_file[0]; |
|
52 | } |
|
53 | if (preg_match('/\?/', $source_file)) { |
|
54 | $source_file = explode("?", $source_file); |
|
55 | $source_file = $source_file[0]; |
|
@@ 53-56 (lines=4) @@ | ||
50 | $source_file = explode("#", $source_file); |
|
51 | $source_file = $source_file[0]; |
|
52 | } |
|
53 | if (preg_match('/\?/', $source_file)) { |
|
54 | $source_file = explode("?", $source_file); |
|
55 | $source_file = $source_file[0]; |
|
56 | } |
|
57 | $orig = realpath(dirname($filename_path) . DIRECTORY_SEPARATOR . $source_file); |
|
58 | return $orig; |
|
59 | } |
|
@@ 452-455 (lines=4) @@ | ||
449 | protected function extractSourceFilename($source) |
|
450 | { |
|
451 | $source_file = preg_replace("/'/", "", $source[1]); |
|
452 | if (preg_match('/\#/', $source_file)) { |
|
453 | $source_file = explode("#", $source_file); |
|
454 | $source_file = $source_file[0]; |
|
455 | } |
|
456 | if (preg_match('/\?/', $source_file)) { |
|
457 | $source_file = explode("?", $source_file); |
|
458 | $source_file = $source_file[0]; |
|
@@ 456-460 (lines=5) @@ | ||
453 | $source_file = explode("#", $source_file); |
|
454 | $source_file = $source_file[0]; |
|
455 | } |
|
456 | if (preg_match('/\?/', $source_file)) { |
|
457 | $source_file = explode("?", $source_file); |
|
458 | $source_file = $source_file[0]; |
|
459 | return $source_file; |
|
460 | } |
|
461 | return $source_file; |
|
462 | } |
|
463 |
@@ 185-188 (lines=4) @@ | ||
182 | $docs = explode("\n", $comments); |
|
183 | if (count($docs)) { |
|
184 | foreach ($docs as &$doc) { |
|
185 | if (!preg_match('/(\*\*|\@)/i', $doc) && preg_match('/\*\ /i', $doc)) { |
|
186 | $doc = explode('* ', $doc); |
|
187 | $description = $doc[1]; |
|
188 | } |
|
189 | } |
|
190 | } |
|
191 |