Completed
Pull Request — master (#118)
by
unknown
03:02
created
src/Components/Container.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
         $before = '';
19 19
         $after = '';
20 20
         foreach ($this->html_tags as $tag) {
21
-            $before.="<$tag>";
22
-            $after = "</$tag>".$after;
21
+            $before .= "<$tag>";
22
+            $after = "</$tag>" . $after;
23 23
         }
24 24
         return $before . $this->renderComponents() . $after;
25 25
     }
Please login to merge, or discard this patch.
src/Components/CsvExport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public function initialize(Grid $grid)
49 49
     {
50 50
         parent::initialize($grid);
51
-        Event::listen(Grid::EVENT_PREPARE, function (Grid $grid) {
51
+        Event::listen(Grid::EVENT_PREPARE, function(Grid $grid) {
52 52
             if ($this->grid !== $grid) {
53 53
                 return;
54 54
             }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $file = fopen('php://output', 'w');
114 114
 
115 115
         header('Content-Type: text/csv');
116
-        header('Content-Disposition: attachment; filename="'. $this->getFileName() .'"');
116
+        header('Content-Disposition: attachment; filename="' . $this->getFileName() . '"');
117 117
         header('Pragma: no-cache');
118 118
 
119 119
         set_time_limit(0);
Please login to merge, or discard this patch.
src/Components/Filters/DateRangePicker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                     ]
147 147
                 ],
148 148
                 'current_month' => [
149
-                    'Cur. month (' . date('F'). ')',
149
+                    'Cur. month (' . date('F') . ')',
150 150
                     [
151 151
                         $carbon->startOfMonth()->format('Y-m-d'),
152 152
                         $carbon->endOfMonth()->format('Y-m-d')
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 
225 225
     protected function getDefaultFilteringFunc()
226 226
     {
227
-        return function ($value, DataProvider $provider) {
227
+        return function($value, DataProvider $provider) {
228 228
             $provider->filter($this->getName(), '>=', $value[0]);
229 229
             $provider->filter($this->getName(), '<=', $value[1]);
230 230
         };
Please login to merge, or discard this patch.
src/Components/Laravel5/Pager.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
     protected function setupPaginationForReading()
25 25
     {
26
-        Paginator::currentPageResolver(function () {
26
+        Paginator::currentPageResolver(function() {
27 27
             return Input::get("$this->input_key.page", 1);
28 28
         });
29 29
     }
Please login to merge, or discard this patch.
src/Components/RecordsPerPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         if ($from_input === null) {
74 74
             return $this->grid->getConfig()->getPageSize();
75 75
         } else {
76
-            return (int) $from_input;
76
+            return (int)$from_input;
77 77
         }
78 78
     }
79 79
 
Please login to merge, or discard this patch.
src/Components/TotalsRow.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $field_names = $this->field_names;
61 61
         $this->fields = $this->grid->getConfig()->getColumns()->filter(
62
-            function (FieldConfig $field) use ($field_names) {
62
+            function(FieldConfig $field) use ($field_names) {
63 63
                 return in_array($field->getName(), $field_names);
64 64
             }
65 65
         );
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         Event::listen(
78 78
             DataProvider::EVENT_FETCH_ROW,
79
-            function (DataRow $row, DataProvider $currentProvider) use ($provider) {
79
+            function(DataRow $row, DataProvider $currentProvider) use ($provider) {
80 80
                 if ($currentProvider !== $provider) {
81 81
                     return;
82 82
                 }
@@ -219,6 +219,6 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public function getFieldOperation($fieldName)
221 221
     {
222
-        return isset($this->field_operations[$fieldName])?$this->field_operations[$fieldName]:self::OPERATION_SUM;
222
+        return isset($this->field_operations[$fieldName]) ? $this->field_operations[$fieldName] : self::OPERATION_SUM;
223 223
     }
224 224
 }
Please login to merge, or discard this patch.