@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function setOperator($operator) |
56 | 56 | { |
57 | - if (! array_key_exists($operator, $this->sqlOperators)) { |
|
57 | + if (!array_key_exists($operator, $this->sqlOperators)) { |
|
58 | 58 | throw new FilterOperatorException("Operator [$operator] not found"); |
59 | 59 | } |
60 | 60 | |
@@ -117,13 +117,13 @@ discard block |
||
117 | 117 | break; |
118 | 118 | case 'whereBetween': |
119 | 119 | case 'whereNotBetween': |
120 | - if (! is_array($value)) { |
|
120 | + if (!is_array($value)) { |
|
121 | 121 | $value = explode(',', $value, 2); |
122 | 122 | } |
123 | 123 | break; |
124 | 124 | case 'whereIn': |
125 | 125 | case 'whereNotIn': |
126 | - if (! is_array($value)) { |
|
126 | + if (!is_array($value)) { |
|
127 | 127 | $value = explode(',', $value); |
128 | 128 | } |
129 | 129 | break; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | return; |
70 | 70 | } |
71 | 71 | |
72 | - if (! is_null($userClass::where('email', $email)->first())) { |
|
72 | + if (!is_null($userClass::where('email', $email)->first())) { |
|
73 | 73 | $this->error("User with same email [{$email}] exists."); |
74 | 74 | |
75 | 75 | return; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | $confirm = $this->confirm("Are you sure want to delete user with id [{$id}]?", false); |
123 | - if (! $confirm) { |
|
123 | + if (!$confirm) { |
|
124 | 124 | return; |
125 | 125 | } |
126 | 126 |
@@ -129,7 +129,7 @@ |
||
129 | 129 | */ |
130 | 130 | public function setValidationRules($validationRules) |
131 | 131 | { |
132 | - if (! is_array($validationRules)) { |
|
132 | + if (!is_array($validationRules)) { |
|
133 | 133 | $validationRules = func_get_args(); |
134 | 134 | } |
135 | 135 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $this->view = $view; |
48 | 48 | |
49 | - $this->setDisplay(function ($model) { |
|
49 | + $this->setDisplay(function($model) { |
|
50 | 50 | $this->data['model'] = $model; |
51 | 51 | |
52 | 52 | return view($this->getView(), $this->data); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $element = new Column($element); |
66 | 66 | } |
67 | 67 | |
68 | - if (! ($element instanceof ColumnInterface)) { |
|
68 | + if (!($element instanceof ColumnInterface)) { |
|
69 | 69 | throw new \Exception('Column should be instance of ColumnInterface'); |
70 | 70 | } |
71 | 71 | |
@@ -80,16 +80,16 @@ discard block |
||
80 | 80 | { |
81 | 81 | $this->setHtmlAttribute('class', 'row'); |
82 | 82 | |
83 | - $count = $this->getElements()->filter(function (ColumnInterface $column) { |
|
83 | + $count = $this->getElements()->filter(function(ColumnInterface $column) { |
|
84 | 84 | return $column->getWidth() === 0; |
85 | 85 | })->count(); |
86 | 86 | |
87 | - $width = $this->maxWidth - $this->getElements()->sum(function (ColumnInterface $column) { |
|
87 | + $width = $this->maxWidth - $this->getElements()->sum(function(ColumnInterface $column) { |
|
88 | 88 | return $column->getWidth(); |
89 | 89 | }); |
90 | 90 | |
91 | - $this->getElements()->each(function (ColumnInterface $column) use ($width, $count) { |
|
92 | - if (! $column->getWidth()) { |
|
91 | + $this->getElements()->each(function(ColumnInterface $column) use ($width, $count) { |
|
92 | + if (!$column->getWidth()) { |
|
93 | 93 | $column->setWidth(floor($width / $count)); |
94 | 94 | } |
95 | 95 | }); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function setSize($size) |
131 | 131 | { |
132 | - $this->getColumns()->each(function (ColumnInterface $column) use ($size) { |
|
132 | + $this->getColumns()->each(function(ColumnInterface $column) use ($size) { |
|
133 | 133 | $column->setSize($size); |
134 | 134 | }); |
135 | 135 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function set($applies) |
28 | 28 | { |
29 | - if (! is_array($applies)) { |
|
29 | + if (!is_array($applies)) { |
|
30 | 30 | $applies = func_get_args(); |
31 | 31 | } |
32 | 32 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function push($scope) |
40 | 40 | { |
41 | - if (! is_array($scope)) { |
|
41 | + if (!is_array($scope)) { |
|
42 | 42 | $scope = func_get_args(); |
43 | 43 | } |
44 | 44 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | public function modifyQuery(Builder $query) |
66 | 66 | { |
67 | 67 | foreach ($this->scopes as $scope) { |
68 | - if (! is_null($scope)) { |
|
68 | + if (!is_null($scope)) { |
|
69 | 69 | if (is_array($scope)) { |
70 | 70 | $method = array_shift($scope); |
71 | 71 | $params = $scope; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | */ |
88 | 88 | public function setOrder($order) |
89 | 89 | { |
90 | - if (! is_array($order)) { |
|
90 | + if (!is_array($order)) { |
|
91 | 91 | $order = func_get_args(); |
92 | 92 | } |
93 | 93 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | { |
36 | 36 | $this->setName($name); |
37 | 37 | |
38 | - if (! is_null($title)) { |
|
38 | + if (!is_null($title)) { |
|
39 | 39 | $this->setTitle($title); |
40 | 40 | } |
41 | 41 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function getAlias() |
79 | 79 | { |
80 | - if (! $this->alias) { |
|
80 | + if (!$this->alias) { |
|
81 | 81 | return $this->getName(); |
82 | 82 | } |
83 | 83 | |
@@ -149,6 +149,6 @@ discard block |
||
149 | 149 | */ |
150 | 150 | public function isActive() |
151 | 151 | { |
152 | - return ! is_null($this->getValue()); |
|
152 | + return !is_null($this->getValue()); |
|
153 | 153 | } |
154 | 154 | } |