Merge "Added a separate error message for mkdir failures"
[lhc/web/wiklou.git] / includes / libs / composer / ComposerJson.php
index bb55ac6..62231a8 100644 (file)
@@ -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 ) {