@@ -89,7 +89,7 @@ public function onPostCmdEvent(\Composer\Script\Event $event) {
8989 // Only install the scaffolding if drupal/core was installed,
9090 // AND there are no scaffolding files present.
9191 if (isset ($ this ->drupalCorePackage )) {
92- $ this ->downloadScaffold ($ event-> isDevMode () );
92+ $ this ->downloadScaffold ($ event );
9393 // Generate the autoload.php file after generating the scaffold files.
9494 $ this ->generateAutoload ();
9595 }
@@ -98,18 +98,18 @@ public function onPostCmdEvent(\Composer\Script\Event $event) {
9898 /**
9999 * Downloads drupal scaffold files for the current process.
100100 *
101- * @param bool $dev
102- * TRUE if dev packages are installed. FALSE otherwise .
101+ * @param \Composer\Script\Event $event
102+ * The Composer event .
103103 */
104- public function downloadScaffold ($ dev = FALSE ) {
104+ public function downloadScaffold ($ event ) {
105105 $ drupalCorePackage = $ this ->getDrupalCorePackage ();
106106 $ webroot = realpath ($ this ->getWebRoot ());
107107
108108 // Collect options, excludes, dev and settings files.
109109 $ options = $ this ->getOptions ();
110110 $ includes = $ this ->getIncludes ();
111111 // Check dev files if necessary.
112- if ($ dev ) {
112+ if ($ event -> isDevMode () ) {
113113 $ includes = array_merge ($ includes , $ this ->getIncludesDev ());
114114 }
115115 $ files = array_diff ($ includes , $ this ->getExcludes ());
0 commit comments