Completed
Push — master ( 5c707d...a3857c )
by James Ekow Abaka
11s
created
src/helpers/DateHelper.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * parsed.
63 63
      * 
64 64
      * @param string $time
65
-     * @return DatesHelper
65
+     * @return DateHelper
66 66
      */
67 67
     public function help($time)
68 68
     {
@@ -229,6 +229,10 @@  discard block
 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/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/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/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/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/TemplateEngine.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -144,6 +144,11 @@  discard block
 block discarded – undo
144 144
         return $this->helpersLoader;
145 145
     }
146 146
 
147
+    /**
148
+     * @param string $testTemplate
149
+     * @param string[] $paths
150
+     * @param string $extension
151
+     */
147 152
     private static function testTemplateFile($testTemplate, $paths, $extension) {
148 153
         $templateFile = '';
149 154
         foreach ($paths as $path) {
@@ -156,6 +161,10 @@  discard block
 block discarded – undo
156 161
         return $templateFile;
157 162
     }
158 163
 
164
+    /**
165
+     * @param string $testTemplate
166
+     * @param string[] $paths
167
+     */
159 168
     private static function testNoEngineTemplateFile($testTemplate, $paths) {
160 169
         $templateFile = '';
161 170
         foreach ($paths as $path) {
@@ -172,6 +181,9 @@  discard block
 block discarded – undo
172 181
         return $templateFile;
173 182
     }
174 183
 
184
+    /**
185
+     * @param string $template
186
+     */
175 187
     private static function searchTemplateDirectory($template, $ignoreEngine = false) {
176 188
         $templateFile = '';
177 189
         $paths = self::getPath();
Please login to merge, or discard this patch.
src/template_engines/php/functions.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,4 @@
 block discarded – undo
1 1
 <?php
2
-use ntentan\honam\AssetsLoader;
3 2
 use ntentan\honam\TemplateEngine;
4 3
 
5 4
 function t($template, $templateData = array())
Please login to merge, or discard this patch.