diff --git a/Block/Hints/Init.php b/Block/Hints/Init.php index f9a9f87..0960196 100644 --- a/Block/Hints/Init.php +++ b/Block/Hints/Init.php @@ -1,6 +1,6 @@ isHintEnabled()) { $this->assetRepository = $context->getAssetRepository(); $this->assetCollection = $assetCollection; @@ -54,7 +47,6 @@ public function __construct( return parent::__construct($context, $data); } - /** * Add assets to the header required for the initialisation of the scripts * diff --git a/Plugin/View/LayoutPlugin.php b/Plugin/View/LayoutPlugin.php index efe5ced..d098915 100644 --- a/Plugin/View/LayoutPlugin.php +++ b/Plugin/View/LayoutPlugin.php @@ -1,8 +1,9 @@ hintConfig = $hintConfig; $this->directoryList = $directoryList; + $this->hintConfig = $hintConfig; $this->layout = $layout; $layoutReflection = new \ReflectionClass($this->layout); @@ -76,6 +71,7 @@ public function aroundRenderElement(Layout $layout, Closure $proceed, $name, $us if ($this->hintConfig->isHintEnabled() === false) { return $result; } + return $this->_decorateElement($result, $name); } @@ -120,8 +116,7 @@ private function _decorateElement($result, $name) */ public function decorateOuterElement($html, $attributes) { - - if (!$html) { + if (! $html) { return $html; } @@ -137,12 +132,13 @@ public function decorateOuterElement($html, $attributes) $html, 1 ); + return $html; } /** * @param string $nameInLayout - * @param [] $container + * @param array $container * * @return string */ @@ -198,8 +194,10 @@ public static function filterEscapeEncode(array $data) } /** - * Filter and escape the complete array + * Filter and escape the complete array. + * * @param $data + * * @return array */ private static function filterEscape($data) @@ -237,6 +235,7 @@ private function getBlockClass(\Magento\Framework\View\Element\AbstractBlock $bl $reflector = new \ReflectionClass($block); //@codingStandardsIgnoreLine $className = $reflector->getParentClass()->getName(); } + return $className; } } diff --git a/etc/di.xml b/etc/di.xml index 7fc7a75..14cfbf0 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -1,12 +1,10 @@ - + ~ Copyright © 2017 H&O E-commerce specialisten B.V. (http://www.h-o.nl/) + ~ See LICENSE.txt for license details. + --> + diff --git a/etc/module.xml b/etc/module.xml index 6b58580..de0e9fb 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,10 +1,8 @@ + ~ Copyright © 2017 H&O E-commerce specialisten B.V. (http://www.h-o.nl/) + ~ See LICENSE.txt for license details. + --> diff --git a/view/base/layout/default.xml b/view/base/layout/default.xml index 16c479b..df3c524 100644 --- a/view/base/layout/default.xml +++ b/view/base/layout/default.xml @@ -1,10 +1,9 @@ + ~ Copyright © 2017 H&O E-commerce specialisten B.V. (http://www.h-o.nl/) + ~ See LICENSE.txt for license details. + --> +