@@ -11,7 +11,7 @@ |
||
11 | 11 | class ServerController extends Controller { |
12 | 12 | function csrfAction($key = '') { |
13 | 13 | $result = new \Server\Result(); |
14 | - $key = (string)$key; |
|
14 | + $key = (string) $key; |
|
15 | 15 | if (!$key) { |
16 | 16 | $result->success = false; |
17 | 17 | return $result->send(); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | ini_set('memory_limit', '2000M'); |
15 | 15 | ignore_user_abort(true); |
16 | 16 | set_time_limit(0); |
17 | - $reExchange = Exchange1c\Exchange::get((int)$_GET['item_pk']); |
|
17 | + $reExchange = Exchange1c\Exchange::get((int) $_GET['item_pk']); |
|
18 | 18 | |
19 | 19 | $exchange = new \Exchange1c\Exchange(); |
20 | 20 | $exchange->type = $reExchange->type; |
@@ -148,9 +148,9 @@ discard block |
||
148 | 148 | $new_width = $max_width; |
149 | 149 | $new_height = $max_height; |
150 | 150 | //Находим начальные координаты (центрируем новое изображение) |
151 | - $imgX = (int)(($ow / 2) - ($img_width / 2)); |
|
151 | + $imgX = (int) (($ow / 2) - ($img_width / 2)); |
|
152 | 152 | if ($pos == 'center') { |
153 | - $imgY = (int)(($oh / 2) - ($img_height / 2)); |
|
153 | + $imgY = (int) (($oh / 2) - ($img_height / 2)); |
|
154 | 154 | } else { |
155 | 155 | $imgY = 0; |
156 | 156 | } |
@@ -292,9 +292,9 @@ discard block |
||
292 | 292 | * @return string |
293 | 293 | */ |
294 | 294 | public static function toRusDate($date) { |
295 | - $yy = (int)substr($date, 0, 4); |
|
296 | - $mm = (int)substr($date, 5, 2); |
|
297 | - $dd = (int)substr($date, 8, 2); |
|
295 | + $yy = (int) substr($date, 0, 4); |
|
296 | + $mm = (int) substr($date, 5, 2); |
|
297 | + $dd = (int) substr($date, 8, 2); |
|
298 | 298 | |
299 | 299 | $hours = substr($date, 11, 5); |
300 | 300 |