Passed
Push — master ( e6253a...f14348 )
by Romain
03:34
created
Classes/Backend/Module/ModuleHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * @param string $module
50 50
      * @return ModuleHandler
51 51
      */
52
-    public static function for(string $module): ModuleHandler
52
+    public static function for (string $module): ModuleHandler
53 53
     {
54 54
         /** @var ModuleHandler $moduleHandler */
55 55
         $moduleHandler = Container::get(__NAMESPACE__ . '\\' . $module . 'ModuleHandler');
Please login to merge, or discard this patch.
Classes/ViewHelpers/Backend/Module/LinkViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     {
82 82
         $content = $this->renderChildren();
83 83
 
84
-        $moduleHandler = ModuleHandler::for($this->arguments['module']);
84
+        $moduleHandler = ModuleHandler::for ($this->arguments['module']);
85 85
 
86 86
         if (!$moduleHandler->canBeAccessed()) {
87 87
             return $content;
Please login to merge, or discard this patch.
Classes/ViewHelpers/Backend/Module/HasAccessViewHelper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
      */
43 43
     public function render()
44 44
     {
45
-        return ModuleHandler::for($this->arguments['module'])->canBeAccessed();
45
+        return ModuleHandler::for ($this->arguments['module'])->canBeAccessed();
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,8 @@
 block discarded – undo
42 42
      */
43 43
     public function render()
44 44
     {
45
-        return ModuleHandler::for($this->arguments['module'])->canBeAccessed();
45
+        return ModuleHandler::for($this->arguments['module']) {
46
+            ->canBeAccessed();
47
+        }
46 48
     }
47 49
 }
Please login to merge, or discard this patch.