Completed
Push — master ( f2a787...96d856 )
by Vitaliy
03:16
created
src/Components/Tr.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
     {
47 47
         $row = $this->getDataRow();
48 48
         $out = '';
49
-        foreach($this->grid->getConfig()->getColumns() as $column) {
49
+        foreach ($this->grid->getConfig()->getColumns() as $column) {
50 50
             $component = new TableCell($column);
51 51
             $component->initialize($this->grid);
52 52
             $component->setContent($column->getValue($row));
Please login to merge, or discard this patch.
src/FieldConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      */
150 150
     public function getLabel()
151 151
     {
152
-        return $this->label ? : ucwords(str_replace(array('-', '_', '.'), ' ', $this->name));
152
+        return $this->label ?: ucwords(str_replace(array('-', '_', '.'), ' ', $this->name));
153 153
     }
154 154
 
155 155
     /**
Please login to merge, or discard this patch.
src/Grid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
      */
126 126
     protected function sortColumns()
127 127
     {
128
-        $this->config->getColumns()->sort(function (FieldConfig $a, FieldConfig $b) {
128
+        $this->config->getColumns()->sort(function(FieldConfig $a, FieldConfig $b) {
129 129
             return $a->getOrder() > $b->getOrder();
130 130
         });
131 131
     }
Please login to merge, or discard this patch.
src/GridInputProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     public function getSorting()
69 69
     {
70
-        return $_ =& $this->input['sort'];
70
+        return $_ = & $this->input['sort'];
71 71
     }
72 72
 
73 73
     public function getSortingHiddenInputsHtml()
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
                 );
Please login to merge, or discard this patch.
resources/views/default/components/filters/date_picker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /** @var Nayjest\Grids\Components\Filter $component */
3 3
 ?>
4
-<?php if($component->getLabel()): ?>
4
+<?php if ($component->getLabel()): ?>
5 5
     <span><?= $component->getLabel() ?></span>
6 6
 <?php endif ?>
7 7
 <input
Please login to merge, or discard this patch.
src/Components/ColumnsHider.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
     {
47 47
         $row = $this->getDataRow();
48 48
         $out = '';
49
-        foreach($this->grid->getConfig()->getColumns() as $column) {
49
+        foreach ($this->grid->getConfig()->getColumns() as $column) {
50 50
             $component = new TableCell($column);
51 51
             $component->initialize($this->grid);
52 52
             $component->setContent($column->getValue($row));
Please login to merge, or discard this patch.
resources/views/default/components/filters/date_range_picker.php 1 patch
Spacing   +2 added lines, -2 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
         };
Please login to merge, or discard this patch.
resources/views/default/filters/select.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     class="form-control input-sm"
12 12
     name="<?= $filter->getInputName() ?><?= $cfg->isMultipleMode() ? '[]' : '' ?>"
13 13
     <?= $onchange ?>
14
-    <?= ($size = $cfg->getSize()) ? 'size="'.$size.'"' : '' ?>
14
+    <?= ($size = $cfg->getSize()) ? 'size="' . $size . '"' : '' ?>
15 15
     <?= ($cfg->isMultipleMode()) ? 'multiple="multiple"' : '' ?>
16 16
 >
17 17
     <?= (!$cfg->isMultipleMode()) ? '<option value="">--//--</option>' : '' ?>
Please login to merge, or discard this patch.