Completed
Push — master ( f85c01...38f866 )
by Song
02:09
created
src/Grid/Displayers/Editable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
             $attributes = array_merge($attributes, $this->attributes);
185 185
         }
186 186
 
187
-        $attributes = collect($attributes)->map(function ($attribute, $name) {
187
+        $attributes = collect($attributes)->map(function($attribute, $name) {
188 188
             return "$name='$attribute'";
189 189
         })->implode(' ');
190 190
 
Please login to merge, or discard this patch.
resources/views/partials/exception.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 @if($errors->hasBag('exception') && env('APP_DEBUG') == true)
2
-    <?php $error = $errors->getBag('exception');?>
2
+    <?php $error = $errors->getBag('exception'); ?>
3 3
     <div class="alert alert-warning alert-dismissable">
4 4
         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
5 5
         <h4>
Please login to merge, or discard this patch.
src/Console/ExportSeedCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         $fields = \DB::getSchemaBuilder()->getColumnListing($table);
90 90
         $fields = array_diff($fields, $exceptFields);
91 91
 
92
-        $array = \DB::table($table)->get($fields)->map(function ($item) {
92
+        $array = \DB::table($table)->get($fields)->map(function($item) {
93 93
             return (array) $item;
94 94
         })->all();
95 95
 
Please login to merge, or discard this patch.
src/Form/Field/HasMany.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -640,7 +640,7 @@
 block discarded – undo
640 640
         }
641 641
 
642 642
         /* Build row elements */
643
-        $template = array_reduce($fields, function ($all, $field) {
643
+        $template = array_reduce($fields, function($all, $field) {
644 644
             $all .= "<td>{$field}</td>";
645 645
 
646 646
             return $all;
Please login to merge, or discard this patch.
src/Grid/Tools/ColumnSelector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $this->setupScript($show, $columns);
40 40
 
41
-        $lists = $columns->map(function ($val, $key) use ($show) {
41
+        $lists = $columns->map(function($val, $key) use ($show) {
42 42
 
43 43
             if (empty($show)) {
44 44
                 $checked = 'checked';
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     protected function getGridColumns()
76 76
     {
77
-        return $this->grid->columns()->map(function (Grid\Column $column) {
77
+        return $this->grid->columns()->map(function(Grid\Column $column) {
78 78
 
79 79
             $name = $column->getName();
80 80
 
Please login to merge, or discard this patch.
src/Layout/Column.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     protected function startColumn()
113 113
     {
114 114
         // get class name using width array
115
-        $classnName = collect($this->width)->map(function ($value, $key) {
115
+        $classnName = collect($this->width)->map(function($value, $key) {
116 116
             return "col-$key-$value";
117 117
         })->implode(' ');
118 118
 
Please login to merge, or discard this patch.
src/Grid.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 
353 353
         array_push($visible, '__row_selector__', '__actions__');
354 354
 
355
-        return $this->columns->filter(function (Column $column) use ($visible) {
355
+        return $this->columns->filter(function(Column $column) use ($visible) {
356 356
             return in_array($column->getName(), $visible);
357 357
         });
358 358
     }
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 
373 373
         array_push($visible, '__row_selector__', '__actions__');
374 374
 
375
-        return collect($this->columnNames)->filter(function ($column) use ($visible) {
375
+        return collect($this->columnNames)->filter(function($column) use ($visible) {
376 376
             return in_array($column, $visible);
377 377
         });
378 378
     }
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
         $column = new Column($column, $label);
391 391
         $column->setGrid($this);
392 392
 
393
-        return tap($column, function ($value) {
393
+        return tap($column, function($value) {
394 394
             $this->columns->push($value);
395 395
         });
396 396
     }
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
         $column = new Column($column, $label);
409 409
         $column->setGrid($this);
410 410
 
411
-        return tap($column, function ($value) {
411
+        return tap($column, function($value) {
412 412
             $this->columns->prepend($value);
413 413
         });
414 414
     }
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
      */
528 528
     public function disableRowSelector()
529 529
     {
530
-        $this->tools(function ($tools) {
530
+        $this->tools(function($tools) {
531 531
             /* @var Grid\Tools $tools */
532 532
             $tools->disableBatchActions();
533 533
         });
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
 
571 571
         Column::setOriginalGridModels($collection);
572 572
 
573
-        $this->columns->map(function (Column $column) use (&$data) {
573
+        $this->columns->map(function(Column $column) use (&$data) {
574 574
             $data = $column->fill($data);
575 575
 
576 576
             $this->columnNames[] = $column->getName();
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
      */
679 679
     protected function buildRows(array $data)
680 680
     {
681
-        $this->rows = collect($data)->map(function ($model, $number) {
681
+        $this->rows = collect($data)->map(function($model, $number) {
682 682
             return new Row($number, $model);
683 683
         });
684 684
 
Please login to merge, or discard this patch.
src/Middleware/Session.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
 {
9 9
     public function handle(Request $request, \Closure $next)
10 10
     {
11
-        $path = '/' . trim(config('admin.route.prefix'), '/');
11
+        $path = '/'.trim(config('admin.route.prefix'), '/');
12 12
 
13 13
         config(['session.path' => $path]);
14 14
 
Please login to merge, or discard this patch.