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/form/Element.php 1 patch
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.
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/TemplateRenderer.php 1 patch
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.