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