Completed
Push — dev ( 72cd7e...c5a23f )
by James Ekow Abaka
05:21
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/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
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.
Doc Comments   +21 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,6 +133,9 @@  discard block
 block discarded – undo
133 133
         $this->setId($id);
134 134
     }
135 135
     
136
+    /**
137
+     * @param string $id
138
+     */
136 139
     public function setId($id)
137 140
     {
138 141
         $this->id = str_replace(".","_",$id);
@@ -148,7 +151,7 @@  discard block
 block discarded – undo
148 151
     /**
149 152
      * Public accessor for setting the name property of the field.
150 153
      *
151
-     * @param  $name The name to assign to the form element.
154
+     * @param  string $name The name to assign to the form element.
152 155
      */
153 156
     public function setName($name)
154 157
     {
@@ -159,7 +162,7 @@  discard block
 block discarded – undo
159 162
     /**
160 163
      * Public accessor for getting the name property of the field.
161 164
      *
162
-     * @return The name of the form field.
165
+     * @return string name of the form field.
163 166
      */
164 167
     public function getName()
165 168
     {
@@ -167,6 +170,10 @@  discard block
 block discarded – undo
167 170
     }
168 171
 
169 172
     //! Sets the label which is attached to this element.
173
+
174
+    /**
175
+     * @param string $label
176
+     */
170 177
     public function setLabel($label)
171 178
     {
172 179
         $this->label = $label;
@@ -194,7 +201,8 @@  discard block
 block discarded – undo
194 201
      * Sets the description which is attached to this element. The description
195 202
      * is normally displayed under the element when rendering HTML.
196 203
      *
197
-     * @return string
204
+     * @param string $description
205
+     * @return Element
198 206
      */
199 207
     public function setDescription($description)
200 208
     {
@@ -253,6 +261,10 @@  discard block
 block discarded – undo
253 261
     //! This method internally creates a new Attribute object and appends
254 262
     //! it to the list of attributes.
255 263
     //! \see Attribute
264
+
265
+    /**
266
+     * @param string $attribute
267
+     */
256 268
     public function setAttribute($attribute,$value,$scope = Element::SCOPE_ELEMENT)
257 269
     {
258 270
         // Force the setting of the attribute.
@@ -282,6 +294,9 @@  discard block
 block discarded – undo
282 294
         return $attributes;
283 295
     }
284 296
     
297
+    /**
298
+     * @param string $attribute
299
+     */
285 300
     public function getAttribute($attribute, $scope = Element::SCOPE_ELEMENT)
286 301
     {
287 302
         $attributes = $this->getAttributes($scope);
@@ -299,6 +314,9 @@  discard block
 block discarded – undo
299 314
         return $this->renderLabel;
300 315
     }
301 316
     
317
+    /**
318
+     * @param boolean $renderLabel
319
+     */
302 320
     public function setRenderLabel($renderLabel)
303 321
     {
304 322
         $this->renderLabel = $renderLabel;
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/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/PhpEngine.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 
29 29
 use ntentan\honam\engines\php\HelpersLoader;
30 30
 use ntentan\honam\engines\php\Janitor;
31
-use ntentan\honam\TemplateEngine;
32 31
 use ntentan\honam\engines\php\Variable;
33 32
 
34 33
 /**
Please login to merge, or discard this patch.
src/factories/MustacheEngineFactory.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace ntentan\honam\factories;
4 4
 
5 5
 use ntentan\honam\template_engines\AbstractEngine;
6
+use ntentan\honam\template_engines\MustacheEngine;
6 7
 use ntentan\honam\template_engines\mustache\MustacheLoader;
7 8
 use ntentan\honam\template_engines\mustache\MustachePartialsLoader;
8
-use ntentan\honam\template_engines\MustacheEngine;
9 9
 
10 10
 
11 11
 class MustacheEngineFactory implements EngineFactoryInterface
Please login to merge, or discard this patch.
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.