@@ -121,7 +121,7 @@ |
||
| 121 | 121 | 'attributes' => [ |
| 122 | 122 | 'data-placeholder' => /*@translate*/ 'please select', |
| 123 | 123 | 'data-allowclear' => 'false', |
| 124 | - 'data-searchbox' => -1, // hide the search box |
|
| 124 | + 'data-searchbox' => -1, // hide the search box |
|
| 125 | 125 | 'required' => true, // mark label as required |
| 126 | 126 | ], |
| 127 | 127 | ) |
@@ -75,10 +75,10 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName; |
| 77 | 77 | |
| 78 | - if (is_array($inputLabel)){ |
|
| 79 | - $priority = isset($inputLabel[1])?$inputLabel[1]:0; |
|
| 78 | + if (is_array($inputLabel)) { |
|
| 79 | + $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0; |
|
| 80 | 80 | $inputLabel = $inputLabel[0]; |
| 81 | - }else{ |
|
| 81 | + } else { |
|
| 82 | 82 | $priority = 0; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -90,12 +90,12 @@ discard block |
||
| 90 | 90 | ), |
| 91 | 91 | ); |
| 92 | 92 | if (is_bool($value)) { |
| 93 | - $input['type']= 'Checkbox'; |
|
| 93 | + $input['type'] = 'Checkbox'; |
|
| 94 | 94 | $input['attributes']['checked'] = $value; |
| 95 | 95 | } else { |
| 96 | 96 | $input['attributes']['value'] = $value; |
| 97 | 97 | } |
| 98 | - $this->add($input,['priority'=>$priority]); |
|
| 98 | + $this->add($input, ['priority'=>$priority]); |
|
| 99 | 99 | |
| 100 | 100 | } |
| 101 | 101 | |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | */ |
| 78 | 78 | if (isset($this->value['params']['by']) && 'me' == $this->value['params']['by']) { |
| 79 | 79 | $queryBuilder->field('user')->equals($this->user->id); |
| 80 | - }else{ |
|
| 80 | + } else{ |
|
| 81 | 81 | $queryBuilder->field('permissions.view')->equals($this->user->id); |
| 82 | 82 | } |
| 83 | 83 | if ( |