@@ -89,7 +89,7 @@ public function onPostCmdEvent(\Composer\Script\Event $event) {
89
89
// Only install the scaffolding if drupal/core was installed,
90
90
// AND there are no scaffolding files present.
91
91
if (isset ($ this ->drupalCorePackage )) {
92
- $ this ->downloadScaffold ($ event-> isDevMode () );
92
+ $ this ->downloadScaffold ($ event );
93
93
// Generate the autoload.php file after generating the scaffold files.
94
94
$ this ->generateAutoload ();
95
95
}
@@ -98,18 +98,18 @@ public function onPostCmdEvent(\Composer\Script\Event $event) {
98
98
/**
99
99
* Downloads drupal scaffold files for the current process.
100
100
*
101
- * @param bool $dev
102
- * TRUE if dev packages are installed. FALSE otherwise .
101
+ * @param \Composer\Script\Event $event
102
+ * The Composer event .
103
103
*/
104
- public function downloadScaffold ($ dev = FALSE ) {
104
+ public function downloadScaffold ($ event ) {
105
105
$ drupalCorePackage = $ this ->getDrupalCorePackage ();
106
106
$ webroot = realpath ($ this ->getWebRoot ());
107
107
108
108
// Collect options, excludes, dev and settings files.
109
109
$ options = $ this ->getOptions ();
110
110
$ includes = $ this ->getIncludes ();
111
111
// Check dev files if necessary.
112
- if ($ dev ) {
112
+ if ($ event -> isDevMode () ) {
113
113
$ includes = array_merge ($ includes , $ this ->getIncludesDev ());
114
114
}
115
115
$ files = array_diff ($ includes , $ this ->getExcludes ());
0 commit comments