Completed
Push — feature/select_customer_on_fli... ( c85fa6 )
by Laurent
02:07
created
class/missions/PilotMissions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function __construct($pilotId, $pilotFirstname, $pilotLastname)
40 40
     {
41
-        $this->pilotId = (int)$pilotId;
41
+        $this->pilotId = (int) $pilotId;
42 42
         $this->pilotFirstname = $pilotFirstname;
43 43
         $this->pilotLastname = $pilotLastname;
44 44
 
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
      * @param int $numberOfFlights
52 52
      * @param int $numberOfKilometers
53 53
      */
54
-    public function addQuarter($quarter, $numberOfFlights, $numberOfKilometers){
55
-        $quarter = (int)$quarter;
54
+    public function addQuarter($quarter, $numberOfFlights, $numberOfKilometers) {
55
+        $quarter = (int) $quarter;
56 56
         $this->quarterMissions[$quarter] = new QuarterMission($quarter, $numberOfFlights, $numberOfKilometers);
57 57
     }
58 58
 
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
      *
108 108
      * @return QuarterMission
109 109
      */
110
-    private function getQuarterMission($quarter){
111
-        if(!isset($this->quarterMissions[$quarter])){
112
-            return new QuarterMission($quarter,0,0);
110
+    private function getQuarterMission($quarter) {
111
+        if (!isset($this->quarterMissions[$quarter])) {
112
+            return new QuarterMission($quarter, 0, 0);
113 113
         }
114 114
 
115 115
         return $this->quarterMissions[$quarter];
@@ -120,6 +120,6 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function getPilotName()
122 122
     {
123
-        return $this->pilotFirstname.' '.$this->pilotLastname;
123
+        return $this->pilotFirstname . ' ' . $this->pilotLastname;
124 124
     }
125 125
 }
126 126
\ No newline at end of file
Please login to merge, or discard this patch.
class/missions/FlightMission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function __construct($id, $startPoint, $endPoint, $kilometersComment, $numberOfKilometers, DateTime $date)
59 59
     {
60
-        $this->id = (int)$id;
60
+        $this->id = (int) $id;
61 61
         $this->startPoint = $startPoint;
62 62
         $this->endPoint = $endPoint;
63 63
         $this->kilometersComment = $kilometersComment;
Please login to merge, or discard this patch.
Form/Form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public function add(FormElementInterface $element)
89 89
     {
90
-        if(array_key_exists($element->getName(), $this->elements)){
90
+        if (array_key_exists($element->getName(), $this->elements)) {
91 91
             throw new \InvalidArgumentException('Element already exists');
92 92
         }
93 93
         $this->elements[$element->getName()] = $element;
Please login to merge, or discard this patch.