@@ -71,7 +71,6 @@ discard block |
||
71 | 71 | * @param string $tag The filter hook to which the function to be removed is hooked. |
72 | 72 | * @param callback $functionToRemove The name of the function which should be removed. |
73 | 73 | * @param int $priority optional. The priority of the function (default: 10). |
74 | - * @param int $accepted_args optional. The number of arguments the function accepts (default: 1). |
|
75 | 74 | * |
76 | 75 | * @return bool Whether the function existed before it was removed. |
77 | 76 | */ |
@@ -160,7 +159,6 @@ discard block |
||
160 | 159 | * |
161 | 160 | * @param string $tag The name of the filter hook. |
162 | 161 | * @param mixed $value The value on which the filters hooked to <tt>$tag</tt> are applied on. |
163 | - * @param mixed $var,... Additional variables passed to the functions hooked to <tt>$tag</tt>. |
|
164 | 162 | * |
165 | 163 | * @return mixed The filtered value after all hooked functions are applied to it. |
166 | 164 | */ |
@@ -189,7 +189,7 @@ |
||
189 | 189 | // Sort |
190 | 190 | if (!isset(self::$mergedFilters[$tag])) { |
191 | 191 | ksort(self::$filters[$tag]); |
192 | - self::$mergedFilters[ $tag ] = true; |
|
192 | + self::$mergedFilters[$tag] = true; |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | reset(self::$filters[$tag]); |
@@ -60,6 +60,9 @@ |
||
60 | 60 | return $this->classes; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param integer $nesting |
|
65 | + */ |
|
63 | 66 | public function setNesting($nesting) |
64 | 67 | { |
65 | 68 | $this->nesting = $nesting; |
@@ -125,7 +125,6 @@ |
||
125 | 125 | /** |
126 | 126 | * Set page favicon. |
127 | 127 | * |
128 | - * @param string $href Favicon location |
|
129 | 128 | */ |
130 | 129 | public function setFavicon($favicon) |
131 | 130 | { |
@@ -242,6 +242,9 @@ discard block |
||
242 | 242 | return (isset($value) and !empty($value)) ? ' '.$atribute.'="'.trim($value).'"' : ''; |
243 | 243 | } |
244 | 244 | |
245 | + /** |
|
246 | + * @param string $selector |
|
247 | + */ |
|
245 | 248 | private function addContainerWithSelectorIf($inside, $selector) |
246 | 249 | { |
247 | 250 | if (empty($selector)) { |
@@ -251,6 +254,10 @@ discard block |
||
251 | 254 | return '<'.$selector.'>'.$inside.'</'.$selector.'>'; |
252 | 255 | } |
253 | 256 | |
257 | + /** |
|
258 | + * @param string $selector |
|
259 | + * @param string $classBase |
|
260 | + */ |
|
254 | 261 | private function addContainerWithIcoIf($ico, $selector, $classBase) |
255 | 262 | { |
256 | 263 | if (empty($ico) or empty($selector)) { |
@@ -280,7 +287,7 @@ discard block |
||
280 | 287 | * |
281 | 288 | * @author J. Bruni - original author |
282 | 289 | * |
283 | - * @return string|bool |
|
290 | + * @return false|string |
|
284 | 291 | */ |
285 | 292 | public function create() |
286 | 293 | { |
@@ -15,13 +15,6 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * Constructor. |
17 | 17 | * |
18 | - * @param array $nav with data for loop |
|
19 | - * <page> - current page |
|
20 | - * <forstart> - |
|
21 | - * <forend> - |
|
22 | - * <allpages> - all pages |
|
23 | - * <prev> - prev page |
|
24 | - * <next> - next page |
|
25 | 18 | * @param string $path path with a slash at the beginning and at the end without him, like: '/kg' |
26 | 19 | * @param array $classes Specifies a pagination appearance |
27 | 20 | * <ul> - main ul class |
@@ -46,6 +39,9 @@ discard block |
||
46 | 39 | return $this->info; |
47 | 40 | } |
48 | 41 | |
42 | + /** |
|
43 | + * @param string $path |
|
44 | + */ |
|
49 | 45 | public function setPath($path) |
50 | 46 | { |
51 | 47 | $this->path = $path; |
@@ -69,11 +65,17 @@ discard block |
||
69 | 65 | return $this->classes; |
70 | 66 | } |
71 | 67 | |
68 | + /** |
|
69 | + * @param integer $nesting |
|
70 | + */ |
|
72 | 71 | public function setNesting($nesting) |
73 | 72 | { |
74 | 73 | $this->nesting = $nesting; |
75 | 74 | } |
76 | 75 | |
76 | + /** |
|
77 | + * @return integer |
|
78 | + */ |
|
77 | 79 | public function getNesting() |
78 | 80 | { |
79 | 81 | return $this->nesting; |
@@ -63,7 +63,7 @@ |
||
63 | 63 | /** |
64 | 64 | * Try to serve image from cache. |
65 | 65 | * |
66 | - * @return bool |
|
66 | + * @return null|false |
|
67 | 67 | */ |
68 | 68 | private function tryServeCache() |
69 | 69 | { |
@@ -11,6 +11,9 @@ |
||
11 | 11 | file_put_contents(LOG_ROOT.'/'.$level.'.log', $this->format($message), FILE_APPEND | LOCK_EX); |
12 | 12 | } |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $message |
|
16 | + */ |
|
14 | 17 | private function format($message) |
15 | 18 | { |
16 | 19 | return sprintf("[%s] %s | %s\n", |
@@ -6,6 +6,10 @@ |
||
6 | 6 | |
7 | 7 | class DomPlugins |
8 | 8 | { |
9 | + /** |
|
10 | + * @param \Rudolf\Component\Html\Head $head |
|
11 | + * @param \Rudolf\Component\Html\Foot $foot |
|
12 | + */ |
|
9 | 13 | public function __construct($head, $foot) |
10 | 14 | { |
11 | 15 | $this->head = $head; |
@@ -9,6 +9,9 @@ |
||
9 | 9 | */ |
10 | 10 | private $plugins; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $path |
|
14 | + */ |
|
12 | 15 | public function __construct(array $plugins, $path) |
13 | 16 | { |
14 | 17 | $this->plugins = $plugins; |