改名
This commit is contained in:
@@ -82,6 +82,12 @@ class Annotation extends Component
|
|||||||
foreach ($paths as $path) {
|
foreach ($paths as $path) {
|
||||||
$explode = explode('/', $path);
|
$explode = explode('/', $path);
|
||||||
|
|
||||||
|
$length = strlen($path);
|
||||||
|
if ($length != $length - strpos('.php', $path)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$explode_pop = array_pop($explode);
|
$explode_pop = array_pop($explode);
|
||||||
if (is_file($path)) {
|
if (is_file($path)) {
|
||||||
$explode_pop = str_replace('.php', '', $explode_pop);
|
$explode_pop = str_replace('.php', '', $explode_pop);
|
||||||
|
|||||||
Reference in New Issue
Block a user