Completed
Branch master (ebb499)
by Alexey
04:15
created
system/modules/Modules/Modules.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     function parseColsForModel($cols = [])
27 27
     {
28
-        $modelCols = [ 'labels' => [], 'cols' => [], 'relations' => []];
28
+        $modelCols = ['labels' => [], 'cols' => [], 'relations' => []];
29 29
         foreach ($cols as $col) {
30 30
             $modelCols['labels'][$col['code']] = $col['label'];
31 31
             $colType = !empty($col['type']['primary']) ? $col['type']['primary'] : $col['type'];
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,8 @@
 block discarded – undo
87 87
         foreach ($this->currencies as $merchantCurrency) {
88 88
             if ($merchantCurrency->currency_id == $pay->currency_id) {
89 89
                 $allowCurrencies[] = ['type' => 'primary', 'currency' => $merchantCurrency->currency];
90
-            } else {
90
+            }
91
+            else {
91 92
                 $transfer = Currency\ExchangeRate::get([['currency_id', $merchantCurrency->currency_id], ['target_currency_id', $pay->currency_id]]);
92 93
                 if ($transfer) {
93 94
                     $allowCurrencies[] = ['type' => 'transfer', 'currency' => $merchantCurrency->currency, 'transfer' => $transfer];
Please login to merge, or discard this patch.
system/modules/Ui/objects/ActiveForm.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
                             $this->model->_params[$modelName::index()] = 0;
74 74
                         }
75 75
                         $relOptions['model']::fixPrefix($relOptions['col']);
76
-                        $inputs[$col] = new ActiveForm(new $relOptions['model']([ $relOptions['col'] => &$this->model->_params[$modelName::index()]]), $colPath[2]);
76
+                        $inputs[$col] = new ActiveForm(new $relOptions['model']([$relOptions['col'] => &$this->model->_params[$modelName::index()]]), $colPath[2]);
77 77
                     }
78 78
                     $inputs[$col]->parent = $this;
79 79
                 } elseif (!empty($modelName::$cols[$col])) {
Please login to merge, or discard this patch.
Braces   +32 added lines, -16 removed lines patch added patch discarded remove patch
@@ -35,7 +35,8 @@  discard block
 block discarded – undo
35 35
             if (is_string($form)) {
36 36
                 $this->formName = $form;
37 37
             }
38
-        } else {
38
+        }
39
+        else {
39 40
             $this->model = $model;
40 41
             $this->modelName = get_class($model);
41 42
             if (is_array($form)) {
@@ -43,7 +44,8 @@  discard block
 block discarded – undo
43 44
                     throw new \Exception('empty form');
44 45
                 }
45 46
                 $this->form = $form;
46
-            } else {
47
+            }
48
+            else {
47 49
                 $this->formName = $form;
48 50
                 $this->form = \App::$cur->ui->getModelForm($this->modelName, $form);
49 51
                 if (empty($this->form)) {
@@ -57,9 +59,11 @@  discard block
 block discarded – undo
57 59
 
58 60
         if (!empty($this->form['name'])) {
59 61
             $this->header = $this->form['name'];
60
-        } elseif (!empty($modeName::$objectName)) {
62
+        }
63
+        elseif (!empty($modeName::$objectName)) {
61 64
             $this->header = $modeName::$objectName;
62
-        } else {
65
+        }
66
+        else {
63 67
             $this->header = $this->modelName;
64 68
         }
65 69
     }
@@ -76,7 +80,8 @@  discard block
 block discarded – undo
76 80
                     $colPath = explode(':', $col);
77 81
                     if ($this->model->{$colPath[1]}) {
78 82
                         $inputs[$col] = new ActiveForm($this->model->{$colPath[1]}, $colPath[2]);
79
-                    } else {
83
+                    }
84
+                    else {
80 85
                         $relOptions = $modelName::getRelation($colPath[1]);
81 86
                         if (!isset($this->model->_params[$modelName::index()])) {
82 87
                             $this->model->_params[$modelName::index()] = 0;
@@ -85,7 +90,8 @@  discard block
 block discarded – undo
85 90
                         $inputs[$col] = new ActiveForm(new $relOptions['model']([ $relOptions['col'] => &$this->model->_params[$modelName::index()]]), $colPath[2]);
86 91
                     }
87 92
                     $inputs[$col]->parent = $this;
88
-                } elseif (!empty($modelName::$cols[$col])) {
93
+                }
94
+                elseif (!empty($modelName::$cols[$col])) {
89 95
                     $inputs[$col] = $modelName::$cols[$col];
90 96
                 }
91 97
             }
@@ -108,7 +114,8 @@  discard block
 block discarded – undo
108 114
                     $text = 'Новый элемент был успешно добавлен';
109 115
                     \Msg::add($text, 'success');
110 116
                     \Msg::show();
111
-                } else {
117
+                }
118
+                else {
112 119
                     $presets = !empty($this->form['preset']) ? $this->form['preset'] : [];
113 120
                     if (!empty($this->form['userGroupPreset'][\Users\User::$cur->group_id])) {
114 121
                         $presets = array_merge($presets, $this->form['userGroupPreset'][\Users\User::$cur->group_id]);
@@ -145,12 +152,14 @@  discard block
 block discarded – undo
145 152
                         foreach ($presets as $col => $preset) {
146 153
                             if (!empty($preset['value'])) {
147 154
                                 $this->model->$col = $preset['value'];
148
-                            } elseif (!empty($preset['userCol'])) {
155
+                            }
156
+                            elseif (!empty($preset['userCol'])) {
149 157
                                 if (strpos($preset['userCol'], ':')) {
150 158
                                     $rel = substr($preset['userCol'], 0, strpos($preset['userCol'], ':'));
151 159
                                     $param = substr($preset['userCol'], strpos($preset['userCol'], ':') + 1);
152 160
                                     $this->model->$col = \Users\User::$cur->$rel->$param;
153
-                                } else {
161
+                                }
162
+                                else {
154 163
                                     $this->model->$col = \Users\User::$cur->{$preset['userCol']};
155 164
                                 }
156 165
                             }
@@ -158,7 +167,8 @@  discard block
 block discarded – undo
158 167
                         if (!$this->parent) {
159 168
                             if (!empty($this->form['successText'])) {
160 169
                                 $text = $this->form['successText'];
161
-                            } else {
170
+                            }
171
+                            else {
162 172
                                 $text = $this->model->pk() ? 'Изменения были успешно сохранены' : 'Новый элемент был успешно добавлен';
163 173
                             }
164 174
                             \Msg::add($text, 'success');
@@ -170,7 +180,8 @@  discard block
 block discarded – undo
170 180
                         }
171 181
                         if ($ajax) {
172 182
                             \Msg::show();
173
-                        } elseif (!empty($_GET['redirectUrl'])) {
183
+                        }
184
+                        elseif (!empty($_GET['redirectUrl'])) {
174 185
                             \Tools::redirect($_GET['redirectUrl'] . (!empty($_GET['dataManagerHash']) ? '#' . $_GET['dataManagerHash'] : ''));
175 186
                         }
176 187
                         $successId = $this->model->pk();
@@ -196,7 +207,8 @@  discard block
 block discarded – undo
196 207
     public function drawCol($colName, $options, $form, $params = []) {
197 208
         if (is_object($options)) {
198 209
             $options->draw();
199
-        } else {
210
+        }
211
+        else {
200 212
             $inputClassName = '\Ui\ActiveForm\Input\\' . ucfirst($options['type']);
201 213
             $input = new $inputClassName();
202 214
             $input->form = $form;
@@ -223,7 +235,8 @@  discard block
 block discarded – undo
223 235
             case 'method':
224 236
                 if (!empty($inputParams['params'])) {
225 237
                     $values = call_user_func_array([\App::$cur->$inputParams['module'], $inputParams['method']], $inputParams['params']);
226
-                } else {
238
+                }
239
+                else {
227 240
                     $values = \App::$cur->$inputParams['module']->$inputParams['method']();
228 241
                 }
229 242
                 break;
@@ -254,7 +267,8 @@  discard block
 block discarded – undo
254 267
                 }
255 268
                 if (!empty($params['noEmptyValue'])) {
256 269
                     $values = [];
257
-                } else {
270
+                }
271
+                else {
258 272
                     $values = [0 => 'Не задано'];
259 273
                 }
260 274
                 foreach ($items as $key => $item) {
@@ -265,10 +279,12 @@  discard block
 block discarded – undo
265 279
                                     $values[$key] = $inputParams['showCol']['class']::{$inputParams['showCol']['method']}($item);
266 280
                                     break;
267 281
                             }
268
-                        } else {
282
+                        }
283
+                        else {
269 284
                             $values[$key] = $item->$inputParams['showCol'];
270 285
                         }
271
-                    } else {
286
+                    }
287
+                    else {
272 288
                         $values[$key] = $item->name();
273 289
                     }
274 290
                 }
Please login to merge, or discard this patch.
system/modules/Ui/widgets/DataManager/DataManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     'style' => ''
23 23
 ];
24 24
 if (!empty($dataManager->managerOptions['categorys'])) {
25
-    $mainCol['style'].='margin-left:260px;';
25
+    $mainCol['style'] .= 'margin-left:260px;';
26 26
     echo '<div class ="pull-left dataManager-categorys" style = "width:250px;">';
27 27
     $this->widget('Ui\DataManager/categorys', compact('dataManager'));
28 28
     echo '</div>';
Please login to merge, or discard this patch.
system/modules/UserForms/UserForms.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
                 $text = '';
44 44
                 foreach ($form->inputs as $input) {
45 45
                     if (isset($inputs['input' . $input->id])) {
46
-                        $text .="<b>{$input->label}:</b> " . htmlspecialchars($inputs['input' . $input->id]) . "<br />";
46
+                        $text .= "<b>{$input->label}:</b> " . htmlspecialchars($inputs['input' . $input->id]) . "<br />";
47 47
                     }
48 48
                 }
49 49
                 if ($text) {
Please login to merge, or discard this patch.
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,8 +15,9 @@  discard block
 block discarded – undo
15 15
         if (!empty($_POST['UserForms'])) {
16 16
             foreach ($_POST['UserForms'] as $form_id => $inputs) {
17 17
                 $form = \UserForms\Form::get((int) $form_id);
18
-                if (!$form)
19
-                    continue;
18
+                if (!$form) {
19
+                                    continue;
20
+                }
20 21
                 $formRecive = new \UserForms\Recive();
21 22
                 $formRecive->user_id = (int) \Users\User::$cur->id;
22 23
                 $formRecive->form_id = (int) $form_id;
@@ -25,10 +26,12 @@  discard block
 block discarded – undo
25 26
                 foreach ($form->inputs as $input) {
26 27
                     if (isset($inputs['input' . $input->id])) {
27 28
                         $data['input' . $input->id] = htmlspecialchars($inputs['input' . $input->id]);
28
-                    } elseif ($input->required) {
29
+                    }
30
+                    elseif ($input->required) {
29 31
                         $error = true;
30 32
                         Msg::add('Вы не заполнили поле: ' . $input->label);
31
-                    } else {
33
+                    }
34
+                    else {
32 35
                         $data['input' . $input->id] = '';
33 36
                     }
34 37
                 }
Please login to merge, or discard this patch.
system/modules/Users/Users.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
             $to = $user_mail;
297 297
             $subject = 'Регистрация на сайте ' . idn_to_utf8(INJI_DOMAIN_NAME);
298 298
             $text = 'Вы были зарегистрированы на сайте ' . idn_to_utf8(INJI_DOMAIN_NAME) . '<br />для входа используйте ваш почтовый ящик в качестве логина и пароль: ' . $pass;
299
-            $text .='<br />';
299
+            $text .= '<br />';
300 300
             $text .= '<br />';
301 301
             $text .= 'Для активации вашего аккаунта перейдите по ссылке <a href = "http://' . INJI_DOMAIN_NAME . '/users/activation/' . $user->id . '/' . $user->activation . '">http://' . idn_to_utf8(INJI_DOMAIN_NAME) . '/users/activation/' . $user->id . '/' . $user->activation . '</a>';
302 302
             Tools::sendMail($from, $to, $subject, $text);
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -116,6 +116,9 @@  discard block
 block discarded – undo
116 116
         }
117 117
     }
118 118
 
119
+    /**
120
+     * @param string $user_mail
121
+     */
119 122
     public function passre($user_mail) {
120 123
         $user = $this->get($user_mail, 'mail');
121 124
         if (!$user) {
@@ -400,6 +403,9 @@  discard block
 block discarded – undo
400 403
         return $return;
401 404
     }
402 405
 
406
+    /**
407
+     * @param integer $cat_id
408
+     */
403 409
     public function addUserActivity($user_id, $cat_id, $text = '') {
404 410
         $ua = new Users\Activity([
405 411
             'user_id' => $user_id,
Please login to merge, or discard this patch.
Braces   +33 added lines, -19 removed lines patch added patch discarded remove patch
@@ -98,7 +98,8 @@  discard block
 block discarded – undo
98 98
                     setcookie($this->cookiePrefix . "_user_id", '', 0, "/");
99 99
                 }
100 100
                 Tools::redirect('/', 'Этот аккаунт ещё не активирован. <br />Если вы не получали письмо с ссылкой для активации, нажмите на - <a href = "/users/resendActivation/' . $session->user->id . '"><b>повторно выслать ссылку активации</b></a>');
101
-            } elseif ($session->user->activation) {
101
+            }
102
+            elseif ($session->user->activation) {
102 103
                 Msg::add('Этот аккаунт ещё не активирован, не все функции могут быть доступны. <br />Если вы не получали письмо с ссылкой для активации, нажмите на - <a href = "/users/resendActivation/' . $session->user->id . '"><b>повторно выслать ссылку активации</b></a>');
103 104
             }
104 105
             if (!$session->user->mail && !empty($this->config['noMailNotify'])) {
@@ -107,7 +108,8 @@  discard block
 block discarded – undo
107 108
             Users\User::$cur = $session->user;
108 109
             Users\User::$cur->date_last_active = 'CURRENT_TIMESTAMP';
109 110
             Users\User::$cur->save();
110
-        } else {
111
+        }
112
+        else {
111 113
             if (!headers_sent()) {
112 114
                 setcookie($this->cookiePrefix . "_user_session_hash", '', 0, "/");
113 115
                 setcookie($this->cookiePrefix . "_user_id", '', 0, "/");
@@ -160,7 +162,8 @@  discard block
 block discarded – undo
160 162
         if ($user && $this->verifypass($pass, $user->pass) && !$user->blocked) {
161 163
             if (!empty($this->config['needActivation']) && $user->activation) {
162 164
                 Tools::redirect('/', 'Этот аккаунт ещё не активирован. <br />Если вы не получали письмо с ссылкой для активации, нажмите на - <a href = "/users/resendActivation/' . $user->id . '"><b>повторно выслать ссылку активации</b></a>');
163
-            } elseif ($user->activation) {
165
+            }
166
+            elseif ($user->activation) {
164 167
                 Msg::add('Этот аккаунт ещё не активирован, не все функции могут быть доступны. <br />Если вы не получали письмо с ссылкой для активации, нажмите на - <a href = "/users/resendActivation/' . $user->id . '"><b>повторно выслать ссылку активации</b></a>');
165 168
             }
166 169
             if (!$user->mail && !empty($this->config['noMailNotify'])) {
@@ -179,9 +182,11 @@  discard block
 block discarded – undo
179 182
         if (!$noMsg) {
180 183
             if ($user && $user->blocked) {
181 184
                 Msg::add('Вы заблокированы', 'danger');
182
-            } elseif ($user) {
185
+            }
186
+            elseif ($user) {
183 187
                 Msg::add('Вы ошиблись при наборе пароля или логина, попробуйте ещё раз или воспользуйтесь <a href = "?passre=1&user_mail=' . $user->mail . '">Восстановлением пароля</a>', 'danger');
184
-            } else {
188
+            }
189
+            else {
185 190
                 Msg::add('Данный почтовый ящик не зарегистрирован в системе', 'danger');
186 191
             }
187 192
         }
@@ -204,7 +209,8 @@  discard block
 block discarded – undo
204 209
         if (!headers_sent()) {
205 210
             setcookie($this->cookiePrefix . "_user_session_hash", $session->hash, time() + 360000, "/");
206 211
             setcookie($this->cookiePrefix . "_user_id", $session->user_id, time() + 360000, "/");
207
-        } else {
212
+        }
213
+        else {
208 214
             Msg::add('Не удалось провести авторизацию. Попробуйте позже', 'info');
209 215
         }
210 216
     }
@@ -217,17 +223,22 @@  discard block
 block discarded – undo
217 223
      * @return boolean|\User\User
218 224
      */
219 225
     public function get($idn, $ltype = 'id') {
220
-        if (!$idn)
221
-            return false;
226
+        if (!$idn) {
227
+                    return false;
228
+        }
222 229
 
223
-        if (is_numeric($idn) && $ltype != 'login')
224
-            $user = Users\User::get($idn, 'id');
225
-        elseif ($ltype == 'login')
226
-            $user = Users\User::get($idn, 'login');
227
-        else
228
-            $user = Users\User::get($idn, 'mail');
229
-        if (!$user)
230
-            return [];
230
+        if (is_numeric($idn) && $ltype != 'login') {
231
+                    $user = Users\User::get($idn, 'id');
232
+        }
233
+        elseif ($ltype == 'login') {
234
+                    $user = Users\User::get($idn, 'login');
235
+        }
236
+        else {
237
+                    $user = Users\User::get($idn, 'mail');
238
+        }
239
+        if (!$user) {
240
+                    return [];
241
+        }
231 242
 
232 243
         return $user;
233 244
     }
@@ -309,7 +320,8 @@  discard block
 block discarded – undo
309 320
                 return false;
310 321
             }
311 322
             $pass = $data['user_pass'][0];
312
-        } else {
323
+        }
324
+        else {
313 325
             $pass = Tools::randomString(10);
314 326
         }
315 327
 
@@ -355,7 +367,8 @@  discard block
 block discarded – undo
355 367
             $text .= 'Для активации вашего аккаунта перейдите по ссылке <a href = "http://' . INJI_DOMAIN_NAME . '/users/activation/' . $user->id . '/' . $user->activation . '">http://' . idn_to_utf8(INJI_DOMAIN_NAME) . '/users/activation/' . $user->id . '/' . $user->activation . '</a>';
356 368
             Tools::sendMail($from, $to, $subject, $text);
357 369
             Msg::add('Вы были зарегистрированы. На указанный почтовый ящик был выслан ваш пароль и ссылка для активации', 'success');
358
-        } else {
370
+        }
371
+        else {
359 372
             $from = 'noreply@' . INJI_DOMAIN_NAME;
360 373
             $to = $data['user_mail'];
361 374
             $subject = 'Регистрация на сайте ' . idn_to_utf8(INJI_DOMAIN_NAME);
@@ -387,7 +400,8 @@  discard block
 block discarded – undo
387 400
             if (!$userIds && $levels) {
388 401
                 $levels[$i] = [];
389 402
                 continue;
390
-            } elseif (!$userIds && !$levels) {
403
+            }
404
+            elseif (!$userIds && !$levels) {
391 405
                 break;
392 406
             }
393 407
             $usersLevel = \Users\User::getList(['where' => [['parent_id', $userIds, 'IN']]]);
Please login to merge, or discard this patch.
system/modules/Users/models/User/Info.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,13 +97,13 @@
 block discarded – undo
97 97
         if ($this->first_name . $this->last_name . $this->middle_name) {
98 98
             $name = '';
99 99
             if ($this->first_name) {
100
-                $name.=$this->first_name;
100
+                $name .= $this->first_name;
101 101
             }
102 102
             if ($this->middle_name) {
103
-                $name.=($name ? ' ' : '') . $this->middle_name;
103
+                $name .= ($name ? ' ' : '') . $this->middle_name;
104 104
             }
105 105
             if ($this->last_name) {
106
-                $name.=($name ? ' ' : '') . $this->last_name;
106
+                $name .= ($name ? ' ' : '') . $this->last_name;
107 107
             }
108 108
             return $name;
109 109
         } else {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
         $code .= '$' . $this->name . ' = ';
25 25
         if (is_array($this->value)) {
26 26
             $code .= \CodeGenerator::genArray($this->value);
27
-        } else {
27
+        }
28
+        else {
28 29
             $code .= '"' . str_replace('"', '\"', $this->value) . '";';
29 30
         }
30 31
         return $code;
Please login to merge, or discard this patch.
system/modules/Users/widgets/cabinet/usersTree.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 if (!empty($_POST['partnerInvite']['email'])) {
3 3
     $title = '';
4 4
     if (!empty($_POST['partnerInvite']['name'])) {
5
-        $title .='Ув. ' . htmlspecialchars($_POST['partnerInvite']['name']) . '. ';
5
+        $title .= 'Ув. ' . htmlspecialchars($_POST['partnerInvite']['name']) . '. ';
6 6
     }
7 7
     if (!filter_var($_POST['partnerInvite']['email'], FILTER_VALIDATE_EMAIL)) {
8 8
         Tools::redirect(null, 'Вы ввели не корректный E-mail', 'danger');
Please login to merge, or discard this patch.
system/objects/CodeGenerator.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
         if ($level == 0)
17 17
             $return = "[";
18 18
         foreach ($data as $key => $item) {
19
-            $return .= "\n" . str_repeat(' ', ( $level * 4 + 4)) . "'{$key}' => ";
19
+            $return .= "\n" . str_repeat(' ', ($level * 4 + 4)) . "'{$key}' => ";
20 20
             if (!is_array($item))
21 21
                 $return .= "'{$item}',";
22 22
             else {
23 23
                 $return .= "[";
24 24
                 $return .= rtrim(self::genArray($item, $level + 1), ',');
25
-                $return .= "\n" . str_repeat(' ', ( $level * 4 + 4)) . "],";
25
+                $return .= "\n" . str_repeat(' ', ($level * 4 + 4)) . "],";
26 26
             }
27 27
         }
28 28
         if ($level == 0)
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,20 +12,23 @@
 block discarded – undo
12 12
 
13 13
     public static function genArray($data, $level = 0) {
14 14
         $return = '';
15
-        if ($level == 0)
16
-            $return = "[";
15
+        if ($level == 0) {
16
+                    $return = "[";
17
+        }
17 18
         foreach ($data as $key => $item) {
18 19
             $return .= "\n" . str_repeat(' ', ( $level * 4 + 4)) . "'{$key}' => ";
19
-            if (!is_array($item))
20
-                $return .= "'{$item}',";
20
+            if (!is_array($item)) {
21
+                            $return .= "'{$item}',";
22
+            }
21 23
             else {
22 24
                 $return .= "[";
23 25
                 $return .= rtrim(self::genArray($item, $level + 1), ',');
24 26
                 $return .= "\n" . str_repeat(' ', ( $level * 4 + 4)) . "],";
25 27
             }
26 28
         }
27
-        if ($level == 0)
28
-            $return = rtrim($return, ',') . "\n];";
29
+        if ($level == 0) {
30
+                    $return = rtrim($return, ',') . "\n];";
31
+        }
29 32
 
30 33
         return $return;
31 34
     }
Please login to merge, or discard this patch.
system/objects/CodeGenerator/Method.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
             $code .= '$' . $param . ',';
29 29
         }
30 30
         $code = rtrim($code, ',');
31
-        $code.= ") {\n";
32
-        $code.= '    ' . str_replace("\n", "\n    ", $this->body);
33
-        $code .="\n}";
31
+        $code .= ") {\n";
32
+        $code .= '    ' . str_replace("\n", "\n    ", $this->body);
33
+        $code .= "\n}";
34 34
         return $code;
35 35
     }
36 36
 
Please login to merge, or discard this patch.