@@ -92,6 +92,9 @@ |
||
| 92 | 92 | return $settings; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $field |
|
| 97 | + */ |
|
| 95 | 98 | protected function _normToSeconds(&$settings, $field) { |
| 96 | 99 | $settings[$field] = (int)$settings[$field] * 60; |
| 97 | 100 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | * counts how many users ignore the user with ID $id |
| 83 | 83 | * |
| 84 | 84 | * @param $id |
| 85 | - * @return array |
|
| 85 | + * @return integer |
|
| 86 | 86 | */ |
| 87 | 87 | public function countIgnored($id) { |
| 88 | 88 | return count($this->getIgnored($id)); |
@@ -7,6 +7,10 @@ |
||
| 7 | 7 | parent::setUp(); |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param string[] $types |
|
| 12 | + * @param string $url |
|
| 13 | + */ |
|
| 10 | 14 | protected function _checkDisallowedRequestType($types, $url) { |
| 11 | 15 | foreach ($types as $requestType) { |
| 12 | 16 | try { |
@@ -306,6 +306,9 @@ |
||
| 306 | 306 | |
| 307 | 307 | /** |
| 308 | 308 | * @see http://www.php.net/manual/en/function.str-pad.php#111147 |
| 309 | + * @param string $str |
|
| 310 | + * @param integer $padLen |
|
| 311 | + * @param integer $dir |
|
| 309 | 312 | */ |
| 310 | 313 | protected function _mbStrpad($str, $padLen, $padStr = ' ', $dir = STR_PAD_RIGHT) { |
| 311 | 314 | $strLen = mb_strlen($str); |
@@ -102,6 +102,9 @@ |
||
| 102 | 102 | return $this->_lastRuns; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | + /** |
|
| 106 | + * @param string $msg |
|
| 107 | + */ |
|
| 105 | 108 | protected function _log($msg) { |
| 106 | 109 | if (Configure::read('Saito.Globals.logInfo')) { |
| 107 | 110 | return CakeLog::write('saito.info', $msg); |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | return $this->_schema; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $key |
|
| 35 | + */ |
|
| 33 | 36 | public function resolveKey(Model $model, $key) { |
| 34 | 37 | if (strpos('.', $key) === false) { |
| 35 | 38 | return $model->alias . '.' . $key; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Setup instance |
| 39 | 39 | * |
| 40 | - * @param type $Model |
|
| 40 | + * @param Model $Model |
|
| 41 | 41 | * @param type $settings |
| 42 | 42 | */ |
| 43 | 43 | public function setup(Model $Model, $settings = array()) { |
@@ -183,6 +183,8 @@ discard block |
||
| 183 | 183 | /** |
| 184 | 184 | * build and log error message |
| 185 | 185 | * 2009-12-18 ms |
| 186 | + * @param string $msg |
|
| 187 | + * @param string $internalMsg |
|
| 186 | 188 | */ |
| 187 | 189 | private function error($msg = null, $internalMsg = null) { |
| 188 | 190 | if (!empty($msg)) { |
@@ -54,6 +54,9 @@ discard block |
||
| 54 | 54 | self::$_stopwatchCalls = 0; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param string $event |
|
| 59 | + */ |
|
| 57 | 60 | static protected function _addEvent($x, $event = null) { |
| 58 | 61 | if (self::$_enableTimer === false) { |
| 59 | 62 | return; |
@@ -264,7 +267,7 @@ discard block |
||
| 264 | 267 | /** |
| 265 | 268 | * Alias for self::stop |
| 266 | 269 | * |
| 267 | - * @param type $text |
|
| 270 | + * @param string $text |
|
| 268 | 271 | */ |
| 269 | 272 | public static function end($text) { |
| 270 | 273 | self::stop($text); |
@@ -151,6 +151,9 @@ |
||
| 151 | 151 | return $this->Html->tag('span', $content, ['class' => 'infoText']); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param string $icon |
|
| 156 | + */ |
|
| 154 | 157 | public function textWithIcon($text, $icon) { |
| 155 | 158 | return <<<EOF |
| 156 | 159 | <i class="saito-icon fa fa-$icon"></i> |