@@ 51-54 (lines=4) @@ | ||
48 | protected static function calculateResourcePathname($filename_path, $source) |
|
49 | { |
|
50 | $source_file = preg_replace("/'/", "", $source[1]); |
|
51 | if (preg_match('/\#/', $source_file)) { |
|
52 | $source_file = explode("#", $source_file); |
|
53 | $source_file = $source_file[0]; |
|
54 | } |
|
55 | if (preg_match('/\?/', $source_file)) { |
|
56 | $source_file = explode("?", $source_file); |
|
57 | $source_file = $source_file[0]; |
|
@@ 55-58 (lines=4) @@ | ||
52 | $source_file = explode("#", $source_file); |
|
53 | $source_file = $source_file[0]; |
|
54 | } |
|
55 | if (preg_match('/\?/', $source_file)) { |
|
56 | $source_file = explode("?", $source_file); |
|
57 | $source_file = $source_file[0]; |
|
58 | } |
|
59 | $orig = realpath(dirname($filename_path).DIRECTORY_SEPARATOR.$source_file); |
|
60 | return $orig; |
|
61 | } |
|
@@ 426-429 (lines=4) @@ | ||
423 | protected function extractSourceFilename($source) |
|
424 | { |
|
425 | $source_file = preg_replace("/'/", "", $source[1]); |
|
426 | if (preg_match('/\#/', $source_file)) { |
|
427 | $source_file = explode("#", $source_file); |
|
428 | $source_file = $source_file[0]; |
|
429 | } |
|
430 | if (preg_match('/\?/', $source_file)) { |
|
431 | $source_file = explode("?", $source_file); |
|
432 | $source_file = $source_file[0]; |
|
@@ 430-434 (lines=5) @@ | ||
427 | $source_file = explode("#", $source_file); |
|
428 | $source_file = $source_file[0]; |
|
429 | } |
|
430 | if (preg_match('/\?/', $source_file)) { |
|
431 | $source_file = explode("?", $source_file); |
|
432 | $source_file = $source_file[0]; |
|
433 | return $source_file; |
|
434 | } |
|
435 | return $source_file; |
|
436 | } |
|
437 |
@@ 161-164 (lines=4) @@ | ||
158 | $docs = explode("\n", $comments); |
|
159 | if (count($docs)) { |
|
160 | foreach ($docs as &$doc) { |
|
161 | if (!preg_match('/(\*\*|\@)/i', $doc) && preg_match('/\*\ /i', $doc)) { |
|
162 | $doc = explode('* ', $doc); |
|
163 | $description = $doc[1]; |
|
164 | } |
|
165 | } |
|
166 | } |
|
167 |