From: Florian Date: Fri, 5 Aug 2016 18:04:10 +0000 (+0200) Subject: Change explicit class to self in AutoloadGenerator X-Git-Tag: 1.31.0-rc.0~6157^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/supprimer.php?a=commitdiff_plain;h=3e7ae5ce390e358cb9ca7f64f500bee90e631ca1;p=lhc%2Fweb%2Fwiklou.git Change explicit class to self in AutoloadGenerator Follow-up: I3a426b92892f4c00cab33a13f6a717751120367c Change-Id: I9d91ca42dbf41604639fff2ca00efa6fb262cb3d --- 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 ]; }