also looking at this
Apply fixes from StyleCI
#114
14 files
+143
-256
formatting only · 8 hidden lines
| @@ -23,7 +23,7 @@ class Image formatting only | ||
| 23 | 23 | /** |
| 24 | 24 | * Construct media model. |
| 25 | 25 | * |
| 26 | * @param Meema\MeemaClient\Client $client | |
| 26 | * @param Meema\MeemaClient\Client $client | |
| 27 | 27 | */ |
| 28 | 28 | public function __construct(Client $client) |
| 29 | 29 | { |
| @@ -33,8 +33,7 @@ class Image | ||
| 33 | 33 | /** |
| 34 | 34 | * Set the image width. |
| 35 | 35 | * |
| 36 | * @param int $value | |
| 37 | * | |
| 36 | * @param int $value | |
| 38 | 37 | * @return $this |
| 39 | 38 | */ |
| 40 | 39 | public function w($value) |
| @@ -47,8 +46,7 @@ class Image | ||
| 47 | 46 | /** |
| 48 | 47 | * Set the image height value. |
| 49 | 48 | * |
| 50 | * @param int $value | |
| 51 | * | |
| 49 | * @param int $value | |
| 52 | 50 | * @return $this |
| 53 | 51 | */ |
| 54 | 52 | public function h($value) |
| @@ -61,8 +59,7 @@ class Image | ||
| 61 | 59 | /** |
| 62 | 60 | * Set the image quality value. |
| 63 | 61 | * |
| 64 | * @param int $value | |
| 65 | * | |
| 62 | * @param int $value | |
| 66 | 63 | * @return $this |
| 67 | 64 | */ |
| 68 | 65 | public function q($value) |
| @@ -75,8 +72,7 @@ class Image | ||
| 75 | 72 | /** |
| 76 | 73 | * Set the image blur value. |
| 77 | 74 | * |
| 78 | * @param int $value | |
| 79 | * | |
| 75 | * @param int $value | |
| 80 | 76 | * @return $this |
| 81 | 77 | */ |
| 82 | 78 | public function blur($value) |
| @@ -89,8 +85,7 @@ class Image | ||
| 89 | 85 | /** |
| 90 | 86 | * Determine if image is nsfw. |
| 91 | 87 | * |
| 92 | * @param int|string $value | |
| 93 | * | |
| 88 | * @param int|string $value | |
| 94 | 89 | * @return $this |
| 95 | 90 | */ |
| 96 | 91 | public function nsfw($value) |
| @@ -103,8 +98,7 @@ class Image | ||
| 103 | 98 | /** |
| 104 | 99 | * Set image background value. |
| 105 | 100 | * |
| 106 | * @param string $value | |
| 107 | * | |
| 101 | * @param string $value | |
| 108 | 102 | * @return $this |
| 109 | 103 | */ |
| 110 | 104 | public function bg($value) |
| @@ -117,8 +111,7 @@ class Image | ||
| 117 | 111 | /** |
| 118 | 112 | * Set the aspect ratio value. |
| 119 | 113 | * |
| 120 | * @param int $value | |
| 121 | * | |
| 114 | * @param int $value | |
| 122 | 115 | * @return $this |
| 123 | 116 | */ |
| 124 | 117 | public function ar($value) |
| @@ -131,8 +124,7 @@ class Image | ||
| 131 | 124 | /** |
| 132 | 125 | * Set the brightness value. |
| 133 | 126 | * |
| 134 | * @param int $value | |
| 135 | * | |
| 127 | * @param int $value | |
| 136 | 128 | * @return $this |
| 137 | 129 | */ |
| 138 | 130 | public function bri($value) |
| @@ -145,8 +137,7 @@ class Image | ||
| 145 | 137 | /** |
| 146 | 138 | * Set the hue shift value. |
| 147 | 139 | * |
| 148 | * @param int $value | |
| 149 | * | |
| 140 | * @param int $value | |
| 150 | 141 | * @return $this |
| 151 | 142 | */ |
| 152 | 143 | public function hue($value) |
| @@ -159,8 +150,7 @@ class Image | ||
| 159 | 150 | /** |
| 160 | 151 | * Set the saturation value. |
| 161 | 152 | * |
| 162 | * @param int $value | |
| 163 | * | |
| 153 | * @param int $value | |
| 164 | 154 | * @return $this |
| 165 | 155 | */ |
| 166 | 156 | public function sat($value) |
| @@ -173,8 +163,7 @@ class Image | ||
| 173 | 163 | /** |
| 174 | 164 | * Set the sharpen value. |
| 175 | 165 | * |
| 176 | * @param int $value | |
| 177 | * | |
| 166 | * @param int $value | |
| 178 | 167 | * @return $this |
| 179 | 168 | */ |
| 180 | 169 | public function sharp($value) |
| @@ -187,8 +176,7 @@ class Image | ||
| 187 | 176 | /** |
| 188 | 177 | * Set the border radius outer value. |
| 189 | 178 | * |
| 190 | * @param string $value | |
| 191 | * | |
| 179 | * @param string $value | |
| 192 | 180 | * @return $this |
| 193 | 181 | */ |
| 194 | 182 | public function pad($value) |
| @@ -201,8 +189,7 @@ class Image | ||
| 201 | 189 | /** |
| 202 | 190 | * Set the greyscale value. |
| 203 | 191 | * |
| 204 | * @param bool $value | |
| 205 | * | |
| 192 | * @param bool $value | |
| 206 | 193 | * @return $this |
| 207 | 194 | */ |
| 208 | 195 | public function greyscale($value) |
| @@ -215,8 +202,7 @@ class Image | ||
| 215 | 202 | /** |
| 216 | 203 | * Set the trim value. |
| 217 | 204 | * |
| 218 | * @param string $value | |
| 219 | * | |
| 205 | * @param string $value | |
| 220 | 206 | * @return $this |
| 221 | 207 | */ |
| 222 | 208 | public function trim($value) |
| @@ -229,8 +215,7 @@ class Image | ||
| 229 | 215 | /** |
| 230 | 216 | * Set the face index value. |
| 231 | 217 | * |
| 232 | * @param int $value | |
| 233 | * | |
| 218 | * @param int $value | |
| 234 | 219 | * @return $this |
| 235 | 220 | */ |
| 236 | 221 | public function faceindex($value) |
| @@ -243,8 +228,7 @@ class Image | ||
| 243 | 228 | /** |
| 244 | 229 | * Set the fill color value. |
| 245 | 230 | * |
| 246 | * @param string $value | |
| 247 | * | |
| 231 | * @param string $value | |
| 248 | 232 | * @return $this |
| 249 | 233 | */ |
| 250 | 234 | public function fillColor($value) |
| @@ -257,8 +241,7 @@ class Image | ||
| 257 | 241 | /** |
| 258 | 242 | * Set the fill value. |
| 259 | 243 | * |
| 260 | * @param string $value | |
| 261 | * | |
| 244 | * @param string $value | |
| 262 | 245 | * @return $this |
| 263 | 246 | */ |
| 264 | 247 | public function fill($value) |
| @@ -271,8 +254,7 @@ class Image | ||
| 271 | 254 | /** |
| 272 | 255 | * Set the color space value. |
| 273 | 256 | * |
| 274 | * @param string $value | |
| 275 | * | |
| 257 | * @param string $value | |
| 276 | 258 | * @return $this |
| 277 | 259 | */ |
| 278 | 260 | public function cs($value) |
| @@ -285,8 +267,7 @@ class Image | ||
| 285 | 267 | /** |
| 286 | 268 | * Set the device pixel ration value. |
| 287 | 269 | * |
| 288 | * @param string $value | |
| 289 | * | |
| 270 | * @param string $value | |
| 290 | 271 | * @return $this |
| 291 | 272 | */ |
| 292 | 273 | public function dpr($value) |
| @@ -299,8 +280,7 @@ class Image | ||
| 299 | 280 | /** |
| 300 | 281 | * Set the extend value. |
| 301 | 282 | * |
| 302 | * @param int $value | |
| 303 | * | |
| 283 | * @param int $value | |
| 304 | 284 | * @return $this |
| 305 | 285 | */ |
| 306 | 286 | public function extend($value) |
| @@ -313,8 +293,7 @@ class Image | ||
| 313 | 293 | /** |
| 314 | 294 | * Set the extract value. |
| 315 | 295 | * |
| 316 | * @param string $value | |
| 317 | * | |
| 296 | * @param string $value | |
| 318 | 297 | * @return $this |
| 319 | 298 | */ |
| 320 | 299 | public function extract($value) |
| @@ -327,8 +306,7 @@ class Image | ||
| 327 | 306 | /** |
| 328 | 307 | * Set the crop value. |
| 329 | 308 | * |
| 330 | * @param string $value | |
| 331 | * | |
| 309 | * @param string $value | |
| 332 | 310 | * @return $this |
| 333 | 311 | */ |
| 334 | 312 | public function crop($value) |
| @@ -341,8 +319,7 @@ class Image | ||
| 341 | 319 | /** |
| 342 | 320 | * Set the max height value. |
| 343 | 321 | * |
| 344 | * @param int $value | |
| 345 | * | |
| 322 | * @param int $value | |
| 346 | 323 | * @return $this |
| 347 | 324 | */ |
| 348 | 325 | public function maxH($value) |
| @@ -355,8 +332,7 @@ class Image | ||
| 355 | 332 | /** |
| 356 | 333 | * Set the min height value. |
| 357 | 334 | * |
| 358 | * @param int $value | |
| 359 | * | |
| 335 | * @param int $value | |
| 360 | 336 | * @return $this |
| 361 | 337 | */ |
| 362 | 338 | public function minH($value) |
| @@ -369,8 +345,7 @@ class Image | ||
| 369 | 345 | /** |
| 370 | 346 | * Set the max width value. |
| 371 | 347 | * |
| 372 | * @param int $value | |
| 373 | * | |
| 348 | * @param int $value | |
| 374 | 349 | * @return $this |
| 375 | 350 | */ |
| 376 | 351 | public function maxW($value) |
| @@ -383,8 +358,7 @@ class Image | ||
| 383 | 358 | /** |
| 384 | 359 | * Set the min width value. |
| 385 | 360 | * |
| 386 | * @param int $value | |
| 387 | * | |
| 361 | * @param int $value | |
| 388 | 362 | * @return $this |
| 389 | 363 | */ |
| 390 | 364 | public function minW($value) |
| @@ -397,8 +371,7 @@ class Image | ||
| 397 | 371 | /** |
| 398 | 372 | * Set the resize fit mode value. |
| 399 | 373 | * |
| 400 | * @param string $value | |
| 401 | * | |
| 374 | * @param string $value | |
| 402 | 375 | * @return $this |
| 403 | 376 | */ |
| 404 | 377 | public function fit($value) |
| @@ -411,8 +384,7 @@ class Image | ||
| 411 | 384 | /** |
| 412 | 385 | * Set the pixellate value. |
| 413 | 386 | * |
| 414 | * @param int $value | |
| 415 | * | |
| 387 | * @param int $value | |
| 416 | 388 | * @return $this |
| 417 | 389 | */ |
| 418 | 390 | public function px($value) |