Passed
Push — master ( a8c1a4...28204f )
by Iman
06:59 queued 03:20
created
src/CBCoreModule/Index/ValueCalculator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     private function download($value)
47 47
     {
48 48
         $url = (strpos($value, 'http://')) ? $value : asset($value).'?download=1';
49
-        if (! $value) {
49
+        if (!$value) {
50 50
             return " - ";
51 51
         }
52 52
         return "<a class='btn btn-xs btn-primary' href='$url' target='_blank' title='Download File'><i class='fa fa-download'>".cbTrans('button_download_file')."</i></a>";
Please login to merge, or discard this patch.
src/CBCoreModule/Index/FilterIndexRows.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     function filterIndexRows($result, $filterColumn)
13 13
     {
14 14
         $filter_is_orderby = false;
15
-        $result->where(function ($query) use ($filterColumn) {
15
+        $result->where(function($query) use ($filterColumn) {
16 16
             foreach ($filterColumn as $key => $fc) {
17 17
 
18 18
                 $value = @$fc['value'];
Please login to merge, or discard this patch.
src/CBCoreModule/RelationHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         //Looping Data Input Again After Insert
19 19
         foreach ($data as $row) {
20 20
             $name = $row['name'];
21
-            if (! $name) {
21
+            if (!$name) {
22 22
                 continue;
23 23
             }
24 24
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         list($pivotTable, $foreignKey2, $foreignKey) = $this->deleteFromPivot($row, $id);
56 56
 
57
-        if (! $inputData) {
57
+        if (!$inputData) {
58 58
             return null;
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/CBCoreModule/FileUploader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     function uploadFile($name)
11 11
     {
12
-        if (! Request::hasFile($name)) {
12
+        if (!Request::hasFile($name)) {
13 13
             return null;
14 14
         }
15 15
         $file = Request::file($name);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     private function validateExtension($ext)
34 34
     {
35
-        if (! in_array($ext, explode(',', cbConfig('UPLOAD_TYPES')))) {
35
+        if (!in_array($ext, explode(',', cbConfig('UPLOAD_TYPES')))) {
36 36
             echo "The filetype is not allowed!";
37 37
             exit;
38 38
         }
Please login to merge, or discard this patch.
src/CBCoreModule/DataRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($ctrl)
17 17
     {
18
-        $this->ctrl =  $ctrl;
18
+        $this->ctrl = $ctrl;
19 19
     }
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
src/Modules/SettingModule/CbSettingsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function boot()
16 16
     {
17 17
         $this->app['view']->addNamespace('CbSettings', __DIR__.'/views');
18
-        $this->loadRoutesFrom( __DIR__.'/settings_routes.php');
18
+        $this->loadRoutesFrom(__DIR__.'/settings_routes.php');
19 19
     }
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
src/Modules/ApiGeneratorModule/AdminApiGeneratorController.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
             if (strtolower($api->method_type) == 'get' && $httpbuilder) {
77 77
                 $httpbuilder = "?".http_build_query($httpbuilder);
78
-            }else{
78
+            } else{
79 79
                 $httpbuilder = '';
80 80
             }
81 81
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
             if (strtolower($api->method_type) == 'get' && $httpbuilder) {
79 79
                 $httpbuilder = "?".http_build_query($httpbuilder);
80
-            }else{
80
+            } else {
81 81
                 $httpbuilder = '';
82 82
             }
83 83
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $type_field = DbInspector::getFieldTypes($table, $ro);
201 201
             $new_result[] = ['name' => $ro, 'type' => $this->getFieldType($ro, $type_field)];
202 202
 
203
-            if (!in_array($type, ['list', 'detail']) || !starts_with($ro, 'id_') ) {
203
+            if (!in_array($type, ['list', 'detail']) || !starts_with($ro, 'id_')) {
204 204
                 continue;
205 205
             }
206 206
             $table2 = substr($ro, 3);
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     {
272 272
         $json = [];
273 273
         for ($i = 0, $_count = count($params_name); $i <= $_count; $i++) {
274
-            if (! $params_name[$i]) {
274
+            if (!$params_name[$i]) {
275 275
                 continue;
276 276
             }
277 277
             $json[] = [
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     {
298 298
         $json = [];
299 299
         for ($i = 0, $_count = count($responses_name); $i <= $_count; $i++) {
300
-            if (! $responses_name[$i]) {
300
+            if (!$responses_name[$i]) {
301 301
                 continue;
302 302
             }
303 303
             $json[] = [
Please login to merge, or discard this patch.
src/Modules/NotificationsModule/CbNotificationsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function boot()
15 15
     {
16
-        $this->loadRoutesFrom( __DIR__.'/notifications_routes.php');
16
+        $this->loadRoutesFrom(__DIR__.'/notifications_routes.php');
17 17
     }
18 18
 
19 19
     /**
Please login to merge, or discard this patch.
src/Modules/MenuModule/CbMenuServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function boot()
15 15
     {
16 16
         $this->app['view']->addNamespace('CbMenu', __DIR__.'/views');
17
-        $this->loadRoutesFrom( __DIR__.'/menus_routes.php');
17
+        $this->loadRoutesFrom(__DIR__.'/menus_routes.php');
18 18
     }
19 19
 
20 20
     /**
Please login to merge, or discard this patch.