Test Failed
Push — master ( b1d181...dfbb6d )
by Alexey
05:19
created
tests/init.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 define('INJI_DOMAIN_NAME', 'test.app');
17 17
 
18
-spl_autoload_register(function($class_name) {
18
+spl_autoload_register(function ($class_name) {
19 19
     if (file_exists(INJI_SYSTEM_DIR . '/Inji/' . $class_name . '.php')) {
20 20
         include_once INJI_SYSTEM_DIR . '/Inji/' . $class_name . '.php';
21 21
     }
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 //load core
25 25
 Inji::$inst = new Inji();
26 26
 Inji::$config = Config::system();
27
-Inji::$inst->listen('Config-change-system', 'systemConfig', function($event) {
27
+Inji::$inst->listen('Config-change-system', 'systemConfig', function ($event) {
28 28
     Inji::$config = $event['eventObject'];
29 29
     return $event['eventObject'];
30 30
 });
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 App::$cur->params = [];
46 46
 App::$cur->config = Config::app(App::$cur);
47 47
 App::$primary = App::$cur;
48
-Inji::$inst->listen('Config-change-app-' . App::$cur->name, 'curAppConfig', function($event) {
48
+Inji::$inst->listen('Config-change-app-' . App::$cur->name, 'curAppConfig', function ($event) {
49 49
     App::$cur->config = $event['eventObject'];
50 50
     return $event['eventObject'];
51 51
 });
Please login to merge, or discard this patch.
system/program/admin/templates/default/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
     'file' => 'index.html',
6 6
     'css' => ['style.css'],
7 7
     'libs' => [
8
-       'JqueryUi',  'PaperTheme','FancyBox'
8
+       'JqueryUi', 'PaperTheme', 'FancyBox'
9 9
     ]
10 10
 ];
Please login to merge, or discard this patch.
system/modules/Modules/Modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     }
24 24
 
25 25
     public function parseColsForModel($cols = []) {
26
-        $modelCols = [ 'labels' => [], 'cols' => [], 'relations' => []];
26
+        $modelCols = ['labels' => [], 'cols' => [], 'relations' => []];
27 27
         foreach ($cols as $col) {
28 28
             $modelCols['labels'][$col['code']] = $col['label'];
29 29
             $colType = !empty($col['type']['primary']) ? $col['type']['primary'] : $col['type'];
Please login to merge, or discard this patch.
index.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
     }
38 38
 }
39 39
 
40
-require_once( INJI_SYSTEM_DIR . '/init.php' );
40
+require_once(INJI_SYSTEM_DIR . '/init.php');
41 41
 
42 42
 /**
43 43
  * System error messages
Please login to merge, or discard this patch.
system/modules/Materials/migrations/addPublishDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'up' => function() {
4
+    'up' => function () {
5 5
         Materials\Material::createCol('date_publish');
6 6
         foreach (Materials\Material::getList() as $material) {
7 7
             $material->date_publish = $material->date_create;
Please login to merge, or discard this patch.
system/modules/Materials/appControllers/MaterialsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
                     $this->categoryAction($category->id);
57 57
                 }
58 58
             }
59
-        } elseif(!$material) {
59
+        } elseif (!$material) {
60 60
             $material = Materials\Material::get(1, 'default');
61 61
         }
62 62
         if ($material) {
Please login to merge, or discard this patch.
system/modules/Menu/models/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                 'type' => 'many',
65 65
                 'model' => 'Menu\Item',
66 66
                 'col' => 'Menu_id',
67
-                'where'=>[['parent_id',0]]
67
+                'where'=>[['parent_id', 0]]
68 68
             ],
69 69
             'group' => [
70 70
                 'col' => 'group_id',
Please login to merge, or discard this patch.
system/modules/Menu/widgets/menuCollapse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
     $code = 'main';
7 7
 }
8 8
 $uid = Tools::randomString();
9
-$childDraws = function($item, $childDraws, $uid, $activeFind) {
9
+$childDraws = function ($item, $childDraws, $uid, $activeFind) {
10 10
     if ($item->childs(['order' => ['weight', 'asc']])) {
11 11
         echo "<ul class ='dropdown-menu'>";
12 12
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         echo "</ul>";
24 24
     }
25 25
 };
26
-$activeFind = function($item, $activeFind) {
26
+$activeFind = function ($item, $activeFind) {
27 27
     foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) {
28 28
         if (urldecode($_SERVER['REQUEST_URI']) == $item->href) {
29 29
             return true;
Please login to merge, or discard this patch.
system/modules/Menu/widgets/menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 if (empty($code)) {
7 7
     $code = 'main';
8 8
 }
9
-$childDraws = function($item, $childDraws, $activeFind) {
9
+$childDraws = function ($item, $childDraws, $activeFind) {
10 10
     if ($item->childs(['order' => ['weight', 'asc']])) {
11 11
         echo "<ul class ='list-unstyled'>";
12 12
         foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) {
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         echo "</ul>";
22 22
     }
23 23
 };
24
-$activeFind = function($item, $activeFind) {
24
+$activeFind = function ($item, $activeFind) {
25 25
     foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) {
26 26
         if (urldecode($_SERVER['REQUEST_URI']) == $item->href) {
27 27
             return true;
Please login to merge, or discard this patch.