@@ -230,8 +230,6 @@ discard block |
||
230 | 230 | * This function attempts to get the image to as close to the provided dimensions as possible, and then crops the |
231 | 231 | * remaining overflow (from the center) to get the image to be the size specified |
232 | 232 | * |
233 | - * @param int $maxWidth |
|
234 | - * @param int $maxHeight |
|
235 | 233 | * @return GdThumb |
236 | 234 | */ |
237 | 235 | public function adaptiveResize ($width, $height) |
@@ -356,8 +354,6 @@ discard block |
||
356 | 354 | * |
357 | 355 | * This works the same as for Landscape images except that a percentage of 1 means top and 100 means bottom |
358 | 356 | * |
359 | - * @param int $maxWidth |
|
360 | - * @param int $maxHeight |
|
361 | 357 | * @param int $percent |
362 | 358 | * @return GdThumb |
363 | 359 | */ |
@@ -485,8 +481,6 @@ discard block |
||
485 | 481 | * to crop. This would have exactly the same result as using adaptiveResize(). |
486 | 482 | * The same goes if your image is portrait and you choose either the Left or Right quadrants. |
487 | 483 | * |
488 | - * @param int $maxWidth |
|
489 | - * @param int $maxHeight |
|
490 | 484 | * @param string $quadrant T, B, C, L, R |
491 | 485 | * @return GdThumb |
492 | 486 | */ |
@@ -95,6 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * Class constructor |
97 | 97 | * |
98 | + * @param string $fileName |
|
98 | 99 | * @return ThumbBase |
99 | 100 | */ |
100 | 101 | public function __construct ($fileName, $isDataStream = false) |
@@ -32,6 +32,7 @@ discard block |
||
32 | 32 | * Define the autoloader work mode. |
33 | 33 | * |
34 | 34 | * @param integer $mode Autoloader work mode. |
35 | + * @return void |
|
35 | 36 | */ |
36 | 37 | public function setMode($mode); |
37 | 38 | |
@@ -40,6 +41,7 @@ discard block |
||
40 | 41 | * |
41 | 42 | * @param string $resourceName Resource name, namespace or prefix. |
42 | 43 | * @param mixed $resourcePath Resource single path or multiple paths (array). |
44 | + * @return void |
|
43 | 45 | */ |
44 | 46 | public function add($resourceName, $resourcePath = null); |
45 | 47 | |
@@ -47,6 +49,7 @@ discard block |
||
47 | 49 | * Load a resource through provided resource name. |
48 | 50 | * |
49 | 51 | * @param string $resourceName Resource name. |
52 | + * @return void |
|
50 | 53 | */ |
51 | 54 | public function load($resourceName); |
52 | 55 | |
@@ -54,12 +57,14 @@ discard block |
||
54 | 57 | * Register this as an autoloader instance. |
55 | 58 | * |
56 | 59 | * @param boolean Whether to prepend the autoloader or not in autoloader's list. |
60 | + * @return void |
|
57 | 61 | */ |
58 | 62 | public function register($prepend = false); |
59 | 63 | |
60 | 64 | /** |
61 | 65 | * Unregister this autoloader instance. |
62 | 66 | * |
67 | + * @return void |
|
63 | 68 | */ |
64 | 69 | public function unregister(); |
65 | 70 | } |
@@ -235,6 +240,7 @@ discard block |
||
235 | 240 | * Transform resource name into its absolute resource path representation. |
236 | 241 | * |
237 | 242 | * @params string $resourceName |
243 | + * @param string $resourceName |
|
238 | 244 | * |
239 | 245 | * @return string Resource absolute path. |
240 | 246 | */ |
@@ -290,6 +296,7 @@ discard block |
||
290 | 296 | * Check if resource is declared in user space. |
291 | 297 | * |
292 | 298 | * @params string $resourceName |
299 | + * @param string $resourceName |
|
293 | 300 | * |
294 | 301 | * @return boolean |
295 | 302 | */ |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * Initialize the properties of action |
86 | 86 | * |
87 | - * @param null $attr |
|
87 | + * @param string|null $attr |
|
88 | 88 | * |
89 | 89 | * @throws CHttpException |
90 | 90 | */ |
@@ -143,6 +143,9 @@ discard block |
||
143 | 143 | } |
144 | 144 | } |
145 | 145 | |
146 | + /** |
|
147 | + * @param integer|null $id |
|
148 | + */ |
|
146 | 149 | private function deleteFile($id) |
147 | 150 | { |
148 | 151 | if( !$id ) |
@@ -219,7 +222,7 @@ discard block |
||
219 | 222 | } |
220 | 223 | |
221 | 224 | /** |
222 | - * @param $id |
|
225 | + * @param integer|null $id |
|
223 | 226 | * |
224 | 227 | * @throws CHttpException |
225 | 228 | */ |
@@ -254,6 +257,9 @@ discard block |
||
254 | 257 | } |
255 | 258 | } |
256 | 259 | |
260 | + /** |
|
261 | + * @param UploadForm $model |
|
262 | + */ |
|
257 | 263 | private function saveFile($model) |
258 | 264 | { |
259 | 265 | if( file_exists($this->path.$model->name) ) |
@@ -26,6 +26,9 @@ |
||
26 | 26 | |
27 | 27 | private $db; |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $table |
|
31 | + */ |
|
29 | 32 | public function __construct($table = null) |
30 | 33 | { |
31 | 34 | $this->db = Yii::app()->db; |
@@ -32,7 +32,6 @@ |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Writes a trace dump. |
35 | - * @param string $msg message to be logged |
|
36 | 35 | */ |
37 | 36 | public static function trace($message) |
38 | 37 | { |
@@ -215,9 +215,9 @@ |
||
215 | 215 | /** |
216 | 216 | * Check if an IP matches a CIDR mask. |
217 | 217 | * |
218 | - * @param integer|string $ip IP to check. |
|
219 | - * @param integer|string $matchIp Radical of the mask (e.g. 192.168.0.0). |
|
218 | + * @param string $ip IP to check. |
|
220 | 219 | * @param integer $maskBits Size of the mask (e.g. 24). |
220 | + * @param string $maskIp |
|
221 | 221 | */ |
222 | 222 | protected static function matchIpMask($ip, $maskIp, $maskBits) |
223 | 223 | { |
@@ -150,6 +150,9 @@ discard block |
||
150 | 150 | }); |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param string $method |
|
155 | + */ |
|
153 | 156 | private function getKey($method, $args) |
154 | 157 | { |
155 | 158 | return $method.crc32(serialize($args)); |
@@ -166,7 +169,7 @@ discard block |
||
166 | 169 | } |
167 | 170 | |
168 | 171 | /** |
169 | - * @param $key |
|
172 | + * @param string $key |
|
170 | 173 | * |
171 | 174 | * @return mixed |
172 | 175 | */ |
@@ -182,7 +182,7 @@ |
||
182 | 182 | |
183 | 183 | /** |
184 | 184 | * @param $item |
185 | - * @param $orderProduct |
|
185 | + * @param FActiveRecord $orderProduct |
|
186 | 186 | * |
187 | 187 | * @throws CHttpException |
188 | 188 | */ |