Passed
Branch main (ba1bab)
by Marcos
11:19
created
Category
src/View.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 class View
6 6
 {
7 7
     /** @var array */
8
-    private $vars = [];
8
+    private $vars = [ ];
9 9
 
10 10
     /** @var string */
11 11
     private $pathToViews;
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param array $vars
27 27
      * @return void
28 28
      */
29
-    public function init(array $vars = []): void
29
+    public function init(array $vars = [ ]): void
30 30
     {
31 31
         $this->vars = $vars;
32 32
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param array $vars
38 38
      * @return string
39 39
      */
40
-    public function render(string $view, array $vars = []): string
40
+    public function render(string $view, array $vars = [ ]): string
41 41
     {
42 42
         $contentView = $this->getContentView($view);
43 43
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $keys = array_keys($vars);
47 47
         $keys = array_map(function($item) {
48
-            return "{{". $item ."}}";
48
+            return "{{" . $item . "}}";
49 49
         }, $keys);
50 50
 
51 51
         return str_replace($keys, array_values($vars), $contentView);
Please login to merge, or discard this patch.