Completed
Push — dev ( 063da9...de13f3 )
by James Ekow Abaka
01:44
created
src/TemplateFileResolver.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -33,6 +33,11 @@  discard block
 block discarded – undo
33 33
         array_unshift($this->pathHierarchy, $path);
34 34
     }
35 35
 
36
+    /**
37
+     * @param string $testTemplate
38
+     * @param string[] $paths
39
+     * @param string $extension
40
+     */
36 41
     private function testTemplateFile($testTemplate, $paths, $extension)
37 42
     {
38 43
         $templateFile = '';
@@ -46,6 +51,10 @@  discard block
 block discarded – undo
46 51
         return $templateFile;
47 52
     }
48 53
 
54
+    /**
55
+     * @param string $testTemplate
56
+     * @param string[] $paths
57
+     */
49 58
     private function testNoEngineTemplateFile($testTemplate, $paths)
50 59
     {
51 60
         $templateFile = '';
@@ -53,6 +62,10 @@  discard block
 block discarded – undo
53 62
             $newTemplateFile = "$testTemplate.*";
54 63
             $files = array_filter(
55 64
                 scandir($path),
65
+
66
+                /**
67
+                 * @param string $file
68
+                 */
56 69
                 function($file) use($newTemplateFile) {
57 70
                     return fnmatch($newTemplateFile, $file);
58 71
                 });
@@ -67,6 +80,9 @@  discard block
 block discarded – undo
67 80
         return $templateFile;
68 81
     }
69 82
 
83
+    /**
84
+     * @param string $template
85
+     */
70 86
     private function searchTemplateDirectory($template, $ignoreEngine = false)
71 87
     {
72 88
         $templateFile = '';
Please login to merge, or discard this patch.
src/engines/php/helpers/PaginationHelper.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,6 @@
 block discarded – undo
33 33
 namespace ntentan\honam\engines\php\helpers;
34 34
 
35 35
 use ntentan\honam\engines\php\Helper;
36
-
37
-use ntentan\honam\TemplateEngine;
38 36
 use ntentan\utils\Input;
39 37
 
40 38
 class PaginationHelper extends Helper
Please login to merge, or discard this patch.
src/factories/MustacheEngineFactory.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 namespace ntentan\honam\factories;
4 4
 
5 5
 use Mustache_Engine;
6
+use ntentan\honam\TemplateFileResolver;
6 7
 use ntentan\honam\engines\AbstractEngine;
8
+use ntentan\honam\engines\MustacheEngine;
7 9
 use ntentan\honam\engines\mustache\MustacheLoader;
8 10
 use ntentan\honam\engines\mustache\MustachePartialsLoader;
9
-use ntentan\honam\engines\MustacheEngine;
10
-use ntentan\honam\TemplateFileResolver;
11 11
 
12 12
 
13 13
 class MustacheEngineFactory implements EngineFactoryInterface
Please login to merge, or discard this patch.
src/engines/php/helpers/form/Element.php 2 patches
Doc Comments   +19 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,6 +126,9 @@  discard block
 block discarded – undo
126 126
         $this->setId($id);
127 127
     }
128 128
     
129
+    /**
130
+     * @param string $id
131
+     */
129 132
     public function setId($id)
130 133
     {
131 134
         $this->id = str_replace(".","_",$id);
@@ -141,7 +144,7 @@  discard block
 block discarded – undo
141 144
     /**
142 145
      * Public accessor for setting the name property of the field.
143 146
      *
144
-     * @param  $name The name to assign to the form element.
147
+     * @param  string $name The name to assign to the form element.
145 148
      * @return Element
146 149
      */
147 150
     public function setName($name)
@@ -161,6 +164,10 @@  discard block
 block discarded – undo
161 164
     }
162 165
 
163 166
     //! Sets the label which is attached to this element.
167
+
168
+    /**
169
+     * @param string $label
170
+     */
164 171
     public function setLabel($label)
165 172
     {
166 173
         $this->label = $label;
@@ -188,6 +195,7 @@  discard block
 block discarded – undo
188 195
      * Sets the description which is attached to this element. The description
189 196
      * is normally displayed under the element when rendering HTML.
190 197
      *
198
+     * @param string $description
191 199
      * @return Element
192 200
      */
193 201
     public function setDescription($description)
@@ -249,6 +257,10 @@  discard block
 block discarded – undo
249 257
     //! This method internally creates a new Attribute object and appends
250 258
     //! it to the list of attributes.
251 259
     //! \see Attribute
260
+
261
+    /**
262
+     * @param string $attribute
263
+     */
252 264
     public function setAttribute($attribute,$value,$scope = Element::SCOPE_ELEMENT)
253 265
     {
254 266
         // Force the setting of the attribute.
@@ -278,6 +290,9 @@  discard block
 block discarded – undo
278 290
         return $attributes;
279 291
     }
280 292
     
293
+    /**
294
+     * @param string $attribute
295
+     */
281 296
     public function getAttribute($attribute, $scope = Element::SCOPE_ELEMENT)
282 297
     {
283 298
         $attributes = $this->getAttributes($scope);
@@ -295,6 +310,9 @@  discard block
 block discarded – undo
295 310
         return $this->renderLabel;
296 311
     }
297 312
     
313
+    /**
314
+     * @param boolean $renderLabel
315
+     */
298 316
     public function setRenderLabel($renderLabel)
299 317
     {
300 318
         $this->renderLabel = $renderLabel;
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,6 @@
 block discarded – undo
31 31
 
32 32
 namespace ntentan\honam\engines\php\helpers\form;
33 33
 
34
-use ntentan\honam\engines\php\helpers\formHelper;
35
-use ntentan\honam\TemplateEngine;
36
-
37 34
 /**
38 35
  * The form element class. An element can be anything from the form
39 36
  * itself to the objects that are put in the form. Provides an
Please login to merge, or discard this patch.
src/engines/php/helpers/form/Field.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     /**
77 77
      * Get the value of the field.
78 78
      *
79
-     * @return unknown
79
+     * @return string
80 80
      */
81 81
     public function getValue()
82 82
     {
Please login to merge, or discard this patch.
src/engines/PhpEngine.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,10 @@
 block discarded – undo
27 27
 namespace ntentan\honam\engines;
28 28
 
29 29
 use Exception;
30
+use ntentan\honam\TemplateRenderer;
30 31
 use ntentan\honam\engines\php\HelperVariable;
31 32
 use ntentan\honam\engines\php\Janitor;
32 33
 use ntentan\honam\engines\php\Variable;
33
-use ntentan\honam\TemplateFileResolver;
34
-use ntentan\honam\TemplateRenderer;
35 34
 use ntentan\utils\StringStream;
36 35
 
37 36
 /**
Please login to merge, or discard this patch.
src/TemplateRenderer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      * Load and cache an instance of the a template engine.
111 111
      *
112 112
      * @param $extension
113
-     * @return mixed
113
+     * @return AbstractEngine
114 114
      * @throws exceptions\TemplateEngineNotFoundException
115 115
      * @throws exceptions\FactoryException
116 116
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
 use ntentan\honam\engines\AbstractEngine;
30 30
 use ntentan\honam\exceptions\TemplateEngineNotFoundException;
31 31
 use ntentan\honam\exceptions\TemplateResolutionException;
32
-use ntentan\honam\factories\HelperVariable;
33 32
 
34 33
 /**
35 34
  * The TemplateEngine class does the work of resolving templates, loading template files,
Please login to merge, or discard this patch.