@@ -88,6 +88,9 @@ |
||
88 | 88 | return $sText; |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @return string |
|
93 | + */ |
|
91 | 94 | public function clearDiacritics($sText) |
92 | 95 | { |
93 | 96 | $aReplacePL = array( |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * Returns total number of galleries items. |
11 | 11 | * |
12 | - * @param array|string $where |
|
12 | + * @param string $where |
|
13 | 13 | * |
14 | 14 | * @return int |
15 | 15 | */ |
@@ -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]); |
@@ -159,7 +159,6 @@ discard block |
||
159 | 159 | * |
160 | 160 | * @param string $tag The name of the filter hook. |
161 | 161 | * @param mixed $value The value on which the filters hooked to <tt>$tag</tt> are applied on. |
162 | - * @param mixed $var,... Additional variables passed to the functions hooked to <tt>$tag</tt>. |
|
163 | 162 | * |
164 | 163 | * @return mixed The filtered value after all hooked functions are applied to it. |
165 | 164 | */ |
@@ -313,7 +312,7 @@ discard block |
||
313 | 312 | * @param int|bool $priority Used in counting how many hooks were applied. If === false and |
314 | 313 | * $function is an object reference, we return the unique id only if it already has one, false otherwise. |
315 | 314 | * |
316 | - * @return string|bool Unique ID for usage as array key or false if $priority === false and |
|
315 | + * @return string|false Unique ID for usage as array key or false if $priority === false and |
|
317 | 316 | * $function is an object reference, and it does not already have a unique id. |
318 | 317 | */ |
319 | 318 | private static function buildUniqueID($tag, $function, $priority) |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $this->data = array_merge($mergeWith, $this->data); |
65 | 65 | } |
66 | 66 | |
67 | - return array_map(function ($a) { |
|
67 | + return array_map(function($a) { |
|
68 | 68 | return htmlspecialchars(trim($a)); |
69 | 69 | }, $this->data); |
70 | 70 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'published' => '', |
27 | 27 | ], $this->data); |
28 | 28 | |
29 | - $data = array_map(function ($a) { |
|
29 | + $data = array_map(function($a) { |
|
30 | 30 | return trim($a); |
31 | 31 | }, $data); |
32 | 32 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'published' => '', |
27 | 27 | ], $this->data); |
28 | 28 | |
29 | - $data = array_map(function ($a) { |
|
29 | + $data = array_map(function($a) { |
|
30 | 30 | return trim($a); |
31 | 31 | }, $data); |
32 | 32 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | 'thumb_height' => '', |
19 | 19 | ], $this->data); |
20 | 20 | |
21 | - $data = array_map(function ($a) { |
|
21 | + $data = array_map(function($a) { |
|
22 | 22 | return trim($a); |
23 | 23 | }, $data); |
24 | 24 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | 'type' => $this->type, |
24 | 24 | ], $this->data); |
25 | 25 | |
26 | - $data = array_map(function ($a) { |
|
26 | + $data = array_map(function($a) { |
|
27 | 27 | return trim($a); |
28 | 28 | }, $data); |
29 | 29 |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Rudolf\Component\Hooks\Filter; |
4 | 4 | |
5 | -Filter::add('head_after', function ($after) { |
|
5 | +Filter::add('head_after', function($after) { |
|
6 | 6 | $after[] = '<link href="'.DIR.'/rss/" rel="alternate" type="application/rss+xml" title="Kanał z artykułami">'; |
7 | 7 | |
8 | 8 | return $after; |