@@ -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> |
@@ -40,6 +40,9 @@ |
||
40 | 40 | return $prepared; |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param integer $lastId |
|
45 | + */ |
|
43 | 46 | protected function _readCache($lastId) { |
44 | 47 | $cache = Cache::read($this->_cacheKey); |
45 | 48 | if ($cache && $cache['lastId'] === $lastId) { |
@@ -112,6 +112,9 @@ |
||
112 | 112 | return $_timeString; |
113 | 113 | } |
114 | 114 | |
115 | + /** |
|
116 | + * @param integer $timestamp |
|
117 | + */ |
|
115 | 118 | protected function _normal($timestamp) { |
116 | 119 | if ($timestamp > $this->_today || $timestamp > ($this->_now - 21600)) { |
117 | 120 | // today or in the last 6 hours |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * Translates user types |
61 | 61 | * |
62 | 62 | * @param $type |
63 | - * @return mixed |
|
63 | + * @return null|string |
|
64 | 64 | */ |
65 | 65 | public function type($type) { |
66 | 66 | // write out all __() strings for l10n |