Passed
Push — v5 ( e348bf...8a8f01 )
by Alexey
06:35
created
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.
tests/Inji/InjiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
      * @covers Inji::unlisten
9 9
      */
10 10
     public function testNotSavingEvent() {
11
-        \Inji::$inst->listen('testEvent', 'testCallback', function() {
11
+        \Inji::$inst->listen('testEvent', 'testCallback', function () {
12 12
             return true;
13 13
         });
14 14
         $this->assertEquals(true, Inji::$inst->event('testEvent'));
Please login to merge, or discard this patch.
system/program/admin/templates/default/config.php 2 patches
Indentation   +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.
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/Ui/widgets/Slider.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@  discard block
 block discarded – undo
5 5
   <?php if (empty($noIndicators)) { ?>
6 6
         <ol class="carousel-indicators">
7 7
           <?php
8
-          $i = 0;
9
-          for ($i = 0; $i < count($slides); $i++) {
10
-              ?>
8
+            $i = 0;
9
+            for ($i = 0; $i < count($slides); $i++) {
10
+                ?>
11 11
                 <li data-target="#<?= $id; ?>" data-slide-to="<?= $i; ?>" <?= !$i ? 'class="active"' : ''; ?>></li>
12 12
                 <?php
13 13
             }
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
     <!-- Wrapper for slides -->
19 19
     <div class="carousel-inner" role="listbox">
20 20
       <?php
21
-      $i = 0;
22
-      foreach ($slides as $item) {
23
-          ?>
21
+        $i = 0;
22
+        foreach ($slides as $item) {
23
+            ?>
24 24
             <div class="item <?= !$i ? 'active' : ''; ?>">
25 25
               <?= !empty($item['href']) ? "<a href = '{$item['href']}' style = 'display:inline-block;'>" : ''; ?>
26 26
                 <img src="<?= $item['image']; ?>" <?= !empty($item['image']) ? 'alt="' . $item['name'] . '"' : ''; ?> />
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.
system/modules/Migrations/install_script.php 1 patch
Upper-Lower-Casing   +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.
system/modules/UserForms/install_script.php 1 patch
Upper-Lower-Casing   +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.
system/modules/Money/widgets/cabinet/walletsWidget.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 <?php
3 3
 $blocked = App::$cur->money->getUserBlocks();
4 4
 $wallets = App::$cur->money->getUserWallets();
5
-foreach ($wallets as $wallet) {
5
+foreach ($wallets as $wallet) {
6 6
     ?>
7 7
     <b><?= $wallet->showAmount(); ?></b> <?= $wallet->currency->acronym(); ?><br/>
8 8
     <?php
Please login to merge, or discard this patch.
system/modules/Sliders/install_script.php 1 patch
Upper-Lower-Casing   +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.