Completed
Push — trunk ( 76e427...0e7f64 )
by SuperNova.WS
05:41
created
classes/Fleet/Fleet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -406,8 +406,8 @@
 block discarded – undo
406 406
 
407 407
     $travel_data = flt_travel_data(
408 408
       $this->getFleetOwnerRecord(),
409
-      ['galaxy' => $this->fleet_start_galaxy, 'system' => $this->fleet_start_system, 'planet' => $this->fleet_start_planet,],
410
-      ['galaxy' => $this->fleet_end_galaxy, 'system' => $this->fleet_end_system, 'planet' => $this->fleet_end_planet,],
409
+      ['galaxy' => $this->fleet_start_galaxy, 'system' => $this->fleet_start_system, 'planet' => $this->fleet_start_planet, ],
410
+      ['galaxy' => $this->fleet_end_galaxy, 'system' => $this->fleet_end_system, 'planet' => $this->fleet_end_planet, ],
411 411
       $this->getShipListArray(),
412 412
       $this->speedPercentTenth
413 413
     );
Please login to merge, or discard this patch.
classes/Fleet/RecordFleet.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
    * @inheritdoc
90 90
    */
91 91
   public function update() {
92
-    if($this->getShipCount() < 1) {
92
+    if ($this->getShipCount() < 1) {
93 93
       return $this->delete();
94 94
     } else {
95 95
       return parent::update();
@@ -153,12 +153,12 @@  discard block
 block discarded – undo
153 153
 
154 154
     $shipCount = floor($shipCount);
155 155
 
156
-    if($this->shipList[$shipSnId] + $shipCount < 0) {
156
+    if ($this->shipList[$shipSnId] + $shipCount < 0) {
157 157
       throw new \Exception("Trying to deduct more ships [{$shipSnId}] '{$shipCount}' when fleet [{$this->id}] has only {$this->shipList[$shipSnId]}");
158 158
     }
159 159
 
160 160
     $this->shipList[$shipSnId] += $shipCount;
161
-    if($this->shipList[$shipSnId] < 1) {
161
+    if ($this->shipList[$shipSnId] < 1) {
162 162
       unset($this->shipList[$shipSnId]);
163 163
     }
164 164
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
     $resourceCount = ceil($resourceCount);
185 185
 
186
-    if($this->resources[$resourceId] + $resourceCount < 0) {
186
+    if ($this->resources[$resourceId] + $resourceCount < 0) {
187 187
       throw new \Exception("FLEET ERROR! Trying to deduct more resources [{$resourceId}] '{$resourceCount}' when fleet [{$this->id}] has only {$this->resources[$resourceId]}");
188 188
     }
189 189
 
Please login to merge, or discard this patch.
classes/Planet/Planet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@
 block discarded – undo
379 379
   public function dbLoadRecord($id) {
380 380
     $result = parent::dbLoadRecord($id);
381 381
 
382
-    if(!$this->isNew()) {
382
+    if (!$this->isNew()) {
383 383
       $this->resources[RES_METAL] = $this->_getContainer()->metal;
384 384
       $this->resources[RES_CRYSTAL] = $this->_getContainer()->crystal;
385 385
       $this->resources[RES_DEUTERIUM] = $this->_getContainer()->deuterium;
Please login to merge, or discard this patch.