Completed
Push — master ( 3fee31...0e6671 )
by Vitaliy
31s queued 11s
created
resources/views/default/components/filters/date_range_picker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 /** @var Nayjest\Grids\Components\Filters\DateRangePicker $component */
3 3
 $id = uniqid();
4 4
 ?>
5
-<?php if($component->getLabel()): ?>
5
+<?php if ($component->getLabel()): ?>
6 6
     <span>
7 7
         <span class="glyphicon glyphicon-calendar"></span>
8 8
         <?= $component->getLabel() ?>
@@ -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.
resources/views/default/components/filters/checkboxes.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 /** @var Nayjest\Grids\Components\SelectFilter $component */
3 3
 $value = $component->getValue();
4 4
 if (!is_array($value)) $value = [];
5
-$id = uniqid() . mt_rand();
5
+$id = uniqid().mt_rand();
6 6
 ?>
7 7
 <div class="btn-group">
8 8
     <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
                 </label>
26 26
             </div>
27 27
         </li>
28
-        <?php foreach($component->getVariants() as $val => $label): ?>
29
-            <?php if(is_array($label)):?>
28
+        <?php foreach ($component->getVariants() as $val => $label): ?>
29
+            <?php if (is_array($label)):?>
30 30
                 <?php
31 31
                 $class = '';
32
-                if(array_intersect(array_keys($label['values']), array_keys($value))) {
32
+                if (array_intersect(array_keys($label['values']), array_keys($value))) {
33 33
                     $class = ' in';
34 34
                 }
35 35
                 ?>
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
                                 </label>
52 52
                             </div>
53 53
                         <?php endif ?>
54
-                        <?php foreach($label['values'] as $option_val=>$option_label):?>
54
+                        <?php foreach ($label['values'] as $option_val=>$option_label):?>
55 55
                             <div>
56 56
                                 <label>
57 57
                                     <input
58 58
                                         type="checkbox"
59
-                                        <?php if(!empty($value[$option_val])) echo "checked='checked'" ?>
59
+                                        <?php if (!empty($value[$option_val])) echo "checked='checked'" ?>
60 60
                                         name="<?= $component->getInputName() ?>[<?= $option_val ?>]"
61 61
                                     >
62 62
                                     <span><?= $option_label ?></span>
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                     <label>
71 71
                         <input
72 72
                             type="checkbox"
73
-                            <?php if(!empty($value[$val])) echo "checked='checked'" ?>
73
+                            <?php if (!empty($value[$val])) echo "checked='checked'" ?>
74 74
                             name="<?= $component->getInputName() ?>[<?= $val ?>]"
75 75
                         >
76 76
                         <span><?= $label ?></span>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /** @var Nayjest\Grids\Components\SelectFilter $component */
3 3
 $value = $component->getValue();
4
-if (!is_array($value)) $value = [];
4
+if (!is_array($value)) {
5
+    $value = [];
6
+}
5 7
 $id = uniqid() . mt_rand();
6 8
 ?>
7 9
 <div class="btn-group">
Please login to merge, or discard this patch.
src/ObjectDataRow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         } else {
28 28
             try {
29 29
                 return $this->src->{$fieldName};
30
-            } catch(Exception $e) {
30
+            } catch (Exception $e) {
31 31
                 throw new RuntimeException(
32 32
                     "Can't read '$fieldName' property from DataRow",
33 33
                     0,
Please login to merge, or discard this patch.
src/Components/Laravel5/Pager.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
     protected function setupPaginationForReading()
25 25
     {
26 26
         Paginator::currentPageResolver(function () {
27
-          if (version_compare(App::version(), '6.0', '>=')) {
27
+            if (version_compare(App::version(), '6.0', '>=')) {
28 28
             return \Illuminate\Support\Facades\Request::input("$this->input_key.page", 1);
29
-          } else {
29
+            } else {
30 30
             return \Illuminate\Support\Facades\Input::get("$this->input_key.page", 1);
31
-          }
31
+            }
32 32
         });
33 33
     }
34 34
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     protected function setupPaginationForReading()
25 25
     {
26
-        Paginator::currentPageResolver(function () {
26
+        Paginator::currentPageResolver(function() {
27 27
           if (version_compare(App::version(), '6.0', '>=')) {
28 28
             return \Illuminate\Support\Facades\Request::input("$this->input_key.page", 1);
29 29
           } else {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         if (isset($input['page'])) {
55 55
             unset($input['page']);
56 56
         }
57
-        return str_replace('/?', '?',$paginator->appends($this->input_key, $input)->render());
57
+        return str_replace('/?', '?', $paginator->appends($this->input_key, $input)->render());
58 58
     }
59 59
 
60 60
     public function initialize(Grid $grid)
Please login to merge, or discard this patch.
src/Components/PhpSpreadsheetExport.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -68,20 +68,20 @@  discard block
 block discarded – undo
68 68
         }
69 69
     }
70 70
 
71
-	/**
72
-	 *
73
-	 * @return array
74
-	 */
75
-	function headings(): array
71
+    /**
72
+     *
73
+     * @return array
74
+     */
75
+    function headings(): array
76 76
     {
77 77
         return $this->getHeaderRow();
78
-	}
78
+    }
79 79
 
80
-	/**
81
-	 *
82
-	 * @return array
83
-	 */
84
-	function registerEvents(): array
80
+    /**
81
+     *
82
+     * @return array
83
+     */
84
+    function registerEvents(): array
85 85
     {
86 86
         return [
87 87
             BeforeSheet::class => function(BeforeSheet $event) {
@@ -91,6 +91,6 @@  discard block
 block discarded – undo
91 91
                 }
92 92
             }
93 93
         ];
94
-	}
94
+    }
95 95
 
96 96
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function __construct()
34 34
     {
35
-        if(!interface_exists('Maatwebsite\Excel\Exporter')) {
35
+        if (!interface_exists('Maatwebsite\Excel\Exporter')) {
36 36
             throw new \RuntimeException('It seems there is no Maatwebsite v3 installed. Install it or use ExcelExport component');
37 37
         }
38 38
     }
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
         $provider = $this->grid->getConfig()->getDataProvider();
58 58
         $this->resetPagination($provider);
59 59
         $provider->reset();
60
-        while($row = $provider->getRow()) {
60
+        while ($row = $provider->getRow()) {
61 61
             $output = [];
62
-            foreach($columnsConfig as $column) {
62
+            foreach ($columnsConfig as $column) {
63 63
                 if ($this->isColumnExported($column)) {
64 64
                     $output[] = $this->escapeString($column->getValue($row));
65 65
                 }
Please login to merge, or discard this patch.