Passed
Push — master ( e8d451...9db9c5 )
by Ferry
05:38 queued 02:28
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/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/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/ModuleGenerator/Step4Handler.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
     public function showForm($id)
12 12
     {
13
-        $controller = ModulesRepo::getControllerName($id);;
13
+        $controller = ModulesRepo::getControllerName($id); ;
14 14
 
15 15
         $data = [];
16 16
         $data['id'] = $id;
Please login to merge, or discard this patch.
src/Modules/ModuleGenerator/Step1Handler.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         if (file_exists(controller_path($row->controller))) {
40 40
             $response = FileManipulator::readCtrlContent(str_replace('.', '', $row->controller));
41
-        }else{
41
+        } else{
42 42
             $response = file_get_contents(__DIR__.'Step1Handler.php/'.str_replace('.', '', $row->controller).'.php');
43 43
         }
44 44
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@  discard block
 block discarded – undo
8 8
 
9 9
 class Step1Handler
10 10
 {
11
-    public function showForm($id=null)
11
+    public function showForm($id = null)
12 12
     {   
13 13
         $data['id'] = $id;
14
-        return view('CbModulesGen::step1',$data);
14
+        return view('CbModulesGen::step1', $data);
15 15
     }
16 16
 
17 17
     public function handleFormSubmit()
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $icon = request('icon');
22 22
         $path = request('path');
23 23
 
24
-        if (! request('id')) {
24
+        if (!request('id')) {
25 25
             if (ModulesRepo::modulePathExists($path)) {
26 26
                 //todo: should be translated
27 27
                 backWithMsg('Sorry the slug has already exists, please choose another !', 'warning');
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         if (file_exists(controller_path($row->controller))) {
40 40
             $response = FileManipulator::readCtrlContent(str_replace('.', '', $row->controller));
41
-        }else{
41
+        } else {
42 42
             $response = file_get_contents(__DIR__.'Step1Handler.php/'.str_replace('.', '', $row->controller).'.php');
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/Modules/FileManagerModule/CbFileManagerServiceProvider.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('CbFileManager', __DIR__.'/views');
17
-        $this->loadRoutesFrom( __DIR__.'/file_manager_routes.php');
17
+        $this->loadRoutesFrom(__DIR__.'/file_manager_routes.php');
18 18
     }
19 19
 
20 20
     /**
Please login to merge, or discard this patch.
src/helpers/GoogleFCM.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
     public function send($regID, $data)
12 12
     {
13
-        if (! $data['title'] || ! $data['content']) {
13
+        if (!$data['title'] || !$data['content']) {
14 14
             return 'title , content null !';
15 15
         }
16 16
 
Please login to merge, or discard this patch.
src/controllers/Helpers/IndexExport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
      */
53 53
     private function exportExcelAs($filename, $response, $orientation, $fmt)
54 54
     {
55
-        return Excel::create($filename, function ($excel) use ($response, $orientation, $filename) {
55
+        return Excel::create($filename, function($excel) use ($response, $orientation, $filename) {
56 56
             $excel->setTitle($filename)->setCreator("crudbooster.com")->setCompany(cbGetsetting('appname'));
57
-            $excel->sheet($filename, function ($sheet) use ($response, $orientation) {
57
+            $excel->sheet($filename, function($sheet) use ($response, $orientation) {
58 58
                 $sheet->setOrientation($orientation);
59 59
                 $sheet->loadview('crudbooster::export', $response);
60 60
             });
Please login to merge, or discard this patch.
src/helpers/Time.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             }
32 32
         }
33 33
 
34
-        if (! $full) {
34
+        if (!$full) {
35 35
             $this->string = array_slice($this->string, 0, 1);
36 36
         }
37 37
 
Please login to merge, or discard this patch.