@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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 " : '') . |
@@ -98,6 +98,9 @@ |
||
| 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) |
@@ -148,7 +148,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -31,8 +31,8 @@ |
||
| 31 | 31 | |
| 32 | 32 | namespace ntentan\honam\helpers\form; |
| 33 | 33 | |
| 34 | -use ntentan\honam\helpers\FormHelper; |
|
| 35 | 34 | use ntentan\honam\TemplateEngine; |
| 35 | +use ntentan\honam\helpers\FormHelper; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * The form element class. An element can be anything from the form |
@@ -76,7 +76,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -30,6 +30,10 @@ discard block |
||
| 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 |
||
| 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 |
@@ -5,6 +5,9 @@ |
||
| 5 | 5 | { |
| 6 | 6 | public abstract function performMinification($script); |
| 7 | 7 | |
| 8 | + /** |
|
| 9 | + * @param string $script |
|
| 10 | + */ |
|
| 8 | 11 | public static function minify($script, $minifier) |
| 9 | 12 | { |
| 10 | 13 | return self::getMinifier($minifier)->performMinification($script); |
@@ -14,6 +14,10 @@ |
||
| 14 | 14 | |
| 15 | 15 | protected abstract function getExtension(); |
| 16 | 16 | protected abstract function getMinifier(); |
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * @param string $url |
|
| 20 | + */ |
|
| 17 | 21 | protected abstract function getTag($url); |
| 18 | 22 | |
| 19 | 23 | private function makePublic($file) |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace ntentan\honam\helpers; |
| 3 | 3 | |
| 4 | -use ntentan\honam\Helper; |
|
| 5 | 4 | use ntentan\honam\AssetsLoader; |
| 5 | +use ntentan\honam\Helper; |
|
| 6 | 6 | use ntentan\honam\helpers\minifiables\Minifier; |
| 7 | 7 | |
| 8 | 8 | abstract class MinifiablesHelper extends Helper |
@@ -157,6 +157,11 @@ discard block |
||
| 157 | 157 | return $this->helpersLoader; |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | + /** |
|
| 161 | + * @param string $testTemplate |
|
| 162 | + * @param string[] $paths |
|
| 163 | + * @param string $extension |
|
| 164 | + */ |
|
| 160 | 165 | private static function testTemplateFile($testTemplate, $paths, $extension) |
| 161 | 166 | { |
| 162 | 167 | $templateFile = ''; |
@@ -172,6 +177,10 @@ discard block |
||
| 172 | 177 | return $templateFile; |
| 173 | 178 | } |
| 174 | 179 | |
| 180 | + /** |
|
| 181 | + * @param string $testTemplate |
|
| 182 | + * @param string[] $paths |
|
| 183 | + */ |
|
| 175 | 184 | private static function testNoEngineTemplateFile($testTemplate, $paths) |
| 176 | 185 | { |
| 177 | 186 | $templateFile = ''; |
@@ -193,6 +202,9 @@ discard block |
||
| 193 | 202 | return $templateFile; |
| 194 | 203 | } |
| 195 | 204 | |
| 205 | + /** |
|
| 206 | + * @param string $template |
|
| 207 | + */ |
|
| 196 | 208 | private static function searchTemplateDirectory($template, $ignoreEngine = false) |
| 197 | 209 | { |
| 198 | 210 | $templateFile = ''; |