@@ -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() |
@@ -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 | { |
@@ -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); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @access public |
| 61 | 61 | * @param array $aItems |
| 62 | - * @return object this |
|
| 62 | + * @return Rss this |
|
| 63 | 63 | */ |
| 64 | 64 | public function addItem($aItems) |
| 65 | 65 | { |
@@ -27,6 +27,10 @@ discard block |
||
| 27 | 27 | private $privateKey; |
| 28 | 28 | |
| 29 | 29 | // Creates a new signer from a .p12 file. |
| 30 | + |
|
| 31 | + /** |
|
| 32 | + * @param string $password |
|
| 33 | + */ |
|
| 30 | 34 | function __construct($p12, $password) { |
| 31 | 35 | if (!function_exists('openssl_x509_read')) { |
| 32 | 36 | throw new Exception( |
@@ -57,6 +61,9 @@ discard block |
||
| 57 | 61 | } |
| 58 | 62 | } |
| 59 | 63 | |
| 64 | + /** |
|
| 65 | + * @param string $data |
|
| 66 | + */ |
|
| 60 | 67 | function sign($data) { |
| 61 | 68 | if(version_compare(PHP_VERSION, '5.3.0') < 0) { |
| 62 | 69 | throw new Google_AuthException( |
@@ -51,8 +51,8 @@ |
||
| 51 | 51 | * Verifies the signature on data. |
| 52 | 52 | * |
| 53 | 53 | * Returns true if the signature is valid, false otherwise. |
| 54 | - * @param $data |
|
| 55 | - * @param $signature |
|
| 54 | + * @param string $data |
|
| 55 | + * @param string $signature |
|
| 56 | 56 | * @throws Google_AuthException |
| 57 | 57 | * @return bool |
| 58 | 58 | */ |
@@ -37,6 +37,9 @@ discard block |
||
| 37 | 37 | return file_exists($storageFile . '.lock'); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $storageFile |
|
| 42 | + */ |
|
| 40 | 43 | private function createLock($storageFile) { |
| 41 | 44 | $storageDir = dirname($storageFile); |
| 42 | 45 | if (! is_dir($storageDir)) { |
@@ -57,6 +60,9 @@ discard block |
||
| 57 | 60 | @unlink($storageFile . '.lock'); |
| 58 | 61 | } |
| 59 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $storageFile |
|
| 65 | + */ |
|
| 60 | 66 | private function waitForLock($storageFile) { |
| 61 | 67 | // 20 x 250 = 5 seconds |
| 62 | 68 | $tries = 20; |
@@ -81,6 +87,9 @@ discard block |
||
| 81 | 87 | return $this->path . '/' . substr($hash, 0, 2); |
| 82 | 88 | } |
| 83 | 89 | |
| 90 | + /** |
|
| 91 | + * @param string $hash |
|
| 92 | + */ |
|
| 84 | 93 | private function getCacheFile($hash) { |
| 85 | 94 | return $this->getCacheDir($hash) . '/' . $hash; |
| 86 | 95 | } |