| @@ 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 | } |
|
| @@ 445-448 (lines=4) @@ | ||
| 442 | protected function extractSourceFilename($source) |
|
| 443 | { |
|
| 444 | $source_file = preg_replace("/'/", "", $source[1]); |
|
| 445 | if (preg_match('/\#/', $source_file)) { |
|
| 446 | $source_file = explode("#", $source_file); |
|
| 447 | $source_file = $source_file[0]; |
|
| 448 | } |
|
| 449 | if (preg_match('/\?/', $source_file)) { |
|
| 450 | $source_file = explode("?", $source_file); |
|
| 451 | $source_file = $source_file[0]; |
|
| @@ 449-453 (lines=5) @@ | ||
| 446 | $source_file = explode("#", $source_file); |
|
| 447 | $source_file = $source_file[0]; |
|
| 448 | } |
|
| 449 | if (preg_match('/\?/', $source_file)) { |
|
| 450 | $source_file = explode("?", $source_file); |
|
| 451 | $source_file = $source_file[0]; |
|
| 452 | return $source_file; |
|
| 453 | } |
|
| 454 | return $source_file; |
|
| 455 | } |
|
| 456 | ||
| @@ 184-187 (lines=4) @@ | ||
| 181 | $docs = explode("\n", $comments); |
|
| 182 | if (count($docs)) { |
|
| 183 | foreach ($docs as &$doc) { |
|
| 184 | if (!preg_match('/(\*\*|\@)/i', $doc) && preg_match('/\*\ /i', $doc)) { |
|
| 185 | $doc = explode('* ', $doc); |
|
| 186 | $description = $doc[1]; |
|
| 187 | } |
|
| 188 | } |
|
| 189 | } |
|
| 190 | ||