X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Fcomposer%2FComposerJson.php;h=62231a89b61079370b83d055960cbd6d2fec6014;hp=bb55ac638074a190d00dbefce6a50cb981a3a497;hb=64b83bdb3afd0ee4f8fc1893a865409c198e601e;hpb=3301e78e5a2e5662952c0564f830a492743f9844 diff --git a/includes/libs/composer/ComposerJson.php b/includes/libs/composer/ComposerJson.php index bb55ac6380..62231a89b6 100644 --- a/includes/libs/composer/ComposerJson.php +++ b/includes/libs/composer/ComposerJson.php @@ -12,21 +12,16 @@ class ComposerJson { * @param string $location */ public function __construct( $location ) { - $this->hash = md5_file( $location ); $this->contents = json_decode( file_get_contents( $location ), true ); } - public function getHash() { - return $this->hash; - } - /** * Dependencies as specified by composer.json * * @return array */ public function getRequiredDependencies() { - $deps = array(); + $deps = []; if ( isset( $this->contents['require'] ) ) { foreach ( $this->contents['require'] as $package => $version ) { if ( $package !== "php" && strpos( $package, 'ext-' ) !== 0 ) {