@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * Convert mod to table. |
| 48 | 48 | * |
| 49 | 49 | * @param string $Mod |
| 50 | - * @return mixed (string | void) Returns the table if it is correct. |
|
| 50 | + * @return string (string | void) Returns the table if it is correct. |
|
| 51 | 51 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
| 52 | 52 | */ |
| 53 | 53 | public static function convertModToTable($Mod) |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * @see \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() |
| 120 | 120 | * |
| 121 | 121 | * @param string $sTable |
| 122 | - * @return mixed (string | void) Returns the table if it is correct. |
|
| 122 | + * @return string (string | void) Returns the table if it is correct. |
|
| 123 | 123 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
| 124 | 124 | */ |
| 125 | 125 | public static function convertTableToId($sTable) |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | * @see \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() |
| 181 | 181 | * |
| 182 | 182 | * @param string $sTable |
| 183 | - * @return mixed (string | void) Returns the table if it is correct. |
|
| 183 | + * @return string|null (string | void) Returns the table if it is correct. |
|
| 184 | 184 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
| 185 | 185 | */ |
| 186 | 186 | public static function checkTable($sTable) |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * @see \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() |
| 213 | 213 | * |
| 214 | 214 | * @param string $sTable |
| 215 | - * @return mixed (string | void) Returns the table if it is correct. |
|
| 215 | + * @return string|null (string | void) Returns the table if it is correct. |
|
| 216 | 216 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
| 217 | 217 | */ |
| 218 | 218 | public static function checkModelTable($sTable) |
@@ -427,6 +427,7 @@ |
||
| 427 | 427 | |
| 428 | 428 | /** |
| 429 | 429 | * @access private |
| 430 | + * @param string $sMod |
|
| 430 | 431 | * @return void |
| 431 | 432 | */ |
| 432 | 433 | private function ajaxRouter($sMod = null) |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * Load route file. |
| 35 | 35 | * |
| 36 | 36 | * @param string \DOMDocument $oDom |
| 37 | - * @return object \DOMDocument |
|
| 37 | + * @return \DOMDocument \DOMDocument |
|
| 38 | 38 | * @throws \PH7\Framework\File\Exception If the file is not found. |
| 39 | 39 | */ |
| 40 | 40 | public static function loadFile(\DOMDocument $oDom) |
@@ -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() |
@@ -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 | } |