Test Failed
Branch v5 (12d602)
by Alexey
04:51
created
system/modules/Money/widgets/cabinet/walletHistory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <h3>История счета</h3>
2 2
 <?php
3
-$currency_id = !empty($_GET['currency_id']) ? (int)$_GET['currency_id'] : 0;
3
+$currency_id = !empty($_GET['currency_id']) ? (int) $_GET['currency_id'] : 0;
4 4
 $wallets = App::$cur->money->getUserWallets();
5 5
 if ($currency_id && empty($wallets[$currency_id])) {
6 6
     Msg::add('У вас нет такого кошелька');
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@  discard block
 block discarded – undo
2 2
 <?php
3 3
 $currency_id = !empty($_GET['currency_id']) ? (int)$_GET['currency_id'] : 0;
4 4
 $wallets = App::$cur->money->getUserWallets();
5
-if ($currency_id && empty($wallets[$currency_id])) {
5
+if ($currency_id && empty($wallets[$currency_id])) {
6 6
     Msg::add('У вас нет такого кошелька');
7 7
     Msg::show();
8 8
     return;
9 9
 }
10 10
 
11
-if ($currency_id) {
11
+if ($currency_id) {
12 12
     $ids = $wallets[$currency_id]->id;
13
-} else {
13
+} else {
14 14
     $ids = [];
15
-    foreach ($wallets as $wallet) {
15
+    foreach ($wallets as $wallet) {
16 16
         $ids[] = $wallet->id;
17 17
     }
18 18
     $ids = implode(',', $ids);
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     'start' => $pages->params['start'],
34 34
     'limit' => $pages->params['limit'],
35 35
 ]);
36
-foreach ($histories as $history) {
36
+foreach ($histories as $history) {
37 37
     $amount = $history->amount ? $history->amount : $history->new - $history->old;
38 38
     $table->addRow([
39 39
         $history->id,
Please login to merge, or discard this patch.
system/modules/Geography/info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
     'widgets' => [
6 6
         'Geography\cityData' => [
7 7
             'name' => 'Вариатор данных по городам',
8
-            'params' => function() {
8
+            'params' => function () {
9 9
                 App::$cur->Ui;
10 10
                 \App::$cur->libs->loadLib('ckeditor');
11 11
                 $dataSets = Geography\City\Data::getList(['order' => ['code']]);
Please login to merge, or discard this patch.
system/modules/Notifications/install_script.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-return function($step = null, $params = []) {
3
+return function ($step = null, $params = []) {
4 4
     
5 5
 };
Please login to merge, or discard this patch.
extensions/Dashboard/snippets/adminDashboardWidget/userFormsStatistic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 return [
3
-    'widget' => function() {
3
+    'widget' => function () {
4 4
         ?>
5 5
         <div class="panel panel-default">
6 6
             <div class="panel-heading">Полученные формы</div>
Please login to merge, or discard this patch.
system/modules/Users/install_script.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-return function($step = NULL, $params = []) {
3
+return function ($step = NULL, $params = []) {
4 4
 
5 5
     $groups = [
6 6
         [
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-return function($step = NULL, $params = []) {
3
+return function($step = null, $params = []) {
4 4
 
5 5
     $groups = [
6 6
         [
Please login to merge, or discard this patch.
Users/extensions/Dashboard/snippets/adminDashboardWidget/userStatistic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 return [
3
-    'accessCheck' => function() {
3
+    'accessCheck' => function () {
4 4
         $dataManager = new \Ui\DataManager('Users\User');
5 5
         return $dataManager->checkAccess();
6 6
     },
7
-    'widget' => function() {
7
+    'widget' => function () {
8 8
         ?>
9 9
         <div class="panel panel-default">
10 10
             <div class="panel-heading">Пользователи</div>
Please login to merge, or discard this patch.
system/modules/Sitemap/Sitemap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");
38 38
         $root = $xml->appendChild($root);
39 39
 
40
-        $addToXml = function($xml, $parent, $nodeName, $text) {
40
+        $addToXml = function ($xml, $parent, $nodeName, $text) {
41 41
             $node = $parent->appendChild($xml->createElement($nodeName));
42 42
             $node->appendChild($xml->createTextNode($text));
43 43
             return $node;
Please login to merge, or discard this patch.
extensions/Dashboard/snippets/adminDashboardWidget/callbackStatistic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 return [
3
-    'widget' => function() {
3
+    'widget' => function () {
4 4
         ?>
5 5
         <div class="panel panel-default">
6 6
             <div class="panel-heading">Отзывы</div>
Please login to merge, or discard this patch.
extensions/Dashboard/snippets/adminDashboardWidget/materialsStatistic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 return [
3
-    'accessCheck' => function() {
3
+    'accessCheck' => function () {
4 4
         $dataManager = new \Ui\DataManager('Materials\Material');
5 5
         return $dataManager->checkAccess();
6 6
     },
7
-    'widget' => function() {
7
+    'widget' => function () {
8 8
         ?>
9 9
         <div class="panel panel-default">
10 10
             <div class="panel-heading">Материалы</div>
Please login to merge, or discard this patch.