Passed
Push — master ( 518251...f55220 )
by Alexey
04:52
created
system/modules/Money/snippets/rewardTriggerHandler/usersReward.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($user, $trigger) {
5
+    'handler' => function ($user, $trigger) {
6 6
         App::$cur->money->reward($trigger->reward_id, [], $user);
7 7
     }
8 8
         ];
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/Files/install_script.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
 
3
-return function($step = null, $params = []) {
3
+return function ($step = null, $params = []) {
4 4
     $options = ['max_height' => 1200, 'max_width' => 1200];
5 5
     $types = [
6 6
         [
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.
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/Ecommerce.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
         }
336 336
 
337 337
         $categorys = \Ecommerce\Category::getList(['where' => ['parent_id', 0]]);
338
-        $scan = function($category, $scan) {
338
+        $scan = function ($category, $scan) {
339 339
             $map = [];
340 340
 
341 341
             foreach ($category->items as $item) {
Please login to merge, or discard this patch.
system/modules/Ecommerce/appControllers/EcommerceController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         $user = Users\User::$cur;
18 18
         if (!empty($_POST) && !empty($_POST['card_id'])) {
19 19
             $error = false;
20
-            $card = \Ecommerce\Card::get((int)$_POST['card_id']);
20
+            $card = \Ecommerce\Card::get((int) $_POST['card_id']);
21 21
             if (!$card) {
22 22
                 $error = true;
23 23
                 Msg::add('Такой карты не существует', 'danger');
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         //search
104 104
         if (!empty($_GET['search'])) {
105 105
             if (!empty($_GET['inCatalog'])) {
106
-                $category_id = (int)$_GET['inCatalog'];
106
+                $category_id = (int) $_GET['inCatalog'];
107 107
             }
108 108
             $search = $_GET['search'];
109 109
         } else {
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     }
210 210
 
211 211
     public function viewAction($id = '', $quick = 0) {
212
-        $item = \Ecommerce\Item::get((int)$id);
212
+        $item = \Ecommerce\Item::get((int) $id);
213 213
         if (!$item) {
214 214
             Tools::redirect('/ecommerce/', 'Такой товар не найден');
215 215
         }
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         $bread[] = ['text' => $item->name()];
229 229
         $this->view->setTitle($item->name());
230 230
         $options = [
231
-            'data' => compact('item', 'active', 'catalog', 'bread','quick'),
231
+            'data' => compact('item', 'active', 'catalog', 'bread', 'quick'),
232 232
             'content' => $item->view ? $item->view : 'view',
233 233
         ];
234 234
         if (isset($_GET['quickview'])) {
Please login to merge, or discard this patch.