Skip to content

Commit c4d4768

Browse files
Fix typo in constant name
1 parent ad13021 commit c4d4768

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

app/code/Magento/Deploy/Console/DeployStaticOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class DeployStaticOptions
8181
/**
8282
* Key for js-bundle option
8383
*/
84-
const NO_JS_BUNLDE = 'no-js-bundle';
84+
const NO_JS_BUNDLE = 'no-js-bundle';
8585

8686
/**
8787
* Key for css option
@@ -281,7 +281,7 @@ private function getSkipOptions()
281281
'Do not deploy JavaScript files.'
282282
),
283283
new InputOption(
284-
self::NO_JS_BUNLDE,
284+
self::NO_JS_BUNDLE,
285285
null,
286286
InputOption::VALUE_NONE,
287287
'Do not deploy JavaScript bundle files.'

app/code/Magento/Deploy/Service/DeployStaticContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function deploy(array $options)
128128
}
129129
}
130130

131-
if ($options[Options::NO_JAVASCRIPT] !== true && $options[Options::NO_JS_BUNLDE] !== true) {
131+
if ($options[Options::NO_JAVASCRIPT] !== true && $options[Options::NO_JS_BUNDLE] !== true) {
132132
$deployBundle = $this->objectManager->create(Bundle::class, [
133133
'logger' => $this->logger
134134
]);

app/code/Magento/Deploy/Test/Unit/Service/DeployStaticContentTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,13 @@ public function deployDataProvider()
228228
public function testMaxExecutionTimeOptionPassed()
229229
{
230230
$options = [
231-
DeployStaticOptions::MAX_EXECUTION_TIME => 100,
231+
DeployStaticOptions::MAX_EXECUTION_TIME => 100,
232232
DeployStaticOptions::REFRESH_CONTENT_VERSION_ONLY => false,
233-
DeployStaticOptions::JOBS_AMOUNT => 3,
234-
DeployStaticOptions::STRATEGY => 'compact',
235-
DeployStaticOptions::NO_JAVASCRIPT => true,
236-
DeployStaticOptions::NO_JS_BUNLDE => true,
237-
DeployStaticOptions::NO_HTML_MINIFY => true,
233+
DeployStaticOptions::JOBS_AMOUNT => 3,
234+
DeployStaticOptions::STRATEGY => 'compact',
235+
DeployStaticOptions::NO_JAVASCRIPT => true,
236+
DeployStaticOptions::NO_JS_BUNDLE => true,
237+
DeployStaticOptions::NO_HTML_MINIFY => true,
238238
];
239239

240240
$queueMock = $this->createMock(Queue::class);

0 commit comments

Comments
 (0)