Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public static function getPublicDir($projectDir) |
||
25 | { |
||
26 | $projectDir = rtrim($projectDir, '/'); |
||
27 | |||
28 | if (file_exists($webDir = "$projectDir/".self::WEB_FOLDER_NAME.'/')) { |
||
29 | return $webDir; |
||
30 | } |
||
31 | |||
32 | if (file_exists($publicDir = "$projectDir/".self::PUBLIC_FOLDER_NAME.'/')) { |
||
33 | return $publicDir; |
||
34 | } |
||
35 | |||
36 | return $projectDir.'/'; |
||
37 | } |
||
39 |