Skip to content

Commit dd37272

Browse files
authored
Merge pull request #206 from jrfnl/feature/qa-no-unnecessary-array-merge
QA: don't unnecessarily use array_merge()
2 parents 5a58cc0 + 562fed6 commit dd37272

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Scaffold_Command.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,8 @@ private function _scaffold( $slug, $assoc_args, $defaults, $subdir, $templates )
173173
$raw_output = self::mustache_render( $raw_template, $vars );
174174

175175
if ( ! $control_args['raw'] ) {
176-
$vars = array_merge( $vars, array(
177-
'machine_name' => $machine_name,
178-
'output' => $raw_output,
179-
) );
176+
$vars['machine_name'] = $machine_name;
177+
$vars['output'] = $raw_output;
180178

181179
$final_output = self::mustache_render( $extended_template, $vars );
182180
} else {

0 commit comments

Comments
 (0)