@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | /** |
| 110 | 110 | * Connect to Paypal. |
| 111 | 111 | * |
| 112 | - * @return mixed (boolean | string) Message from the transaction status on success or FALSE on failure. |
|
| 112 | + * @return string (boolean | string) Message from the transaction status on success or FALSE on failure. |
|
| 113 | 113 | */ |
| 114 | 114 | protected function getStatus() |
| 115 | 115 | { |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * Set the data parameters POST from PayPal system. |
| 132 | 132 | * |
| 133 | - * @return object this |
|
| 133 | + * @return Paypal this |
|
| 134 | 134 | */ |
| 135 | 135 | protected function setParams() |
| 136 | 136 | { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | * |
| 146 | 146 | * @param string $sName |
| 147 | 147 | * @param string $sValue |
| 148 | - * @return object this |
|
| 148 | + * @return Paypal this |
|
| 149 | 149 | */ |
| 150 | 150 | protected function setUrlData($sName, $sValue) |
| 151 | 151 | { |
@@ -12,7 +12,8 @@ |
||
| 12 | 12 | namespace PH7\Framework\Payment\Gateway\Api; |
| 13 | 13 | defined('PH7') or exit('Restricted access'); |
| 14 | 14 | |
| 15 | -use PH7\Framework\File\Stream, PH7\Framework\Url\Url; |
|
| 15 | +use PH7\Framework\File\Stream; |
|
| 16 | +use PH7\Framework\Url\Url; |
|
| 16 | 17 | |
| 17 | 18 | /** |
| 18 | 19 | * PayPal class using PayPal's API |
@@ -585,7 +585,7 @@ |
||
| 585 | 585 | * things like j a v a s c r i p t |
| 586 | 586 | * |
| 587 | 587 | * @param type |
| 588 | - * @return type |
|
| 588 | + * @return string |
|
| 589 | 589 | */ |
| 590 | 590 | protected function _compact_exploded_words($matches) |
| 591 | 591 | { |
@@ -31,7 +31,6 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Emit a signal. |
| 33 | 33 | * |
| 34 | - * @param mixed $mVar [, string $... ] |
|
| 35 | 34 | * @return string |
| 36 | 35 | */ |
| 37 | 36 | public static function emit() |
@@ -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 | /* |
@@ -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. |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Set the default language name. |
| 49 | 49 | * |
| 50 | 50 | * @param string $sNewDefLang Prefix of the language. |
| 51 | - * @return object $this |
|
| 51 | + * @return Lang $this |
|
| 52 | 52 | */ |
| 53 | 53 | public function setDefaultLang($sNewDefLang) |
| 54 | 54 | { |
@@ -60,8 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Set the user language name. |
| 62 | 62 | * |
| 63 | - * @param string $sNewDefaultLang Prefix of the language. |
|
| 64 | - * @return object $this |
|
| 63 | + * @return Lang $this |
|
| 65 | 64 | */ |
| 66 | 65 | public function setUserLang($sNewUserLang) |
| 67 | 66 | { |
@@ -120,7 +119,7 @@ discard block |
||
| 120 | 119 | * |
| 121 | 120 | * @param string $sFileName The language filename (e.g., "global"). |
| 122 | 121 | * @param string $sPath If you want to change the default path (the path to the current module), you can specify the path. Default NULL |
| 123 | - * @return object $this |
|
| 122 | + * @return Lang $this |
|
| 124 | 123 | */ |
| 125 | 124 | public function load($sFileName, $sPath = null) |
| 126 | 125 | { |
@@ -134,7 +133,7 @@ discard block |
||
| 134 | 133 | /** |
| 135 | 134 | * Loading language files. |
| 136 | 135 | * |
| 137 | - * @return object $this |
|
| 136 | + * @return Lang $this |
|
| 138 | 137 | * @throws \PH7\Framework\Translate\Exception If the language file is not found. |
| 139 | 138 | */ |
| 140 | 139 | public function init() |
@@ -202,7 +201,6 @@ discard block |
||
| 202 | 201 | /** |
| 203 | 202 | * Language helper function. |
| 204 | 203 | * |
| 205 | - * @param string $sVar [, string $... ] |
|
| 206 | 204 | * @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). |
| 207 | 205 | */ |
| 208 | 206 | function t() |
@@ -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 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 | { |
@@ -113,6 +113,7 @@ discard block |
||
| 113 | 113 | * Convert video file and the extension video type. |
| 114 | 114 | * |
| 115 | 115 | * @param string $sFile. |
| 116 | + * @param string $sFile |
|
| 116 | 117 | * @return string The new name that you entered in the parameter of this method. |
| 117 | 118 | */ |
| 118 | 119 | public function rename($sFile) |
@@ -135,6 +136,10 @@ discard block |
||
| 135 | 136 | * @param integer $iHeight |
| 136 | 137 | * @return string The thumbnail file that you entered in the parameter of this method. |
| 137 | 138 | */ |
| 139 | + |
|
| 140 | + /** |
|
| 141 | + * @param integer $iSeconds |
|
| 142 | + */ |
|
| 138 | 143 | public function thumbnail($sPicturePath, $iSeconds, $iWidth, $iHeight) |
| 139 | 144 | { |
| 140 | 145 | exec($this->sFfmpegPath . ' -itsoffset -' . $iSeconds . ' -i ' . $this->aFile['tmp_name'] . ' -vcodec mjpeg -vframes 1 -an -f rawvideo -s ' . $iWidth . 'x' . $iHeight . ' ' . $sPicturePath); |
@@ -14,10 +14,9 @@ |
||
| 14 | 14 | namespace PH7\Framework\Video; |
| 15 | 15 | defined('PH7') or exit('Restricted access'); |
| 16 | 16 | |
| 17 | -use |
|
| 18 | -PH7\Framework\Date\Various, |
|
| 19 | -PH7\Framework\Config\Config, |
|
| 20 | -PH7\Framework\File as F; |
|
| 17 | +use PH7\Framework\Date\Various; |
|
| 18 | +use PH7\Framework\Config\Config; |
|
| 19 | +use PH7\Framework\File as F; |
|
| 21 | 20 | |
| 22 | 21 | class Video extends F\Upload |
| 23 | 22 | { |