Completed
Push — master ( 62acb2...956376 )
by Son
06:29
created
src/Templater.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -134,12 +134,12 @@
 block discarded – undo
134 134
         
135 135
         // Preapare template folders
136 136
         $template_folders = [
137
-			$theme_template_path,   // Load this path first
138
-			$this->dir_path         // Load this path second
139
-		];
140
-		$loader = new \Twig_Loader_Filesystem($template_folders);
141
-		$this->adapter->setLoader($loader);
142
-		return $this;
137
+            $theme_template_path,   // Load this path first
138
+            $this->dir_path         // Load this path second
139
+        ];
140
+        $loader = new \Twig_Loader_Filesystem($template_folders);
141
+        $this->adapter->setLoader($loader);
142
+        return $this;
143 143
     }
144 144
     
145 145
 }
146 146
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $method_name = 'load'.ucfirst($adapter_name);
86 86
             if(method_exists($this, $method_name)) {
87 87
                 $this->$method_name();
88
-            }else{
88
+            } else{
89 89
                 throw new \Exception("Could not load adapter $adapter_name");
90 90
             }
91 91
         }
@@ -104,8 +104,7 @@  discard block
 block discarded – undo
104 104
         if($this->adapter_name == 'twig')
105 105
         {
106 106
             return $this->adapter->render($template, $data);
107
-        }
108
-        elseif($this->adapter_name == 'blade')
107
+        } elseif($this->adapter_name == 'blade')
109 108
         {
110 109
             return $this->adapter->view()->make($template,$data)->render();
111 110
         }
Please login to merge, or discard this patch.