@@ -645,7 +645,7 @@ |
||
| 645 | 645 | } |
| 646 | 646 | |
| 647 | 647 | /** |
| 648 | - * @return array|BbctypesLine[] |
|
| 648 | + * @return BbctypesLine[] |
|
| 649 | 649 | */ |
| 650 | 650 | public function getLines() |
| 651 | 651 | { |
@@ -733,7 +733,7 @@ |
||
| 733 | 733 | */ |
| 734 | 734 | public function getActive() |
| 735 | 735 | { |
| 736 | - return (boolean)$this->active; |
|
| 736 | + return (boolean) $this->active; |
|
| 737 | 737 | } |
| 738 | 738 | |
| 739 | 739 | /** |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | { |
| 53 | 53 | $values = []; |
| 54 | 54 | |
| 55 | - foreach ($options as $value){ |
|
| 55 | + foreach ($options as $value) { |
|
| 56 | 56 | $values[] = $value; |
| 57 | 57 | } |
| 58 | 58 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | private function buildOptions() |
| 45 | 45 | { |
| 46 | - foreach($this->flightType->getLines() as $currentFlightType){ |
|
| 46 | + foreach ($this->flightType->getLines() as $currentFlightType) { |
|
| 47 | 47 | $this->addValueOption($currentFlightType->getId(), $currentFlightType->getLabel()); |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @return $this |
| 53 | 53 | */ |
| 54 | - public function addValueOption($key, $value){ |
|
| 54 | + public function addValueOption($key, $value) { |
|
| 55 | 55 | $this->valueOptions[$key] = $value; |
| 56 | 56 | return $this; |
| 57 | 57 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | parent::setValue($value); |
| 65 | 65 | |
| 66 | - if(!isset($this->valueOptions[$value])){ |
|
| 66 | + if (!isset($this->valueOptions[$value])) { |
|
| 67 | 67 | $this->valueOptions[$value] = $value; |
| 68 | 68 | } |
| 69 | 69 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | /** |
| 103 | 103 | * @return $this |
| 104 | 104 | */ |
| 105 | - public function required(){ |
|
| 105 | + public function required() { |
|
| 106 | 106 | $this->options['attr']['required'] = 'required'; |
| 107 | 107 | |
| 108 | 108 | return $this; |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | /** |
| 112 | 112 | * @return $this |
| 113 | 113 | */ |
| 114 | - public function disable(){ |
|
| 114 | + public function disable() { |
|
| 115 | 115 | $this->options['attr']['disabled'] = 'disabled'; |
| 116 | 116 | return $this; |
| 117 | 117 | } |
@@ -121,8 +121,8 @@ discard block |
||
| 121 | 121 | * |
| 122 | 122 | * @return string|int|boolean|null |
| 123 | 123 | */ |
| 124 | - public function getOption($option){ |
|
| 125 | - if(!isset($this->options[$option])){ |
|
| 124 | + public function getOption($option) { |
|
| 125 | + if (!isset($this->options[$option])) { |
|
| 126 | 126 | return null; |
| 127 | 127 | } |
| 128 | 128 | |