Completed
Push — trunk ( 56d310...72cafa )
by SuperNova.WS
04:23
created
classes/TextModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
       }
102 102
     }
103 103
 
104
-    if(!isset($next)) {
104
+    if (!isset($next)) {
105 105
       $next = new TextEntity();
106 106
     }
107 107
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
       $prev = $this->getById($currentText->prev);
120 120
     }
121 121
 
122
-    if(!isset($prev)) {
122
+    if (!isset($prev)) {
123 123
       $prev = new TextEntity();
124 124
     }
125 125
 
Please login to merge, or discard this patch.
classes/DBAL/DbQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
    * @return string
339 339
    */
340 340
   protected function stringValue($value) {
341
-    return "'" . $this->escape((string)$value) . "'";
341
+    return "'" . $this->escape((string) $value) . "'";
342 342
   }
343 343
 
344 344
   /**
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
    * @return string
350 350
    */
351 351
   public function quote($fieldName) {
352
-    return "`" . $this->escape((string)$fieldName) . "`";
352
+    return "`" . $this->escape((string) $fieldName) . "`";
353 353
   }
354 354
 
355 355
   /**
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
    * @return string
397 397
    */
398 398
   protected function quoteTable($tableName) {
399
-    return "`{{" . $this->escape((string)$tableName) . "}}`";
399
+    return "`{{" . $this->escape((string) $tableName) . "}}`";
400 400
   }
401 401
 
402 402
   /**
Please login to merge, or discard this patch.
classes/TextEntity.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
   public function toArray() {
45 45
     $tutorial = array();
46
-    foreach($this->keys() as $key) {
46
+    foreach ($this->keys() as $key) {
47 47
       $tutorial[$key] = $this->$key;
48 48
     }
49 49
 
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  discard block
 block discarded – undo
8 8
  * @copyright 2008 by ??????? for XNova
9 9
  */
10 10
 
11
-define('INSIDE'  , true);
12
-define('INSTALL' , false);
11
+define('INSIDE', true);
12
+define('INSTALL', false);
13 13
 define('IN_ADMIN', true);
14 14
 require('../common.' . substr(strrchr(__FILE__, '.'), 1));
15 15
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 $template = gettemplate('admin/settings', true);
21 21
 
22
-if(sys_get_param('save')) {
22
+if (sys_get_param('save')) {
23 23
   classSupernova::$config->game_name               = sys_get_param_str_unsafe('game_name');
24 24
   classSupernova::$config->game_mode               = sys_get_param_int('game_mode');
25 25
   classSupernova::$config->game_speed              = sys_get_param_float('game_speed', 1);
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
   classSupernova::$config->url_faq                 = sys_get_param_str_unsafe('url_faq');
30 30
   classSupernova::$config->url_forum               = sys_get_param_str_unsafe('url_forum');
31 31
   classSupernova::$config->url_rules               = sys_get_param_str_unsafe('url_rules');
32
-  classSupernova::$config->url_purchase_metamatter         = sys_get_param_str_unsafe('url_purchase_metamatter');
32
+  classSupernova::$config->url_purchase_metamatter = sys_get_param_str_unsafe('url_purchase_metamatter');
33 33
   classSupernova::$config->game_disable            = sys_get_param_int('game_disable');
34 34
   classSupernova::$config->game_disable_reason     = sys_get_param_str_unsafe('game_disable_reason');
35 35
   classSupernova::$config->server_updater_check_auto = sys_get_param_int('server_updater_check_auto');
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
   classSupernova::$config->stats_schedule          = sys_get_param_str('stats_schedule');
97 97
 
98 98
   classSupernova::$config->empire_mercenary_base_period = sys_get_param_int('empire_mercenary_base_period');
99
-  if(classSupernova::$config->empire_mercenary_temporary != sys_get_param_int('empire_mercenary_temporary')) {
100
-    if(classSupernova::$config->empire_mercenary_temporary) {
99
+  if (classSupernova::$config->empire_mercenary_temporary != sys_get_param_int('empire_mercenary_temporary')) {
100
+    if (classSupernova::$config->empire_mercenary_temporary) {
101 101
       DBStaticUnit::db_unit_list_admin_delete_mercenaries_finished();
102 102
     } else {
103 103
       DBStaticUnit::db_unit_list_admin_set_mercenaries_expire_time(classSupernova::$config->empire_mercenary_base_period);
@@ -140,21 +140,21 @@  discard block
 block discarded – undo
140 140
 //  'STATS_SCHEDULE' => classSupernova::$config->stats_hide_player_list,
141 141
 ));
142 142
 
143
-foreach($lang['sys_game_disable_reason'] as $id => $name) {
143
+foreach ($lang['sys_game_disable_reason'] as $id => $name) {
144 144
   $template->assign_block_vars('sys_game_disable_reason', array(
145 145
     'ID'   => $id,
146 146
     'NAME' => $name,
147 147
   ));
148 148
 }
149 149
 
150
-foreach($lang['sys_game_mode'] as $mode_id => $mode_name) {
150
+foreach ($lang['sys_game_mode'] as $mode_id => $mode_name) {
151 151
   $template->assign_block_vars('game_modes', array(
152 152
     'ID'   => $mode_id,
153 153
     'NAME' => $mode_name,
154 154
   ));
155 155
 }
156 156
 
157
-foreach($lang['adm_opt_ver_response'] as $ver_id => $ver_response) {
157
+foreach ($lang['adm_opt_ver_response'] as $ver_id => $ver_response) {
158 158
   $template->assign_block_vars('ver_response', array(
159 159
     'ID'   => $ver_id,
160 160
     'NAME' => js_safe_string($ver_response),
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 }
163 163
 
164 164
 $lang_list = lng_get_list();
165
-foreach($lang_list as $lang_id => $lang_data) {
165
+foreach ($lang_list as $lang_id => $lang_data) {
166 166
   $template->assign_block_vars('game_languages', array(
167 167
     'ID'   => $lang_id,
168 168
     'NAME' => "{$lang_data['LANG_NAME_NATIVE']} ({$lang_data['LANG_NAME_ENGLISH']})",
Please login to merge, or discard this patch.
admin/adm_quest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
  *
8 8
  */
9 9
 
10
-define('INSIDE'  , true);
11
-define('INSTALL' , false);
12
-define('IN_ADMIN'  , true);
10
+define('INSIDE', true);
11
+define('INSTALL', false);
12
+define('IN_ADMIN', true);
13 13
 
14 14
 require('../common.' . substr(strrchr(__FILE__, '.'), 1));
15 15
 
Please login to merge, or discard this patch.
admin/planet_edit.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,30 +20,30 @@
 block discarded – undo
20 20
 $planet_id = sys_get_param_id('planet_id');
21 21
 
22 22
 $unit_list = sys_get_param('unit_list');
23
-if(sys_get_param('change_data') && !empty($unit_list))
23
+if (sys_get_param('change_data') && !empty($unit_list))
24 24
 {
25 25
   $query_string = array();
26
-  foreach($unit_list as $unit_id => $unit_amount)
26
+  foreach ($unit_list as $unit_id => $unit_amount)
27 27
   {
28
-    if($unit_query_string = admin_planet_edit_query_string($unit_id, $unit_amount, $mode))
28
+    if ($unit_query_string = admin_planet_edit_query_string($unit_id, $unit_amount, $mode))
29 29
     {
30 30
       $query_string[] = $unit_query_string;
31 31
     }
32 32
   }
33 33
 
34
-  if(!empty($query_string))
34
+  if (!empty($query_string))
35 35
   {
36 36
     DBStaticPlanet::db_planet_set_by_id($planet_id, implode(', ', $query_string));
37 37
   }
38 38
 }
39 39
 
40
-if($planet_id)
40
+if ($planet_id)
41 41
 {
42 42
   $edit_planet_row = DBStaticPlanet::db_planet_by_id($planet_id);
43 43
   admin_planet_edit_template($template, $edit_planet_row, $mode);
44 44
 }
45 45
 
46
-foreach($admin_planet_edit_mode_list as $page_mode => $mode_locale)
46
+foreach ($admin_planet_edit_mode_list as $page_mode => $mode_locale)
47 47
 {
48 48
   $template->assign_block_vars('page_menu', array(
49 49
     'ID' => $page_mode,
Please login to merge, or discard this patch.
admin/add_moon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 $template = gettemplate("admin/add_moon", true);
21 21
 
22
-if(sys_get_param_str('mode') == 'addit')
22
+if (sys_get_param_str('mode') == 'addit')
23 23
 {
24 24
   $PlanetID = sys_get_param_id('user');
25 25
   $MoonName = sys_get_param_str('name');
Please login to merge, or discard this patch.
admin/adm_flying_fleets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 //while($CurrentFleet = db_fetch($FlyingFleets))
22 22
 
23 23
 $all_flying_fleets = db_fleet_list('', DB_SELECT_PLAIN);
24
-foreach($all_flying_fleets as $fleet_id => $CurrentFleet) {
24
+foreach ($all_flying_fleets as $fleet_id => $CurrentFleet) {
25 25
   $FleetOwner = db_user_by_id($CurrentFleet['fleet_owner']);
26 26
   $TargetOwner = db_user_by_id($CurrentFleet['fleet_target_owner']);
27 27
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
   $fleet_data['fleet']['STAY_TIME_INT'] = $CurrentFleet['fleet_end_stay'];
33 33
 
34 34
   $template->assign_block_vars('fleets', $fleet_data['fleet']);
35
-  foreach($fleet_data['ships'] as $ship_data) {
35
+  foreach ($fleet_data['ships'] as $ship_data) {
36 36
     $template->assign_block_vars('fleets.ships', $ship_data);
37 37
   }
38 38
 }
Please login to merge, or discard this patch.
includes/pages/admin/user_view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,11 +186,11 @@
 block discarded – undo
186 186
   }
187 187
 
188 188
   $exclude = $user_row;
189
-  foreach($blocks as $title => $fields) {
189
+  foreach ($blocks as $title => $fields) {
190 190
     userBlockAssign($exclude, $template, $title, $fields);
191 191
   }
192 192
 
193
-  if(!empty($exclude)) {
193
+  if (!empty($exclude)) {
194 194
     userBlockAssign($exclude, $template, '!!! НЕИЗВЕСТНЫЕ ПАРАМЕТРЫ !!!', array_keys($exclude));
195 195
   }
196 196
 
Please login to merge, or discard this patch.