Completed
Push — master ( 100a0b...5e98ad )
by Alexey
04:13
created
system/modules/Exchange1c/models/Exchange/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
   ];
31 31
 
32 32
   public function deleteFile() {
33
-    if ($this->exchange && file_exists($this->exchange->path . '/' . $this->name)) {
34
-      unlink($this->exchange->path . '/' . $this->name);
33
+    if ($this->exchange && file_exists($this->exchange->path.'/'.$this->name)) {
34
+      unlink($this->exchange->path.'/'.$this->name);
35 35
     }
36 36
     $this->deleted = 1;
37 37
     $this->save();
Please login to merge, or discard this patch.
system/modules/Migrations/objects/Walker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
           $walker->migration = $this->migration;
33 33
           $walker->map = $this->map;
34 34
           $walker->data = &$this->data[$path->item];
35
-          $walker->curPath = $this->curPath . $path->item . '/';
35
+          $walker->curPath = $this->curPath.$path->item.'/';
36 36
           $walker->mapPath = $path;
37 37
           $walker->mapPathParent = $this->mapPath;
38 38
           $walker->migtarionLog = $this->migtarionLog;
Please login to merge, or discard this patch.
system/modules/Db/objects/Mysql/Mysql.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
 
14 14
 class Mysql extends \Object {
15 15
 
16
-  public $config = [];       // настройки подключения выбраной базы
17
-  public $connect = FALSE;        // ярлык соединения с MySQL
18
-  public $encoding = 'utf-8';        // установленная кодировка
19
-  public $db_name = 'test';         // выбраная в данный момент база
20
-  public $table_prefix = 'inji_';   // префикс названий таблиц
16
+  public $config = []; // настройки подключения выбраной базы
17
+  public $connect = FALSE; // ярлык соединения с MySQL
18
+  public $encoding = 'utf-8'; // установленная кодировка
19
+  public $db_name = 'test'; // выбраная в данный момент база
20
+  public $table_prefix = 'inji_'; // префикс названий таблиц
21 21
   public $pdo = NULL;
22 22
   public $lastQuery = '';
23 23
   public $last_error = '';
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     $this->table_prefix = '';
72 72
 
73 73
     $query->where('TABLE_SCHEMA', $old_db);
74
-    $query->where('TABLE_NAME', $old_prefix . $table_name);
74
+    $query->where('TABLE_NAME', $old_prefix.$table_name);
75 75
     $result = $query->select('COLUMNS');
76 76
     $this->db_name = $old_db;
77 77
     $this->table_prefix = $old_prefix;
Please login to merge, or discard this patch.
system/modules/Ui/widgets/Form/select.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
       $showedInput = count($aditionalInputs) - 1;
24 24
       $aditionValue = !empty($options['aditionalValue']) ? $options['aditionalValue'] : '';
25 25
     }
26
-    $optionsHtml .= "<option data-aditionalInput='" . ( count($aditionalInputs) - 1) . "' value ='{$key}'{$selected}>{$value['text']}</option>";
26
+    $optionsHtml .= "<option data-aditionalInput='".(count($aditionalInputs) - 1)."' value ='{$key}'{$selected}>{$value['text']}</option>";
27 27
   } else {
28 28
     $optionsHtml .= "<option value ='{$key}'{$selected}>{$value}</option>";
29 29
   }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 <?= $label !== false ? "<label>{$label}" : ''; ?>
34 34
 <?php
35 35
 if ($label !== false && !empty($options['createBtn'])) {
36
-  echo ' (<a href="" onclick="' . $options['createBtn']['onclick'] . ';this.disabled=true;return false;">' . $options['createBtn']['text'] . '</a>)';
36
+  echo ' (<a href="" onclick="'.$options['createBtn']['onclick'].';this.disabled=true;return false;">'.$options['createBtn']['text'].'</a>)';
37 37
 }
38 38
 ?>
39 39
 <?= $label !== false ? "</label>" : ''; ?>
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
 
47 47
   if ($key !== $showedInput) {
48 48
     $input['options']['disabled'] = true;
49
-    $input['options']['class'] = !empty($input['options']['class']) ? $input['options']['class'] . ' hidden' : 'hidden';
49
+    $input['options']['class'] = !empty($input['options']['class']) ? $input['options']['class'].' hidden' : 'hidden';
50 50
   } else {
51 51
     $input['options']['value'] = empty($input['options']['value']) ? $aditionValue : $input['options']['value'];
52 52
   }
53 53
   if ($input['type'] == 'select') {
54 54
     $input['options']['values'] = \Ui\ActiveForm::getOptionsList($input);
55 55
   }
56
-  $form->input($input['type'], empty($input['name']) ? $name . '[aditional]' : $input['name'], false, $input['options']);
56
+  $form->input($input['type'], empty($input['name']) ? $name.'[aditional]' : $input['name'], false, $input['options']);
57 57
 }
58 58
 ?>
59 59
 <?= empty($options['noContainer']) ? '</div>' : ''; ?>
60 60
\ No newline at end of file
Please login to merge, or discard this patch.
system/modules/Ui/widgets/Form/dynamicList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
               echo $col['col']['label'];
22 22
               if (!empty($col['col']['model'])) {
23 23
                 $modelName = $col['col']['model'];
24
-                $onclick = 'inji.Ui.forms.popUp(\'' . addslashes($modelName) . '\',{},function(elem){'
24
+                $onclick = 'inji.Ui.forms.popUp(\''.addslashes($modelName).'\',{},function(elem){'
25 25
                         . 'return function(data,modal){inji.Ui.forms.submitAjax($(elem).closest(\'form\')[0], {notSave: true});}}(this));return false;';
26
-                echo ' (<a href="" onclick="' . $onclick . ';this.disabled=true;return false;">Создать</a>)';
26
+                echo ' (<a href="" onclick="'.$onclick.';this.disabled=true;return false;">Создать</a>)';
27 27
               }
28 28
               echo "</th>";
29 29
             }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                 echo '<td>';
43 43
                 $col['options']['noContainer'] = true;
44 44
                 $col['options']['value'] = $row[$colName];
45
-                $form->input($col['type'], $name . '[' . ($i) . '][' . $colName . ']', false, $col['options']);
45
+                $form->input($col['type'], $name.'['.($i).']['.$colName.']', false, $col['options']);
46 46
                 echo '</td>';
47 47
               }
48 48
               echo '<td class="actionTd"><a class="btn btn-danger btn-xs" onclick="inji.Ui.forms.delRowFromList(this);"><i class="glyphicon glyphicon-remove"></i></a></td>';
Please login to merge, or discard this patch.
system/modules/Ui/objects/ActiveForm.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $this->formName = $form;
48 48
         $this->form = \App::$cur->ui->getModelForm($this->modelName, $form);
49 49
         if (empty($this->form)) {
50
-          throw new \Exception('empty form ' . $form);
50
+          throw new \Exception('empty form '.$form);
51 51
         }
52 52
         $this->inputs = $this->getInputs();
53 53
       }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
               $this->model->_params[$modelName::index()] = 0;
83 83
             }
84 84
             $relOptions['model']::fixPrefix($relOptions['col']);
85
-            $inputs[$col] = new ActiveForm(new $relOptions['model']([ $relOptions['col'] => &$this->model->_params[$modelName::index()]]), $colPath[2]);
85
+            $inputs[$col] = new ActiveForm(new $relOptions['model']([$relOptions['col'] => &$this->model->_params[$modelName::index()]]), $colPath[2]);
86 86
           }
87 87
           $inputs[$col]->parent = $this;
88 88
         } elseif (!empty($modelName::$cols[$col])) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
   public function checkRequest($params = [], $ajax = false) {
97 97
     if (!$this->checkAccess()) {
98
-      $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->formName . '"');
98
+      $this->drawError('you not have access to "'.$this->modelName.'" manager with name: "'.$this->formName.'"');
99 99
       return [];
100 100
     }
101 101
     $successId = 0;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             if (!empty($this->form['userGroupReadonly'][\Users\User::$cur->group_id]) && in_array($col, $this->form['userGroupReadonly'][\Users\User::$cur->group_id])) {
127 127
               continue;
128 128
             }
129
-            $inputClassName = '\Ui\ActiveForm\Input\\' . ucfirst($param['type']);
129
+            $inputClassName = '\Ui\ActiveForm\Input\\'.ucfirst($param['type']);
130 130
             $input = new $inputClassName();
131 131
             $input->activeForm = $this;
132 132
             $input->activeFormParams = $params;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             if ($ajax) {
172 172
               \Msg::show();
173 173
             } elseif (!empty($_GET['redirectUrl'])) {
174
-              \Tools::redirect($_GET['redirectUrl'] . (!empty($_GET['dataManagerHash']) ? '#' . $_GET['dataManagerHash'] : ''));
174
+              \Tools::redirect($_GET['redirectUrl'].(!empty($_GET['dataManagerHash']) ? '#'.$_GET['dataManagerHash'] : ''));
175 175
             }
176 176
             $successId = $this->model->pk();
177 177
           }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
   public function draw($params = [], $ajax = false) {
188 188
     if (!$this->checkAccess()) {
189
-      $this->drawError('you not have access to "' . $this->modelName . '" form with name: "' . $this->formName . '"');
189
+      $this->drawError('you not have access to "'.$this->modelName.'" form with name: "'.$this->formName.'"');
190 190
       return [];
191 191
     }
192 192
     $form = new Form(!empty($this->form['formOptions']) ? $this->form['formOptions'] : []);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     if (is_object($options)) {
198 198
       $options->draw();
199 199
     } else {
200
-      $inputClassName = '\Ui\ActiveForm\Input\\' . ucfirst($options['type']);
200
+      $inputClassName = '\Ui\ActiveForm\Input\\'.ucfirst($options['type']);
201 201
       $input = new $inputClassName();
202 202
       $input->form = $form;
203 203
       $input->activeForm = $this;
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     }
274 274
     foreach ($values as $key => $value) {
275 275
       if (is_array($value) && !empty($value['input']) && empty($value['input']['noprefix'])) {
276
-        $values[$key]['input']['name'] = $aditionalInputNamePrefix . "[{$value['input']['name']}]";
276
+        $values[$key]['input']['name'] = $aditionalInputNamePrefix."[{$value['input']['name']}]";
277 277
       }
278 278
     }
279 279
     return $values;
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
    */
296 296
   public function checkAccess() {
297 297
     if (empty($this->form)) {
298
-      $this->drawError('"' . $this->modelName . '" form with name: "' . $this->formName . '" not found');
298
+      $this->drawError('"'.$this->modelName.'" form with name: "'.$this->formName.'" not found');
299 299
       return false;
300 300
     }
301 301
     if (\App::$cur->Access && !\App::$cur->Access->checkAccess($this)) {
Please login to merge, or discard this patch.
system/modules/Ui/objects/ActiveForm/Input/DynamicList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     switch ($this->colParams['source']) {
87 87
       case'options':
88 88
         foreach ($this->colParams['options']['inputs'] as $colName => $col) {
89
-          $inputClassName = '\Ui\ActiveForm\Input\\' . ucfirst($col['type']);
89
+          $inputClassName = '\Ui\ActiveForm\Input\\'.ucfirst($col['type']);
90 90
           $input = new $inputClassName();
91 91
           $input->form = $this->form;
92 92
           $input->activeForm = $this->activeForm;
Please login to merge, or discard this patch.
system/modules/Ui/objects/ActiveForm/Input.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
   }
83 83
 
84 84
   public function colName() {
85
-    return "{$this->activeForm->requestFormName}[{$this->activeForm->modelName}]".(stristr($this->colName, '[')?$this->colName:"[{$this->colName}]");
85
+    return "{$this->activeForm->requestFormName}[{$this->activeForm->modelName}]".(stristr($this->colName, '[') ? $this->colName : "[{$this->colName}]");
86 86
   }
87 87
 
88 88
   public function colLabel() {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
   public function validate(&$request) {
98 98
     if (empty($request[$this->colName]) && !empty($this->colParams['required'])) {
99
-      throw new \Exception('Вы не заполнили: ' . $this->colLabel());
99
+      throw new \Exception('Вы не заполнили: '.$this->colLabel());
100 100
     }
101 101
     if (!empty($this->colParams['validator'])) {
102 102
       $modelName = $this->modelName;
Please login to merge, or discard this patch.
system/modules/Ecommerce/appAdminControllers/EcommerceController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
         unset($items[$key]);
76 76
         unset($item);
77 77
       }
78
-      echo 'Происходит процесс индексации: проиндексировано ' . $i * $count;
79
-      Tools::redirect('/admin/ecommerce/reSearchIndex/' . $i);
78
+      echo 'Происходит процесс индексации: проиндексировано '.$i * $count;
79
+      Tools::redirect('/admin/ecommerce/reSearchIndex/'.$i);
80 80
     }
81 81
   }
82 82
 
Please login to merge, or discard this patch.