Completed
Push — feature/detail_on_hover ( d04633 )
by Laurent
29s
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.
Http/Web/Requests/Request.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
      *
14 14
      * @return mixed
15 15
      */
16
-    public function getParam($name, $defaultValue = null){
17
-        if($_POST[$name]){
16
+    public function getParam($name, $defaultValue = null) {
17
+        if ($_POST[$name]) {
18 18
             return $_POST[$name];
19 19
         }
20 20
 
21
-        if($_GET[$name]){
21
+        if ($_GET[$name]) {
22 22
             return $_GET[$name];
23 23
         }
24 24
 
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @return bool
30 30
      */
31
-    public function isPost(){
31
+    public function isPost() {
32 32
         return strtoupper($_SERVER['REQUEST_METHOD']) === 'POST';
33 33
     }
34 34
 
35 35
     /**
36 36
      * @return array
37 37
      */
38
-    public function getPostParameters(){
38
+    public function getPostParameters() {
39 39
         return $_POST;
40 40
     }
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
Http/Web/Form/SupplierBillSelect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
         }
37 37
 
38 38
         $sql = 'SELECT f.rowid, f.ref as ref_supplier, f.total_ttc, society.nom';
39
-        $sql.= ' FROM '.MAIN_DB_PREFIX.'facture_fourn as f';
40
-        $sql.= ' INNER JOIN '.MAIN_DB_PREFIX.'societe as society ON society.rowid = f.fk_soc';
41
-        $sql.= ' ORDER BY f.datec DESC';
39
+        $sql .= ' FROM ' . MAIN_DB_PREFIX . 'facture_fourn as f';
40
+        $sql .= ' INNER JOIN ' . MAIN_DB_PREFIX . 'societe as society ON society.rowid = f.fk_soc';
41
+        $sql .= ' ORDER BY f.datec DESC';
42 42
 
43 43
         $resql = $this->db->query($sql);
44 44
         if ($resql) {
Please login to merge, or discard this patch.
class/card/TabCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * @return array
54 54
      */
55 55
     public function toArray() {
56
-        return array_map(function(Tab $tab){
56
+        return array_map(function(Tab $tab) {
57 57
             return $tab->toArray();
58 58
         }, $this->tabs);
59 59
     }
Please login to merge, or discard this patch.
Infrastructure/Damage/Query/Repository/GetPilotDamagesQueryRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,16 +35,16 @@
 block discarded – undo
35 35
     public function query($year)
36 36
     {
37 37
         $sql = 'SELECT damage.amount as amount, damage.billed as billed, damage.author_id as author, author.firstname as author_name';
38
-        $sql.=' FROM '.MAIN_DB_PREFIX.'bbc_flight_damages as damage';
39
-        $sql.=' INNER JOIN '.MAIN_DB_PREFIX.'bbc_vols as flight ON flight.rowid = damage.flight_id';
40
-        $sql.=' INNER JOIN '.MAIN_DB_PREFIX.'user as author ON author.rowid = damage.author_id';
41
-        $sql.=' WHERE YEAR(flight.date) = '.$this->db->escape($year);
38
+        $sql .= ' FROM ' . MAIN_DB_PREFIX . 'bbc_flight_damages as damage';
39
+        $sql .= ' INNER JOIN ' . MAIN_DB_PREFIX . 'bbc_vols as flight ON flight.rowid = damage.flight_id';
40
+        $sql .= ' INNER JOIN ' . MAIN_DB_PREFIX . 'user as author ON author.rowid = damage.author_id';
41
+        $sql .= ' WHERE YEAR(flight.date) = ' . $this->db->escape($year);
42 42
 
43 43
         $resql = $this->db->query($sql);
44 44
         if ($resql) {
45 45
             $num = $this->db->num_rows($resql);
46 46
             if ($num) {
47
-                for($i = 0; $i < $num ; $i++) {
47
+                for ($i = 0; $i < $num; $i++) {
48 48
                     $properties = $this->db->fetch_array($resql);
49 49
                     $damage = TotalDamage::fromArray($properties);
50 50
                     yield $damage;
Please login to merge, or discard this patch.
Application/Damage/Command/InvoiceDamageCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @throws \Exception
30 30
      */
31
-    public function __invoke(InvoiceDamageCommand $command){
31
+    public function __invoke(InvoiceDamageCommand $command) {
32 32
         $damage = $this->damageRepository->getById(DamageId::create($command->getDamageId()));
33 33
         $damage = $damage->invoice();
34 34
         $this->damageRepository->save($damage);
Please login to merge, or discard this patch.
Http/Web/templates/damage/view.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
 ?>
54 54
 
55 55
 <table class="border centpercent">
56
-    <tr><td class="fieldrequired">Auteur</td><td><?php echo $damage->getAuthorName();?></td></tr>
57
-    <tr><td class="fieldrequired">Montant</td><td><?php echo $damage->getAmount();?>€</td></tr>
58
-    <tr><td class="fieldrequired">Facturé</td><td><?php echo $damage->isInvoiced()? 'Oui' : 'Non';?></td></tr>
56
+    <tr><td class="fieldrequired">Auteur</td><td><?php echo $damage->getAuthorName(); ?></td></tr>
57
+    <tr><td class="fieldrequired">Montant</td><td><?php echo $damage->getAmount(); ?>€</td></tr>
58
+    <tr><td class="fieldrequired">Facturé</td><td><?php echo $damage->isInvoiced() ? 'Oui' : 'Non'; ?></td></tr>
59 59
     <tr>
60 60
         <td class="fieldrequired">Vol</td>
61 61
         <td>
Please login to merge, or discard this patch.
Infrastructure/Common/Routes/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      *
66 66
      * @return bool
67 67
      */
68
-    public function match($route){
68
+    public function match($route) {
69 69
         return $this->name === $route;
70 70
     }
71 71
 
Please login to merge, or discard this patch.