X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Fcomposer%2FComposerInstalled.php;h=ef2b768d0b29724ed8fe19074884402b098fc93c;hb=a70c4a4c466db5663b845889cacdef00d7200760;hp=5f87b54b1db8c0b46181ff3c72970c03f331695b;hpb=612753f1841a9ffdb6adbf3128c026064938a15f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/composer/ComposerInstalled.php b/includes/libs/composer/ComposerInstalled.php index 5f87b54b1d..ef2b768d0b 100644 --- a/includes/libs/composer/ComposerInstalled.php +++ b/includes/libs/composer/ComposerInstalled.php @@ -21,15 +21,15 @@ class ComposerInstalled { * @return array */ public function getInstalledDependencies() { - $deps = array(); + $deps = []; foreach ( $this->contents as $installed ) { - $deps[$installed['name']] = array( + $deps[$installed['name']] = [ 'version' => ComposerJson::normalizeVersion( $installed['version'] ), 'type' => $installed['type'], - 'licenses' => isset( $installed['license'] ) ? $installed['license'] : array(), - 'authors' => isset( $installed['authors'] ) ? $installed['authors'] : array(), - 'description' => isset( $installed['description'] ) ? $installed['description']: '', - ); + 'licenses' => isset( $installed['license'] ) ? $installed['license'] : [], + 'authors' => isset( $installed['authors'] ) ? $installed['authors'] : [], + 'description' => isset( $installed['description'] ) ? $installed['description'] : '', + ]; } ksort( $deps );