@@ -188,6 +188,9 @@ |
||
188 | 188 | 'Xmf\\Yaml' => __DIR__ . '/..' . '/xoops/xmf/src/Xmf/Yaml.php', |
189 | 189 | ); |
190 | 190 | |
191 | + /** |
|
192 | + * @return callable |
|
193 | + */ |
|
191 | 194 | public static function getInitializer(ClassLoader $loader) |
192 | 195 | { |
193 | 196 | return \Closure::bind(function () use ($loader) { |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @param array $trace [OPTIONAL] you can pass your own trace, otherwise, `debug_backtrace` will be called |
109 | 109 | * |
110 | - * @return mixed |
|
110 | + * @return string|null |
|
111 | 111 | */ |
112 | 112 | public static function trace( $trace = null ) |
113 | 113 | { |
@@ -305,6 +305,9 @@ discard block |
||
305 | 305 | return $shortenedName; |
306 | 306 | } |
307 | 307 | |
308 | + /** |
|
309 | + * @return string |
|
310 | + */ |
|
308 | 311 | public static function getIdeLink( $file, $line ) |
309 | 312 | { |
310 | 313 | return str_replace( array( '%f', '%l' ), array( $file, $line ), self::$fileLinkFormat ); |
@@ -317,7 +320,7 @@ discard block |
||
317 | 320 | * @param int $lineNumber the line to display |
318 | 321 | * @param int $padding surrounding lines to show besides the main one |
319 | 322 | * |
320 | - * @return bool|string |
|
323 | + * @return false|string |
|
321 | 324 | */ |
322 | 325 | private static function _showSource( $file, $lineNumber, $padding = 7 ) |
323 | 326 | { |
@@ -590,7 +593,7 @@ discard block |
||
590 | 593 | * |
591 | 594 | * @param $step |
592 | 595 | * |
593 | - * @return array |
|
596 | + * @return boolean |
|
594 | 597 | */ |
595 | 598 | private static function _stepIsInternal( $step ) |
596 | 599 | { |
@@ -723,7 +723,7 @@ |
||
723 | 723 | * xos_opal_Theme::renderMetas() |
724 | 724 | * |
725 | 725 | * @param mixed $type |
726 | - * @param mixed $return |
|
726 | + * @param boolean $return |
|
727 | 727 | * @return bool|string |
728 | 728 | */ |
729 | 729 | public function renderMetas($type = null, $return = false) |
@@ -73,7 +73,7 @@ |
||
73 | 73 | /** |
74 | 74 | * XoopsFormButtonTray::setValue() |
75 | 75 | * |
76 | - * @param mixed $value |
|
76 | + * @param string $value |
|
77 | 77 | * |
78 | 78 | * @return void |
79 | 79 | */ |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * @param HTMLPurifier_Config $config |
91 | - * @return bool |
|
91 | + * @return false|null |
|
92 | 92 | */ |
93 | 93 | public function flush($config) |
94 | 94 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | /** |
113 | 113 | * @param HTMLPurifier_Config $config |
114 | - * @return bool |
|
114 | + * @return false|null |
|
115 | 115 | */ |
116 | 116 | public function cleanup($config) |
117 | 117 | { |