Test Failed
Push — master ( b1d181...dfbb6d )
by Alexey
05:19
created
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.
system/modules/Materials/Materials.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         }
93 93
 
94 94
         $categorys = \Materials\Category::getList(['where' => ['parent_id', 0]]);
95
-        $scan = function($category, $scan) {
95
+        $scan = function ($category, $scan) {
96 96
             $map = [];
97 97
 
98 98
             foreach ($category->items as $mat) {
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.
system/modules/Materials/widgets/categoryTree.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
 
3 3
 $tree = new Ui\Tree();
4
-$tree->itemBodyFn = function($category) {
4
+$tree->itemBodyFn = function ($category) {
5 5
     return Html::el('a', ['href' => $category->getHref()], $category->name());
6 6
 };
7
-$tree->itemActiveCheck = function($curCategory) use($category) {
7
+$tree->itemActiveCheck = function ($curCategory) use($category) {
8 8
     return $curCategory->id == $category->id || strpos($curCategory->tree_path, "/{$category->id}/") !== false;
9 9
 };
10 10
 $tree->draw($category->getRoot());
Please login to merge, or discard this patch.
system/modules/Ecommerce/snippets/payTypeHandler/onlinePay.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
 
3 3
 return [
4 4
     'name' => 'Онлайн оплата',
5
-    'handler' => function($cart) {
5
+    'handler' => function ($cart) {
6 6
         if (\App::$cur->money) {
7 7
             $sums = $cart->finalSum();
8 8
             foreach ($sums->sums as $currency_id => $sum) {
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/categorys.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
         $category = [];
5 5
     }
6 6
     $tree = new Ui\Tree();
7
-    $tree->ul('\Ecommerce\Category', 0, function($categoryItem) use($category) {
7
+    $tree->ul('\Ecommerce\Category', 0, function ($categoryItem) use($category) {
8 8
         if ($category && $category->id == $categoryItem->id) {
9 9
             $class = 'active';
10 10
         } else {
Please login to merge, or discard this patch.
system/modules/Ui/Extensions/Access/snippets/accessGetter/Ui_ActiveForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  */
11 11
 return [
12 12
     'classes' => ['Ui\ActiveForm'],
13
-    'get' => function($element) {
13
+    'get' => function ($element) {
14 14
 $access = null;
15 15
 $path = [
16 16
     'models',
Please login to merge, or discard this patch.
modules/Ui/Extensions/Access/snippets/accessGetter/Ui_DataManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  */
11 11
 return [
12 12
     'classes' => ['Ui\DataManager'],
13
-    'get' => function($element) {
13
+    'get' => function ($element) {
14 14
 $access = null;
15 15
 $path = [
16 16
     'models',
Please login to merge, or discard this patch.
system/modules/Ui/objects/Tree.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     public static function ul($objectRoot, $maxDeep = 0, $hrefFunc = null, $order = [], $activeFunc = '', $activeClass = 'active') {
63 63
         $count = 0;
64 64
         if (!$hrefFunc) {
65
-            $hrefFunc = function($object) {
65
+            $hrefFunc = function ($object) {
66 66
                 return "<a href='#'> {$object->name()}</a>";
67 67
             };
68 68
         }
Please login to merge, or discard this patch.