@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function up() |
23 | 23 | { |
24 | - Schema::create($this->table_menus, function (Blueprint $table) { |
|
24 | + Schema::create($this->table_menus, function(Blueprint $table) { |
|
25 | 25 | $table->increments('id'); |
26 | 26 | $table->string('name')->index(); |
27 | 27 | $table->string('permission')->nullable()->index(); |
@@ -30,12 +30,12 @@ |
||
30 | 30 | |
31 | 31 | public function hasConfirmationCode() |
32 | 32 | { |
33 | - return ! is_null($this->{$this->confirmation_token_field} ); |
|
33 | + return !is_null($this->{$this->confirmation_token_field} ); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public function isPendingConfirmation() |
37 | 37 | { |
38 | - return ! $this->isConfirmed() && $this->hasConfirmationCode(); |
|
38 | + return !$this->isConfirmed() && $this->hasConfirmationCode(); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | public function getConfirmationField() |
@@ -146,12 +146,14 @@ |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | public function applyCriteria() { |
149 | - if ($this->skipCriteria === true) |
|
150 | - return $this; |
|
149 | + if ($this->skipCriteria === true) { |
|
150 | + return $this; |
|
151 | + } |
|
151 | 152 | |
152 | 153 | foreach ($this->getCriteria() as $criteria) { |
153 | - if ($criteria instanceof Criteria) |
|
154 | - $this->model = $criteria->apply($this->model, $this); |
|
154 | + if ($criteria instanceof Criteria) { |
|
155 | + $this->model = $criteria->apply($this->model, $this); |
|
156 | + } |
|
155 | 157 | } |
156 | 158 | |
157 | 159 | return $this; |