Completed
Push — dev ( 374206...72cd7e )
by James Ekow Abaka
09:12
created
src/engines/php/Helper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * A sort of constructor or entry point for helpers.
43 43
      * @param mixed $arguments
44
-     * @return \ntentan\honam\Helper
44
+     * @return Helper
45 45
      */
46 46
     public function help($arguments)
47 47
     {
Please login to merge, or discard this patch.
src/engines/php/helpers/DateHelper.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -229,6 +229,10 @@
 block discarded – undo
229 229
         return $englishDate;
230 230
     }
231 231
     
232
+    /**
233
+     * @param double $value
234
+     * @param boolean $future
235
+     */
232 236
     private function getEnglishDate($timeFrame, $value, $future)
233 237
     {
234 238
         return ($timeFrame['show_elapsed'] ?  "$value " : '') .
Please login to merge, or discard this patch.
src/engines/php/helpers/feed/generators/RssFeed.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@
 block discarded – undo
98 98
         return $properties[$property];
99 99
     }
100 100
     
101
+    /**
102
+     * @param string $property
103
+     */
101 104
     private function formatProperty($property, $value)
102 105
     {
103 106
         switch($property)
Please login to merge, or discard this patch.
src/engines/php/helpers/form/CheckableField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     /**
63 63
      * Sets the value that should be assigned as the checked value for
64 64
      * this check box.
65
-     * @param $checkedValue The value to be assigned.
65
+     * @param string $checkedValue The value to be assigned.
66 66
      * @return Checkbox
67 67
      */
68 68
     public function setCheckedValue($checkedValue)
Please login to merge, or discard this patch.
src/engines/php/helpers/form/Element.php 2 patches
Doc Comments   +18 added lines, -3 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     /**
149 149
      * Public accessor for setting the name property of the field.
150 150
      *
151
-     * @param  $name The name to assign to the form element.
151
+     * @param  string $name The name to assign to the form element.
152 152
      */
153 153
     public function setName($name)
154 154
     {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * Public accessor for getting the name property of the field.
161 161
      *
162
-     * @return The name of the form field.
162
+     * @return string name of the form field.
163 163
      */
164 164
     public function getName()
165 165
     {
@@ -167,6 +167,10 @@  discard block
 block discarded – undo
167 167
     }
168 168
 
169 169
     //! Sets the label which is attached to this element.
170
+
171
+    /**
172
+     * @param string $label
173
+     */
170 174
     public function setLabel($label)
171 175
     {
172 176
         $this->label = $label;
@@ -194,7 +198,8 @@  discard block
 block discarded – undo
194 198
      * Sets the description which is attached to this element. The description
195 199
      * is normally displayed under the element when rendering HTML.
196 200
      *
197
-     * @return string
201
+     * @param string $description
202
+     * @return Element
198 203
      */
199 204
     public function setDescription($description)
200 205
     {
@@ -253,6 +258,10 @@  discard block
 block discarded – undo
253 258
     //! This method internally creates a new Attribute object and appends
254 259
     //! it to the list of attributes.
255 260
     //! \see Attribute
261
+
262
+    /**
263
+     * @param string $attribute
264
+     */
256 265
     public function setAttribute($attribute,$value,$scope = Element::SCOPE_ELEMENT)
257 266
     {
258 267
         // Force the setting of the attribute.
@@ -282,6 +291,9 @@  discard block
 block discarded – undo
282 291
         return $attributes;
283 292
     }
284 293
     
294
+    /**
295
+     * @param string $attribute
296
+     */
285 297
     public function getAttribute($attribute, $scope = Element::SCOPE_ELEMENT)
286 298
     {
287 299
         $attributes = $this->getAttributes($scope);
@@ -299,6 +311,9 @@  discard block
 block discarded – undo
299 311
         return $this->renderLabel;
300 312
     }
301 313
     
314
+    /**
315
+     * @param boolean $renderLabel
316
+     */
302 317
     public function setRenderLabel($renderLabel)
303 318
     {
304 319
         $this->renderLabel = $renderLabel;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@
 block discarded – undo
31 31
 
32 32
 namespace ntentan\honam\helpers\form;
33 33
 
34
-use ntentan\honam\helpers\FormHelper;
35 34
 use ntentan\honam\TemplateEngine;
36 35
 
37 36
 /**
Please login to merge, or discard this patch.
src/engines/php/helpers/form/Field.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 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
     {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * Returns the required status of the field.
99 99
      *
100
-     * @return The required status of the field.
100
+     * @return boolean required status of the field.
101 101
      */
102 102
     public function getRequired()
103 103
     {
Please login to merge, or discard this patch.
src/engines/php/helpers/form/Form.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@
 block discarded – undo
76 76
         );
77 77
     }
78 78
     
79
+    /**
80
+     * @param boolean $showSubmit
81
+     */
79 82
     public function setShowSubmit($showSubmit)
80 83
     {
81 84
         $this->showSubmit = $showSubmit;
Please login to merge, or discard this patch.
src/engines/php/helpers/ImagesHelper.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,10 @@  discard block
 block discarded – undo
30 30
         return $image;
31 31
     }
32 32
     
33
+    /**
34
+     * @param resource $image
35
+     * @param string $path
36
+     */
33 37
     private function writeImage($image, $path)
34 38
     {
35 39
     	$array = explode(".", $path);
@@ -115,7 +119,6 @@  discard block
 block discarded – undo
115 119
     /**
116 120
      * A smart thumbnailing function. Generates thumbnail images without
117 121
      * distorting the output of the final image.
118
-     * @param string $file
119 122
      * @param string $width
120 123
      * @param string $height
121 124
      * @param string $head
Please login to merge, or discard this patch.
src/engines/php/helpers/ListingHelper.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace ntentan\honam\helpers;
4 4
 
5
-use ntentan\honam\TemplateEngine;
6 5
 use ntentan\honam\Helper;
6
+use ntentan\honam\TemplateEngine;
7 7
 
8 8
 class ListingHelper extends Helper
9 9
 {
Please login to merge, or discard this patch.