Completed
Push — master ( cb5507...0a6922 )
by Son
05:10
created
src/Templater.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,6 +78,7 @@  discard block
 block discarded – undo
78 78
      * Load adapter, currently we are using 2 adapters: twig and blade
79 79
      * 
80 80
      * @var     $adapter_name       string            Path to template folder.
81
+     * @param string $adapter_name
81 82
      * @return  mixed
82 83
      */
83 84
     public function loadAdapter($adapter_name) {
@@ -119,7 +120,7 @@  discard block
 block discarded – undo
119 120
      * 
120 121
      * @var     $app_name       string              Your application name, should be lowercase, letters only.
121 122
      * 
122
-     * @return                  object              \VA\Templater\Engine
123
+     * @return                  Templater              \VA\Templater\Engine
123 124
      */
124 125
     public function setWordPressThemeSupport($app_name) {
125 126
         // Path to templates folder in wordpress theme
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.