Passed
Branch master (386688)
by Thomas
04:22
created
Category
src/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,10 +128,10 @@
 block discarded – undo
128 128
             $helpers = new ViewHelpers();
129 129
             $view = new View($viewsPath, $helpers);
130 130
 
131
-            $view->registerHelper('escape', function (string $string) {
131
+            $view->registerHelper('escape', function(string $string) {
132 132
                 return htmlspecialchars($string);
133 133
             });
134
-            $view->registerHelper('url', function ($args) {
134
+            $view->registerHelper('url', function($args) {
135 135
                 return UrlHelper::to($args);
136 136
             });
137 137
 
Please login to merge, or discard this patch.
example/library/HtmlMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,14 +50,14 @@
 block discarded – undo
50 50
         if (static::MODE_PREPEND == $this->mode) {
51 51
             $contents = str_replace(
52 52
                 '<body>',
53
-                "<body>".$this->string,
53
+                "<body>" . $this->string,
54 54
                 $contents
55 55
             );
56 56
         }
57 57
         if (static::MODE_APPEND == $this->mode) {
58 58
             $contents = str_replace(
59 59
                 '</body>',
60
-                $this->string.'</body>',
60
+                $this->string . '</body>',
61 61
                 $contents
62 62
             );
63 63
         }
Please login to merge, or discard this patch.
example/library/MyViewExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 {
10 10
     public function register(View $view)
11 11
     {
12
-        $view->registerHelper('hello', function (string $name = '') {
12
+        $view->registerHelper('hello', function(string $name = '') {
13 13
             return sprintf("Hallo %s", $name);
14 14
         });
15
-        $view->registerHelper('add', function (float ...$operands) {
15
+        $view->registerHelper('add', function(float ...$operands) {
16 16
             return array_sum($operands);
17 17
         });
18 18
     }
Please login to merge, or discard this patch.