@@ -44,7 +44,7 @@ |
||
44 | 44 | 'map' => [ |
45 | 45 | ['name', 'type'], |
46 | 46 | ['required', 'save'], |
47 | - [ 'userfield'] |
|
47 | + ['userfield'] |
|
48 | 48 | ] |
49 | 49 | ] |
50 | 50 | ]; |
@@ -24,8 +24,8 @@ |
||
24 | 24 | 'label' => ['type' => 'text'], |
25 | 25 | 'type' => ['type' => 'text'], |
26 | 26 | 'required' => ['type' => 'bool'], |
27 | - 'form_id' => [ 'type' => 'select', 'source' => 'relation', 'relation' => 'form'], |
|
28 | - 'user_id' => [ 'type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
|
27 | + 'form_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'form'], |
|
28 | + 'user_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
|
29 | 29 | 'input_params' => ['type' => 'textarea'], |
30 | 30 | 'weight' => ['type' => 'number'] |
31 | 31 | ]; |
@@ -24,10 +24,10 @@ |
||
24 | 24 | public static $cols = [ |
25 | 25 | 'name' => ['type' => 'text'], |
26 | 26 | 'description' => ['type' => 'html'], |
27 | - 'user_id' => [ 'type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
|
27 | + 'user_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
|
28 | 28 | 'date_create' => ['type' => 'dateTime'], |
29 | 29 | //Менеджеры |
30 | - 'inputs' => [ 'type' => 'dataManager', 'relation' => 'inputs'], |
|
30 | + 'inputs' => ['type' => 'dataManager', 'relation' => 'inputs'], |
|
31 | 31 | ]; |
32 | 32 | public static $dataManagers = [ |
33 | 33 | 'manager' => [ |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $bestItems = array_slice($bestItems, 0, 3); |
20 | 20 | } |
21 | 21 | $this->widget('Ecommerce\items/icons', ['items' => $bestItems]); |
22 | - $this->widget('Ecommerce\items/table', ['items'=>$bestItems,'hide'=>true]); |
|
22 | + $this->widget('Ecommerce\items/table', ['items'=>$bestItems, 'hide'=>true]); |
|
23 | 23 | ?> |
24 | 24 | </div> |
25 | 25 | </div> |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | $bestItems = App::$cur->ecommerce->getItems(['sort' => ['sales' => 'desc'], 'start' => 0, 'count' => 6]); |
30 | 30 | $this->widget('Ecommerce\items/icons', ['items' => $bestItems]); |
31 | - $this->widget('Ecommerce\items/table', ['items'=>$bestItems,'hide'=>true]); |
|
31 | + $this->widget('Ecommerce\items/table', ['items'=>$bestItems, 'hide'=>true]); |
|
32 | 32 | ?> |
33 | 33 | <a class="ecommerce-showmore" href="/ecommerce/itemList">Показать больше товаров</a> |
34 | 34 | </div> |
@@ -3,7 +3,7 @@ |
||
3 | 3 | <h2>Подтверждение перевода №<?= $transfer->id; ?></h2> |
4 | 4 | <p>Перевод валюты <?= $transfer->currency->name(); ?> на сумму <?= $transfer->amount; ?> пользователю <?= $transfer->toUser->name(); ?></p> |
5 | 5 | <?php |
6 | - if($transfer->comment){ |
|
6 | + if ($transfer->comment) { |
|
7 | 7 | echo "<p>Комментарий: {$transfer->comment}</p>"; |
8 | 8 | } |
9 | 9 | ?> |
@@ -9,10 +9,10 @@ |
||
9 | 9 | </div> |
10 | 10 | <?php |
11 | 11 | ++$i; |
12 | - if (!( $i % 3)) { |
|
12 | + if (!($i % 3)) { |
|
13 | 13 | echo '<div class="clearfix hidden-xs"></div>'; |
14 | 14 | } |
15 | - if (!( $i % 2)) { |
|
15 | + if (!($i % 2)) { |
|
16 | 16 | echo '<div class="clearfix visible-xs"></div>'; |
17 | 17 | } |
18 | 18 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | 'manager' => [ |
44 | 44 | 'map' => [ |
45 | 45 | ['name', 'code'], |
46 | - ['delivery', 'electronic','discount'] |
|
46 | + ['delivery', 'electronic', 'discount'] |
|
47 | 47 | ] |
48 | 48 | ] |
49 | 49 | ]; |
@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | |
26 | 26 | foreach ($reExchange->files as $reFile) { |
27 | 27 | if (strpos($reFile->name, '/')) { |
28 | - Tools::createDir($exchange->path . '/' . substr($reFile->name, 0, strrpos($reFile->name, '/'))); |
|
28 | + Tools::createDir($exchange->path.'/'.substr($reFile->name, 0, strrpos($reFile->name, '/'))); |
|
29 | 29 | } |
30 | - copy($reExchange->path . '/' . $reFile->name, $exchange->path . '/' . $reFile->name); |
|
30 | + copy($reExchange->path.'/'.$reFile->name, $exchange->path.'/'.$reFile->name); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | //Tools::copyFiles($reExchange->path, $exchange->path); |
@@ -46,10 +46,10 @@ discard block |
||
46 | 46 | $log->query = $reLog->query; |
47 | 47 | $log->save(); |
48 | 48 | |
49 | - $modeClass = 'Exchange1c\Mode\\' . ucfirst(strtolower($log->info)); |
|
49 | + $modeClass = 'Exchange1c\Mode\\'.ucfirst(strtolower($log->info)); |
|
50 | 50 | if (!class_exists($modeClass)) { |
51 | 51 | $log->status = 'failure'; |
52 | - $log->info = 'mode class ' . $modeClass . ' not found'; |
|
52 | + $log->info = 'mode class '.$modeClass.' not found'; |
|
53 | 53 | $log->date_end = date('Y-m-d H:i:s'); |
54 | 54 | $log->save(); |
55 | 55 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $exchange->type = $_GET['type']; |
35 | 35 | $exchange->session = session_id(); |
36 | 36 | $exchange->save(); |
37 | - $exchange->path = App::$cur->path . '/tmp/Exchange1c/' . date('Y-m-d') . '/' . $exchange->id; |
|
37 | + $exchange->path = App::$cur->path.'/tmp/Exchange1c/'.date('Y-m-d').'/'.$exchange->id; |
|
38 | 38 | $exchange->save(); |
39 | 39 | } |
40 | 40 | |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | $log->status = 'process'; |
46 | 46 | $log->query = json_encode($_GET); |
47 | 47 | $log->save(); |
48 | - $modeClass = 'Exchange1c\Mode\\' . ucfirst(strtolower($_GET['mode'])); |
|
48 | + $modeClass = 'Exchange1c\Mode\\'.ucfirst(strtolower($_GET['mode'])); |
|
49 | 49 | if (!class_exists($modeClass)) { |
50 | 50 | $log->status = 'failure'; |
51 | - $log->info = 'mode class ' . $modeClass . ' not found'; |
|
51 | + $log->info = 'mode class '.$modeClass.' not found'; |
|
52 | 52 | $log->date_end = date('Y-m-d H:i:s'); |
53 | 53 | $log->save(); |
54 | 54 | } |