Completed
Push — master ( 0afdc4...0e57e6 )
by Alexey
04:27
created
system/modules/Exchange1c/appAdminControllers/Exchange1cController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
system/modules/Exchange1c/appControllers/Exchange1cController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
system/modules/Exchange1c/objects/Mode/Checkauth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function process()
17 17
     {
18 18
         $_SESSION['auth'] = true;
19
-        \App::$cur->exchange1c->response('success', session_name() . "\n" . session_id(), false);
19
+        \App::$cur->exchange1c->response('success', session_name()."\n".session_id(), false);
20 20
         $this->end();
21 21
     }
22 22
 
Please login to merge, or discard this patch.
system/modules/Exchange1c/objects/Mode/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         header("Content-Type: text/xml");
27 27
         header("Expires: Thu, 19 Feb 1998 13:24:18 GMT");
28
-        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
28
+        header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 29
         header("Cache-Control: no-cache, must-revalidate");
30 30
         header("Cache-Control: post-check=0,pre-check=0");
31 31
         header("Cache-Control: max-age=0");
Please login to merge, or discard this patch.
system/modules/Exchange1c/objects/Mode/Import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     public function process()
17 17
     {
18
-        \App::$cur->Migrations->startMigration(1, strpos($_GET['filename'], 'import') !== false ? 1 : 2, $this->exchange->path . '/' . $_GET['filename']);
18
+        \App::$cur->Migrations->startMigration(1, strpos($_GET['filename'], 'import') !== false ? 1 : 2, $this->exchange->path.'/'.$_GET['filename']);
19 19
         echo 'success';
20 20
         $this->end();
21 21
     }
Please login to merge, or discard this patch.
system/modules/Chats/widgets/chat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     echo 'Чат не найден';
12 12
     return;
13 13
 }
14
-$id = 'chat-' . Tools::randomString();
14
+$id = 'chat-'.Tools::randomString();
15 15
 $msgTemplate = '<div class="chats-chat-message"><b title="message-date_create user-fullName">user-firstName</b>: message-text</div>';
16 16
 $events = $chat->events(['order' => ['date_create', 'DESC'], 'key' => false]);
17 17
 $lastDate = $events ? $events[0]->date_create : 0;
Please login to merge, or discard this patch.
system/modules/Recaptcha/Recaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $data['secret'] = $this->config['secret'];
30 30
         $data['response'] = $gResponse;
31
-        $response = file_get_contents('https://www.google.com/recaptcha/api/siteverify?' . http_build_query($data));
31
+        $response = file_get_contents('https://www.google.com/recaptcha/api/siteverify?'.http_build_query($data));
32 32
         if ($response) {
33 33
             return json_decode($response);
34 34
         }
Please login to merge, or discard this patch.
system/modules/Migrations/appAdminControllers/content/Map/index.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 $form->begin('Карта миграции');
5 5
 function drawPath($path, $form, $models, $objects)
6 6
 {
7
-    $form->input('select', 'type[' . $path->id . ']', $path->item, [
7
+    $form->input('select', 'type['.$path->id.']', $path->item, [
8 8
         'values' => [
9 9
     '' => 'Выберите',
10 10
     'continue' => 'Пропустить',
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     'object' => [
13 13
         'text' => 'Объект',
14 14
         'input' => [
15
-            'name' => 'typeOptions[' . $path->id . ']',
15
+            'name' => 'typeOptions['.$path->id.']',
16 16
             'type' => 'select',
17 17
             'source' => 'array',
18 18
             'sourceArray' => $models
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     if (empty($objectsCols[$param->object_id])) {
50 50
         $modelName = $param->object->model;
51 51
         foreach (array_keys($modelName::$cols) as $colName) {
52
-            $objectsCols[$param->object_id][$colName] = !empty($modelName::$labels[$colName])?$modelName::$labels[$colName]:$colName;
52
+            $objectsCols[$param->object_id][$colName] = !empty($modelName::$labels[$colName]) ? $modelName::$labels[$colName] : $colName;
53 53
         }
54 54
     }
55 55
     $modelName = $param->object->model;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $relations[$relName] = $relName;
59 59
     }
60 60
     if ($parent) {
61
-        $parserName = '\Migrations\Parser\Object\\' . ucfirst($parent->type);
61
+        $parserName = '\Migrations\Parser\Object\\'.ucfirst($parent->type);
62 62
         $parser = new $parserName;
63 63
         $parser->param = $parent;
64 64
         $values = $parser->editor();
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'value' => [
73 73
                 'text' => 'Значение',
74 74
                 'input' => [
75
-                    'name' => 'paramOptions[' . $param->id . ']',
75
+                    'name' => 'paramOptions['.$param->id.']',
76 76
                     'type' => 'select',
77 77
                     'source' => 'array',
78 78
                     'sourceArray' => $objectsCols[$param->object_id],
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             'relation' => [
85 85
                 'text' => 'Зависимость',
86 86
                 'input' => [
87
-                    'name' => 'paramOptions[' . $param->id . ']',
87
+                    'name' => 'paramOptions['.$param->id.']',
88 88
                     'type' => 'select',
89 89
                     'source' => 'array',
90 90
                     'sourceArray' => $relations,
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             'object' => [
97 97
                 'text' => 'Объект',
98 98
                 'input' => [
99
-                    'name' => 'paramOptions[' . $param->id . ']',
99
+                    'name' => 'paramOptions['.$param->id.']',
100 100
                     'type' => 'select',
101 101
                     'source' => 'array',
102 102
                     'sourceArray' => $selectArrays[$param->object->migration_id],
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             'objectLink' => [
109 109
                 'text' => 'Ссылка на объект',
110 110
                 'input' => [
111
-                    'name' => 'paramOptions[' . $param->id . ']',
111
+                    'name' => 'paramOptions['.$param->id.']',
112 112
                     'type' => 'select',
113 113
                     'source' => 'array',
114 114
                     'sourceArray' => $selectArrays[$param->object->migration_id],
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             'newObject' => [
121 121
                 'text' => 'Новый объект',
122 122
                 'input' => [
123
-                    'name' => 'paramOptions[' . $param->id . ']',
123
+                    'name' => 'paramOptions['.$param->id.']',
124 124
                     'type' => 'select',
125 125
                     'source' => 'array',
126 126
                     'sourceArray' => $models,
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             'custom' => [
133 133
                 'text' => 'Свой класс обработки',
134 134
                 'input' => [
135
-                    'name' => 'paramOptions[' . $param->id . ']',
135
+                    'name' => 'paramOptions['.$param->id.']',
136 136
                     'type' => 'text',
137 137
                     'options' => [
138 138
                         'value' => $param->value
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             ]
142 142
         ];
143 143
     }
144
-    $form->input('select', 'param[' . $param->id . ']', $param->code, ['values' => $values,
144
+    $form->input('select', 'param['.$param->id.']', $param->code, ['values' => $values,
145 145
         'value' => $param->type
146 146
     ]);
147 147
     foreach ($param->childs as $child) {
Please login to merge, or discard this patch.
system/modules/Migrations/objects/Parser/Object/ParamsList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 if ($param->type == 'custom') {
26 26
                     $parserName = $param->value;
27 27
                 } else {
28
-                    $parserName = '\Migrations\Parser\Object\\' . ucfirst($param->type);
28
+                    $parserName = '\Migrations\Parser\Object\\'.ucfirst($param->type);
29 29
                 }
30 30
                 if (!\Tools::isAssoc($this->data)) {
31 31
                     foreach ($this->data as $data) {
Please login to merge, or discard this patch.