@@ -4,11 +4,8 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | defined('PH7') or exit('Restricted access'); |
| 6 | 6 | |
| 7 | -use |
|
| 8 | -PH7\Framework\Translate\Adapter\Gettext\StreamReader, |
|
| 9 | -PH7\Framework\Translate\Adapter\Gettext\StringReader, |
|
| 10 | -PH7\Framework\Translate\Adapter\Gettext\FileReader, |
|
| 11 | -PH7\Framework\Translate\Adapter\Gettext\CachedFileReader; |
|
| 7 | +use PH7\Framework\Translate\Adapter\Gettext\StreamReader; |
|
| 8 | +use PH7\Framework\Translate\Adapter\Gettext\FileReader; |
|
| 12 | 9 | |
| 13 | 10 | |
| 14 | 11 | /* |
@@ -77,6 +77,9 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | + /** |
|
| 81 | + * @param integer $bytes |
|
| 82 | + */ |
|
| 80 | 83 | function read($bytes) { |
| 81 | 84 | return $this->STREAM->read($bytes); |
| 82 | 85 | } |
@@ -85,6 +88,7 @@ discard block |
||
| 85 | 88 | * Reads an array of Integers from the Stream |
| 86 | 89 | * |
| 87 | 90 | * @param int count How many elements should be read |
| 91 | + * @param integer $count |
|
| 88 | 92 | * @return Array of Integers |
| 89 | 93 | */ |
| 90 | 94 | function readintarray($count) { |
@@ -102,6 +106,7 @@ discard block |
||
| 102 | 106 | * |
| 103 | 107 | * @param object Reader the StreamReader object |
| 104 | 108 | * @param boolean enable_cache Enable or disable caching of strings (default on) |
| 109 | + * @param FileReader|null $Reader |
|
| 105 | 110 | */ |
| 106 | 111 | function gettext_reader($Reader, $enable_cache = true) { |
| 107 | 112 | // If there isn't a StreamReader, turn on short circuit mode. |
@@ -176,6 +181,7 @@ discard block |
||
| 176 | 181 | * |
| 177 | 182 | * @access private |
| 178 | 183 | * @param int num Offset number of original string |
| 184 | + * @param integer $num |
|
| 179 | 185 | * @return string Requested string if found, otherwise '' |
| 180 | 186 | */ |
| 181 | 187 | function get_original_string($num) { |
@@ -193,6 +199,7 @@ discard block |
||
| 193 | 199 | * |
| 194 | 200 | * @access private |
| 195 | 201 | * @param int num Offset number of original string |
| 202 | + * @param integer $num |
|
| 196 | 203 | * @return string Requested string if found, otherwise '' |
| 197 | 204 | */ |
| 198 | 205 | function get_translation_string($num) { |
@@ -278,6 +285,7 @@ discard block |
||
| 278 | 285 | * Sanitize plural form expression for use in PHP eval call. |
| 279 | 286 | * |
| 280 | 287 | * @access private |
| 288 | + * @param string $expr |
|
| 281 | 289 | * @return string sanitized plural form expression |
| 282 | 290 | */ |
| 283 | 291 | function sanitize_plural_expression($expr) { |
@@ -375,7 +383,8 @@ discard block |
||
| 375 | 383 | * @param string single |
| 376 | 384 | * @param string plural |
| 377 | 385 | * @param string number |
| 378 | - * @return translated plural form |
|
| 386 | + * @param string $single |
|
| 387 | + * @return string plural form |
|
| 379 | 388 | */ |
| 380 | 389 | function ngettext($single, $plural, $number) { |
| 381 | 390 | if ($this->short_circuit) { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * Set the default language name. |
| 53 | 53 | * |
| 54 | 54 | * @param string $sNewDefLang Prefix of the language. |
| 55 | - * @return object $this |
|
| 55 | + * @return Lang $this |
|
| 56 | 56 | */ |
| 57 | 57 | public function setDefaultLang($sNewDefLang) |
| 58 | 58 | { |
@@ -64,8 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * Set the user language name. |
| 66 | 66 | * |
| 67 | - * @param string $sNewDefaultLang Prefix of the language. |
|
| 68 | - * @return object $this |
|
| 67 | + * @return Lang $this |
|
| 69 | 68 | */ |
| 70 | 69 | public function setUserLang($sNewUserLang) |
| 71 | 70 | { |
@@ -100,7 +99,7 @@ discard block |
||
| 100 | 99 | * @static |
| 101 | 100 | * @param string $sPath The path. |
| 102 | 101 | * @param string $sFileName The language name. Default is the constant: 'PH7_LANG_CODE' |
| 103 | - * @return Valid file name (with the extension). |
|
| 102 | + * @return string file name (with the extension). |
|
| 104 | 103 | * @throws \PH7\Framework\Translate\Exception If the language file is not found. |
| 105 | 104 | */ |
| 106 | 105 | public static function getJsFile($sPath, $sFileName = PH7_LANG_CODE) |
@@ -188,7 +187,6 @@ discard block |
||
| 188 | 187 | /** |
| 189 | 188 | * Language helper function. |
| 190 | 189 | * |
| 191 | - * @param string $sVar [, string $... ] |
|
| 192 | 190 | * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table). |
| 193 | 191 | */ |
| 194 | 192 | function t() |
@@ -14,7 +14,8 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | defined('PH7') or exit('Restricted access'); |
| 16 | 16 | |
| 17 | - use PH7\Framework\Config\Config, PH7\Framework\Cookie\Cookie; |
|
| 17 | + use PH7\Framework\Config\Config; |
|
| 18 | + use PH7\Framework\Cookie\Cookie; |
|
| 18 | 19 | |
| 19 | 20 | class Lang |
| 20 | 21 | { |
@@ -177,7 +178,8 @@ discard block |
||
| 177 | 178 | namespace |
| 178 | 179 | { |
| 179 | 180 | |
| 180 | - use PH7\Framework\Registry\Registry, PH7\Framework\Parse\SysVar; |
|
| 181 | + use PH7\Framework\Registry\Registry; |
|
| 182 | + use PH7\Framework\Parse\SysVar; |
|
| 181 | 183 | |
| 182 | 184 | /** |
| 183 | 185 | * Check if GetText PHP extension exists, if not, it'll includes the GetText library. |
@@ -13,9 +13,8 @@ |
||
| 13 | 13 | namespace PH7\Framework\Url; |
| 14 | 14 | defined('PH7') or exit('Restricted access'); |
| 15 | 15 | |
| 16 | -use |
|
| 17 | -PH7\Framework\Http\Http, |
|
| 18 | -PH7\Framework\Mvc\Request\Http as HttpRequest; |
|
| 16 | +use PH7\Framework\Http\Http; |
|
| 17 | +use PH7\Framework\Mvc\Request\Http as HttpRequest; |
|
| 19 | 18 | |
| 20 | 19 | class Header |
| 21 | 20 | { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @param string $sUrl |
| 31 | - * @return object Class |
|
| 31 | + * @return false|string Class |
|
| 32 | 32 | */ |
| 33 | 33 | public function getVideo($sUrl) |
| 34 | 34 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * @param string $sMedia (preview or movie) |
| 101 | 101 | * @param integer $iWidth |
| 102 | 102 | * @param integer $iHeight |
| 103 | - * @return object Class |
|
| 103 | + * @return string Class |
|
| 104 | 104 | * @throws \PH7\Framework\Error\CException\PH7InvalidArgumentException If the Video Api is invalid. |
| 105 | 105 | */ |
| 106 | 106 | public function getMeta($sUrl, $sMedia, $iWidth, $iHeight) |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * @param string $sUrl |
| 68 | - * @return mixed (string | boolean) The embed URL if id is valid, false otherwise. |
|
| 68 | + * @return false|string (string | boolean) The embed URL if id is valid, false otherwise. |
|
| 69 | 69 | */ |
| 70 | 70 | public function getEmbedUrl($sUrl) |
| 71 | 71 | { |
@@ -13,10 +13,9 @@ |
||
| 13 | 13 | namespace PH7\Framework\Video\Api; |
| 14 | 14 | defined('PH7') or exit('Restricted access'); |
| 15 | 15 | |
| 16 | -use |
|
| 17 | -PH7\Framework\File\File, |
|
| 18 | -PH7\Framework\Str\Str, |
|
| 19 | -PH7\Framework\Mvc\Model\DbConfig; |
|
| 16 | +use PH7\Framework\File\File; |
|
| 17 | +use PH7\Framework\Str\Str; |
|
| 18 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 20 | 19 | |
| 21 | 20 | abstract class Api |
| 22 | 21 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @param string $sUrl |
| 25 | - * @return mixed (string | boolean) Returns the video embed URL if it was found, FALSE otherwise. |
|
| 25 | + * @return false|string (string | boolean) Returns the video embed URL if it was found, FALSE otherwise. |
|
| 26 | 26 | */ |
| 27 | 27 | public function getVideo($sUrl) |
| 28 | 28 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * @param string $sUrl |
| 58 | - * @return mixed (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise. |
|
| 58 | + * @return string|false (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise. |
|
| 59 | 59 | */ |
| 60 | 60 | public function getVideoId($sUrl) |
| 61 | 61 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @param string $sUrl |
| 25 | - * @return mixed (string | boolean) Returns the video embed URL if it was found, FALSE otherwise. |
|
| 25 | + * @return false|string (string | boolean) Returns the video embed URL if it was found, FALSE otherwise. |
|
| 26 | 26 | */ |
| 27 | 27 | public function getVideo($sUrl) |
| 28 | 28 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * @param string $sUrl |
| 101 | - * @return mixed (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise. |
|
| 101 | + * @return string|false (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise. |
|
| 102 | 102 | */ |
| 103 | 103 | public function getVideoId($sUrl) |
| 104 | 104 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @param string $sUrl |
| 25 | - * @return mixed (string | boolean) Returns the video embed URL if it was found and is valid, FALSE otherwise. |
|
| 25 | + * @return false|string (string | boolean) Returns the video embed URL if it was found and is valid, FALSE otherwise. |
|
| 26 | 26 | */ |
| 27 | 27 | public function getVideo($sUrl) |
| 28 | 28 | { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * @param string $sUrl |
| 67 | - * @return mixed (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise. |
|
| 67 | + * @return string|false (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise. |
|
| 68 | 68 | */ |
| 69 | 69 | public function getVideoId($sUrl) |
| 70 | 70 | { |