@@ -15,7 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | <?php |
| 17 | 17 | $bootstrapKey = $key; |
| 18 | - if($key == 'error') $bootstrapKey = 'danger'; |
|
| 18 | + if($key == 'error') { |
|
| 19 | + $bootstrapKey = 'danger'; |
|
| 20 | + } |
|
| 19 | 21 | |
| 20 | 22 | $selected = (old('level',$formValues->level()) == $key); |
| 21 | 23 | ?> |
@@ -6,7 +6,9 @@ |
||
| 6 | 6 | |
| 7 | 7 | $hasErrors = false; |
| 8 | 8 | foreach($fields as $field){ |
| 9 | - if($errors->has($field)) $hasErrors = true; |
|
| 9 | + if($errors->has($field)) { |
|
| 10 | + $hasErrors = true; |
|
| 11 | + } |
|
| 10 | 12 | } |
| 11 | 13 | |
| 12 | 14 | ?> |
@@ -16,7 +16,9 @@ discard block |
||
| 16 | 16 | public function collectionKey() |
| 17 | 17 | { |
| 18 | 18 | // Collection key is stored at db - if not we map it from our config |
| 19 | - if($this->collection) return $this->collection; |
|
| 19 | + if($this->collection) { |
|
| 20 | + return $this->collection; |
|
| 21 | + } |
|
| 20 | 22 | |
| 21 | 23 | $mapping = config('thinktomorrow.chief.collections',[]); |
| 22 | 24 | |
@@ -72,7 +74,9 @@ discard block |
||
| 72 | 74 | |
| 73 | 75 | public static function availableCollections(): Collection |
| 74 | 76 | { |
| 75 | - if(static::$availableCollections) return static::$availableCollections; |
|
| 77 | + if(static::$availableCollections) { |
|
| 78 | + return static::$availableCollections; |
|
| 79 | + } |
|
| 76 | 80 | |
| 77 | 81 | $mapping = config('thinktomorrow.chief.collections',[]); |
| 78 | 82 | |