@@ -55,6 +55,10 @@ discard block |
||
55 | 55 | } |
56 | 56 | return ["year" => $year, "month"=>$month]; |
57 | 57 | } |
58 | + |
|
59 | + /** |
|
60 | + * @param CWeek|null $week |
|
61 | + */ |
|
58 | 62 | public function addWeek($week) |
59 | 63 | { |
60 | 64 | $this->weeks[] = $week; |
@@ -135,6 +139,9 @@ discard block |
||
135 | 139 | } |
136 | 140 | |
137 | 141 | |
142 | + /** |
|
143 | + * @param string $firstDayOfMonth |
|
144 | + */ |
|
138 | 145 | private function getAmountOfEmptyDays($firstDayOfMonth){ |
139 | 146 | $number = 0; |
140 | 147 | if($firstDayOfMonth == 0){ |
@@ -64,8 +64,6 @@ |
||
64 | 64 | /** |
65 | 65 | * Execute the query built. |
66 | 66 | * |
67 | - * @param string $query custom query. |
|
68 | - * |
|
69 | 67 | * @return $this |
70 | 68 | */ |
71 | 69 | public function execute($params = []) |
@@ -73,6 +73,10 @@ |
||
73 | 73 | |
74 | 74 | return $eventsPerDayForMonth; |
75 | 75 | } |
76 | + |
|
77 | + /** |
|
78 | + * @param string $date |
|
79 | + */ |
|
76 | 80 | public function getEventCount($date){ |
77 | 81 | $this->db->select() |
78 | 82 | ->from($this->getSource()) |
@@ -59,6 +59,9 @@ |
||
59 | 59 | ), |
60 | 60 | ); |
61 | 61 | |
62 | + /** |
|
63 | + * @return callable |
|
64 | + */ |
|
62 | 65 | public static function getInitializer(ClassLoader $loader) |
63 | 66 | { |
64 | 67 | return \Closure::bind(function () use ($loader) { |
@@ -341,6 +341,10 @@ |
||
341 | 341 | return $file; |
342 | 342 | } |
343 | 343 | |
344 | + /** |
|
345 | + * @param string $class |
|
346 | + * @param string $ext |
|
347 | + */ |
|
344 | 348 | private function findFileWithExtension($class, $ext) |
345 | 349 | { |
346 | 350 | // PSR-4 lookup |
@@ -9,6 +9,11 @@ discard block |
||
9 | 9 | */ |
10 | 10 | class HTMLPurifier_Arborize |
11 | 11 | { |
12 | + /** |
|
13 | + * @param HTMLPurifier_Token[] $tokens |
|
14 | + * @param HTMLPurifier_Config $config |
|
15 | + * @param HTMLPurifier_Context $context |
|
16 | + */ |
|
12 | 17 | public static function arborize($tokens, $config, $context) { |
13 | 18 | $definition = $config->getHTMLDefinition(); |
14 | 19 | $parent = new HTMLPurifier_Token_Start($definition->info_parent); |
@@ -36,6 +41,10 @@ discard block |
||
36 | 41 | return $stack[0]; |
37 | 42 | } |
38 | 43 | |
44 | + /** |
|
45 | + * @param HTMLPurifier_Config $config |
|
46 | + * @param HTMLPurifier_Context $context |
|
47 | + */ |
|
39 | 48 | public static function flatten($node, $config, $context) { |
40 | 49 | $level = 0; |
41 | 50 | $nodes = array($level => new HTMLPurifier_Queue(array($node))); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * @param string $number |
25 | 25 | * @param HTMLPurifier_Config $config |
26 | 26 | * @param HTMLPurifier_Context $context |
27 | - * @return string|bool |
|
27 | + * @return false|string |
|
28 | 28 | * @warning Some contexts do not pass $config, $context. These |
29 | 29 | * variables should not be used without checking HTMLPurifier_Length |
30 | 30 | */ |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * @param string $string |
29 | 29 | * @param HTMLPurifier_Config $config |
30 | 30 | * @param HTMLPurifier_Context $context |
31 | - * @return bool|string |
|
31 | + * @return boolean |
|
32 | 32 | */ |
33 | 33 | public function validate($string, $config, $context) |
34 | 34 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * @param string $string |
25 | 25 | * @param HTMLPurifier_Config $config |
26 | 26 | * @param HTMLPurifier_Context $context |
27 | - * @return bool|string |
|
27 | + * @return string|false |
|
28 | 28 | */ |
29 | 29 | public function validate($string, $config, $context) |
30 | 30 | { |