@@ -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) |
@@ -62,7 +62,7 @@ |
||
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) |
@@ -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 |
@@ -3,9 +3,9 @@ |
||
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 |
@@ -33,6 +33,11 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 = ''; |
@@ -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 " : '') . |
@@ -33,7 +33,6 @@ |
||
33 | 33 | namespace ntentan\honam\engines\php\helpers; |
34 | 34 | |
35 | 35 | use ntentan\honam\engines\php\Helper; |
36 | - |
|
37 | 36 | use ntentan\utils\Text; |
38 | 37 | use \ReflectionMethod; |
39 | 38 | use \ReflectionClass; |
@@ -34,7 +34,6 @@ |
||
34 | 34 | namespace ntentan\honam\engines\php\helpers; |
35 | 35 | |
36 | 36 | use ntentan\honam\engines\php\Helper; |
37 | - |
|
38 | 37 | use ntentan\utils\Input; |
39 | 38 | |
40 | 39 | /** |