Completed
Push — feature/update_flight ( 5eb300...a7cb77 )
by Laurent
01:44
created
class/bbctypes.class.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -645,7 +645,7 @@
 block discarded – undo
645 645
     }
646 646
 
647 647
     /**
648
-     * @return array|BbctypesLine[]
648
+     * @return BbctypesLine[]
649 649
      */
650 650
     public function getLines()
651 651
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -733,7 +733,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Form/FlightForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Form/FlightTypeSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Form/Select.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Form/BaseInput.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.