diff --git a/Model/Config.php b/Model/Config.php index 43b403d..c8886ea 100644 --- a/Model/Config.php +++ b/Model/Config.php @@ -115,24 +115,20 @@ public function isBundlingEnabled(string $storeId = null): bool /** * Retrieve true if bundling optimization is enabled - * - * @param string|null $storeId * @return bool */ - public function isBundlingOptimizationEnabled(string $storeId = null): bool + public function isBundlingOptimizationEnabled(): bool { - return (bool)$this->getConfig(self::XML_PATH_JAVASCRIPT_BUNDLING_OPTIMIZATION_ENABLED, $storeId); + return (bool)$this->getConfig(self::XML_PATH_JAVASCRIPT_BUNDLING_OPTIMIZATION_ENABLED); } /** * Retrieve included in bundling JS - * - * @param string|null $storeId * @return string */ - public function getIncludedInBundling(string $storeId = null): string + public function getIncludedInBundling(): string { - return (string)$this->getConfig(self::XML_PATH_JAVASCRIPT_BUNDLING_INCLUDED_IN_BUNDLING, $storeId); + return (string)$this->getConfig(self::XML_PATH_JAVASCRIPT_BUNDLING_INCLUDED_IN_BUNDLING); } /** diff --git a/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php b/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php index 4a49824..4295fe8 100644 --- a/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php +++ b/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php @@ -55,6 +55,7 @@ public function aroundAddFile(RequireJs $subject, callable $proceed, $filePath, return true; } } + return $proceed($filePath, $sourcePath, $contentType); } diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 51d1fc8..a462f1c 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -69,7 +69,7 @@ Magefan\RocketJavaScript\Model\Config\Backend\DevSettings Static content deployment is a requirement after option change - + 1 @@ -77,7 +77,7 @@ Static content deployment is a requirement after option change Magento\Config\Model\Config\Source\Yesno - + 1