From 3e7ae5ce390e358cb9ca7f64f500bee90e631ca1 Mon Sep 17 00:00:00 2001 From: Florian Date: Fri, 5 Aug 2016 20:04:10 +0200 Subject: [PATCH] Change explicit class to self in AutoloadGenerator Follow-up: I3a426b92892f4c00cab33a13f6a717751120367c Change-Id: I9d91ca42dbf41604639fff2ca00efa6fb262cb3d --- includes/utils/AutoloadGenerator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/utils/AutoloadGenerator.php b/includes/utils/AutoloadGenerator.php index de52cd949c..2ebc9ed9f0 100644 --- a/includes/utils/AutoloadGenerator.php +++ b/includes/utils/AutoloadGenerator.php @@ -229,7 +229,7 @@ EOD; $fileinfo = $this->getTargetFileinfo(); - if ( $fileinfo['type'] === AutoloadGenerator::FILETYPE_JSON ) { + if ( $fileinfo['type'] === self::FILETYPE_JSON ) { return $this->generateJsonAutoload( $fileinfo['filename'] ); } else { return $this->generatePHPAutoload( $commandName, $fileinfo['filename'] ); @@ -247,17 +247,17 @@ EOD; public function getTargetFileinfo() { $fileinfo = [ 'filename' => $this->basepath . '/autoload.php', - 'type' => AutoloadGenerator::FILETYPE_PHP + 'type' => self::FILETYPE_PHP ]; if ( file_exists( $this->basepath . '/extension.json' ) ) { $fileinfo = [ 'filename' => $this->basepath . '/extension.json', - 'type' => AutoloadGenerator::FILETYPE_JSON + 'type' => self::FILETYPE_JSON ]; } elseif ( file_exists( $this->basepath . '/skin.json' ) ) { $fileinfo = [ 'filename' => $this->basepath . '/skin.json', - 'type' => AutoloadGenerator::FILETYPE_JSON + 'type' => self::FILETYPE_JSON ]; } -- 2.20.1