Completed
Branch trunk (230097)
by SuperNova.WS
32:07
created
galaxy.php 1 patch
Braces   +7 added lines, -10 removed lines patch added patch discarded remove patch
@@ -80,11 +80,12 @@  discard block
 block discarded – undo
80 80
 
81 81
 $planet_precache_query = DBStaticPlanet::db_planet_list_in_system($uni_galaxy, $uni_system);
82 82
 // while($planet_row = db_fetch($planet_precache_query))
83
-if(!empty($planet_precache_query))
84
-foreach($planet_precache_query as $planet_row)
83
+if(!empty($planet_precache_query)) {
84
+  foreach($planet_precache_query as $planet_row)
85 85
 {
86 86
   $planet_list[$planet_row['planet']][$planet_row['planet_type']] = $planet_row;
87 87
 }
88
+}
88 89
 
89 90
 
90 91
 //$fleet_precache_query = doquery(
@@ -139,14 +140,12 @@  discard block
 block discarded – undo
139 140
   if ($uni_galaxyRowPlanet['destruyed'])
140 141
   {
141 142
     CheckAbandonPlanetState ($uni_galaxyRowPlanet);
142
-  }
143
-  elseif($uni_galaxyRowPlanet['id'])
143
+  } elseif($uni_galaxyRowPlanet['id'])
144 144
   {
145 145
     if($cached['users'][$uni_galaxyRowPlanet['id_owner']])
146 146
     {
147 147
       $uni_galaxyRowUser = $cached['users'][$uni_galaxyRowPlanet['id_owner']];
148
-    }
149
-    else
148
+    } else
150 149
     {
151 150
       $uni_galaxyRowUser = db_user_by_id($uni_galaxyRowPlanet['id_owner']);
152 151
       $cached['users'][$uni_galaxyRowUser['id']] = $uni_galaxyRowUser;
@@ -168,8 +167,7 @@  discard block
 block discarded – undo
168 167
         if($cached['allies'][$uni_galaxyRowUser['ally_id']])
169 168
         {
170 169
           $allyquery = $cached['allies'][$uni_galaxyRowUser['ally_id']];
171
-        }
172
-        else
170
+        } else
173 171
         {
174 172
           $allyquery = doquery("SELECT * FROM `{{alliance}}` WHERE `id` = '{$uni_galaxyRowUser['ally_id']}';", '', true);
175 173
           $cached['allies'][$uni_galaxyRowUser['ally_id']] = $allyquery;
@@ -188,8 +186,7 @@  discard block
 block discarded – undo
188 186
       if ($uni_galaxyRowMoon['destruyed'])
189 187
       {
190 188
         CheckAbandonPlanetState($uni_galaxyRowMoon);
191
-      }
192
-      else
189
+      } else
193 190
       {
194 191
         $moon_fleet_id = 0;
195 192
         $fleets_to_planet = flt_get_fleets_to_planet(false, $fleet_list[$Planet][PT_MOON]);
Please login to merge, or discard this patch.
language/en/menu.mo.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 * DO NOT CHANGE
27 27
 */
28 28
 
29
-if (!defined('INSIDE')) die();
29
+if (!defined('INSIDE')) {
30
+  die();
31
+}
30 32
 
31 33
 
32 34
 $a_lang_array = (array(
Please login to merge, or discard this patch.
language/en/buildings.mo.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 * DO NOT CHANGE
27 27
 */
28 28
 
29
-if (!defined('INSIDE')) die();
29
+if (!defined('INSIDE')) {
30
+  die();
31
+}
30 32
 
31 33
 
32 34
 $a_lang_array = (array(
Please login to merge, or discard this patch.
language/en/admin.mo.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 * DO NOT CHANGE
27 27
 */
28 28
 
29
-if (!defined('INSIDE')) die();
29
+if (!defined('INSIDE')) {
30
+  die();
31
+}
30 32
 
31 33
 
32 34
 $a_lang_array = (array(
Please login to merge, or discard this patch.
language/en/overview.mo.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 * DO NOT CHANGE
27 27
 */
28 28
 
29
-if (!defined('INSIDE')) die();
29
+if (!defined('INSIDE')) {
30
+  die();
31
+}
30 32
 
31 33
 
32 34
 $a_lang_array = (array(
Please login to merge, or discard this patch.
language/en/quest.mo.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 * DO NOT CHANGE
27 27
 */
28 28
 
29
-if (!defined('INSIDE')) die();
29
+if (!defined('INSIDE')) {
30
+  die();
31
+}
30 32
 
31 33
 
32 34
 $a_lang_array = (array(
Please login to merge, or discard this patch.
language/en/messages.mo.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 * DO NOT CHANGE
27 27
 */
28 28
 
29
-if (!defined('INSIDE')) die();
29
+if (!defined('INSIDE')) {
30
+  die();
31
+}
30 32
 
31 33
 
32 34
 $a_lang_array = array(
Please login to merge, or discard this patch.
language/en/universe.mo.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 * DO NOT CHANGE
27 27
 */
28 28
 
29
-if (!defined('INSIDE')) die();
29
+if (!defined('INSIDE')) {
30
+  die();
31
+}
30 32
 
31 33
 
32 34
 $a_lang_array = array(
Please login to merge, or discard this patch.
language/en/market.mo.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 * DO NOT CHANGE
27 27
 */
28 28
 
29
-if (!defined('INSIDE')) die();
29
+if (!defined('INSIDE')) {
30
+  die();
31
+}
30 32
 
31 33
 
32 34
 $a_lang_array = (array(
Please login to merge, or discard this patch.