Completed
Pull Request — master (#144)
by
unknown
03:23
created
resources/views/default/components/filters/date_range_picker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             start.val(picker.startDate.format(options.format));
37 37
             var end = $('[name="<?= $component->getEndInputName() ?>"]');
38 38
             end.val(picker.endDate.format(options.format));
39
-            <?php if($component->isSubmittedOnChange()): ?>
39
+            <?php if ($component->isSubmittedOnChange()): ?>
40 40
             end.get(0).form.submit();
41 41
             <?php endif ?>
42 42
         };
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                     $('[name="<?= $component->getStartInputName() ?>"]').val('');
49 49
                     $('[name="<?= $component->getEndInputName() ?>"]').val('');
50 50
 
51
-                    <?php if($component->isSubmittedOnChange()): ?>
51
+                    <?php if ($component->isSubmittedOnChange()): ?>
52 52
                     var end = $('[name="<?= $component->getEndInputName() ?>"]');
53 53
                     end.get(0).form.submit();
54 54
                     <?php endif ?>
Please login to merge, or discard this patch.
src/Components/CsvExport.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public function initialize(Grid $grid)
51 51
     {
52 52
         parent::initialize($grid);
53
-        Event::listen(Grid::EVENT_PREPARE, function (Grid $grid) {
53
+        Event::listen(Grid::EVENT_PREPARE, function(Grid $grid) {
54 54
             if ($this->grid !== $grid) {
55 55
                 return;
56 56
             }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function getFileName()
77 77
     {
78
-        return $this->fileName . static::CSV_EXT;
78
+        return $this->fileName.static::CSV_EXT;
79 79
     }
80 80
 
81 81
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     protected function setCsvHeaders(Response $response)
101 101
     {
102 102
         $response->header('Content-Type', 'application/csv');
103
-        $response->header('Content-Disposition', 'attachment; filename=' . $this->getFileName());
103
+        $response->header('Content-Disposition', 'attachment; filename='.$this->getFileName());
104 104
         $response->header('Pragma', 'no-cache');
105 105
     }
106 106
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         if (version_compare(Application::VERSION, '5.0.0', '<')) {
110 110
             $provider->getPaginationFactory()->setPageName('page_unused');
111 111
         } else {
112
-            Paginator::currentPageResolver(function () {
112
+            Paginator::currentPageResolver(function() {
113 113
                 return 1;
114 114
             });
115 115
         }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $file = fopen('php://output', 'w');
123 123
 
124 124
         header('Content-Type: text/csv');
125
-        header('Content-Disposition: attachment; filename="' . $this->getFileName() . '"');
125
+        header('Content-Disposition: attachment; filename="'.$this->getFileName().'"');
126 126
         header('Pragma: no-cache');
127 127
 
128 128
         set_time_limit(0);
Please login to merge, or discard this patch.