@@ -46,12 +46,12 @@ class Installer {
4646 *
4747 * @var array
4848 */
49- public $ frontControllers = array (
49+ public $ frontControllers = [
5050 'index.php ' ,
5151 'core/install.php ' ,
5252 'core/rebuild.php ' ,
5353 'core/modules/statistics/statistics.php ' ,
54- ) ;
54+ ] ;
5555
5656 /**
5757 * Flag indicating whether is to run the paranoia installation or not.
@@ -108,7 +108,7 @@ public function __construct(Composer $composer, IOInterface $io) {
108108
109109 $ this ->setAssetFileTypes ();
110110
111- $ this ->excludes = $ this ->getConfig ('excludes ' , array () );
111+ $ this ->excludes = $ this ->getConfig ('excludes ' , [] );
112112 }
113113
114114 /**
@@ -126,11 +126,11 @@ public function getConfig($name, $default = NULL) {
126126 $ extra = $ this ->composer ->getPackage ()->getExtra ();
127127
128128 // TODO: Backward compatibility for old configs. Remove on stable version.
129- $ legacyConfigs = array (
129+ $ legacyConfigs = [
130130 'drupal-app-dir ' ,
131131 'drupal-web-dir ' ,
132132 'drupal-asset-files ' ,
133- ) ;
133+ ] ;
134134 if (in_array ("drupal- $ name " , $ legacyConfigs ) && isset ($ extra ["drupal- $ name " ])) {
135135 return $ extra ["drupal- $ name " ];
136136 }
@@ -264,7 +264,7 @@ public function install() {
264264 }
265265
266266 // Ensure that the app and web directories exist.
267- $ fs ->mkdir (array ( $ this ->appDir , $ this ->webDir ) );
267+ $ fs ->mkdir ([ $ this ->appDir , $ this ->webDir ] );
268268
269269 // Create the stub files.
270270 foreach ($ this ->frontControllers as $ fileName ) {
@@ -291,7 +291,7 @@ public function getSitesPublicFilesPath() {
291291 $ finder ->in ($ this ->appDir . '/sites ' )
292292 ->depth (0 );
293293
294- $ directories = array () ;
294+ $ directories = [] ;
295295
296296 /** @var \Symfony\Component\Finder\SplFileInfo $directory */
297297 foreach ($ finder ->directories () as $ directory ) {
@@ -403,7 +403,7 @@ public function createStubPhpFile($path) {
403403 * Set the asset file types.
404404 */
405405 public function setAssetFileTypes () {
406- $ this ->assetFileTypes = array (
406+ $ this ->assetFileTypes = [
407407 'robots.txt ' ,
408408 '.htaccess ' ,
409409 '*.css ' ,
@@ -420,7 +420,7 @@ public function setAssetFileTypes() {
420420 '*.ttf ' ,
421421 '*.woff ' ,
422422 '*.woff2 ' ,
423- ) ;
423+ ] ;
424424
425425 // Allow people to extend the list from a composer extra key.
426426 $ extraAssetFiles = $ this ->getConfig ('asset-files ' );
0 commit comments