Passed
Push — trunk ( 9d93ee...00dc82 )
by SuperNova.WS
03:42
created
includes/general/formatters.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,10 +112,10 @@  discard block
 block discarded – undo
112 112
     $rexep = "#" . strtr(preg_quote($format), $masks) . "#";
113 113
     if (preg_match($rexep, $date, $out)) {
114 114
       $ret = array(
115
-        "tm_sec"  => (int)$out['S'],
116
-        "tm_min"  => (int)$out['M'],
117
-        "tm_hour" => (int)$out['H'],
118
-        "tm_mday" => (int)$out['d'],
115
+        "tm_sec"  => (int) $out['S'],
116
+        "tm_min"  => (int) $out['M'],
117
+        "tm_hour" => (int) $out['H'],
118
+        "tm_mday" => (int) $out['d'],
119 119
         "tm_mon"  => $out['m'] ? $out['m'] - 1 : 0,
120 120
         "tm_year" => $out['Y'] > 1900 ? $out['Y'] - 1900 : 0,
121 121
       );
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
  * @return int
151 151
  */
152 152
 function datePart($fullDate) {
153
-  return (int)strtotime(date('Y-m-d', $fullDate));
153
+  return (int) strtotime(date('Y-m-d', $fullDate));
154 154
 }
155 155
 
156 156
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
    * @return bool
179 179
    * @throws ErrorException
180 180
    */
181
-    function ($errno, $errstr, $errfile, $errline) {
181
+    function($errno, $errstr, $errfile, $errline) {
182 182
       throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
183 183
     }
184 184
   );
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Spacing   +7 added lines, -7 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
   SN::$config->game_name               = sys_get_param_str_unsafe('game_name');
24 24
   SN::$config->game_mode               = sys_get_param_int('game_mode');
25 25
   SN::$config->game_speed              = sys_get_param_float('game_speed', 1);
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
   SN::$config->url_faq                 = sys_get_param_str_unsafe('url_faq');
30 30
   SN::$config->url_forum               = sys_get_param_str_unsafe('url_forum');
31 31
   SN::$config->url_rules               = sys_get_param_str_unsafe('url_rules');
32
-  SN::$config->url_purchase_metamatter         = sys_get_param_str_unsafe('url_purchase_metamatter');
32
+  SN::$config->url_purchase_metamatter = sys_get_param_str_unsafe('url_purchase_metamatter');
33 33
   SN::$config->game_disable            = sys_get_param_int('game_disable');
34 34
   SN::$config->game_disable_reason     = sys_get_param_str_unsafe('game_disable_reason');
35 35
   SN::$config->server_updater_check_auto = sys_get_param_int('server_updater_check_auto');
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
   SN::$config->stats_schedule          = sys_get_param_str('stats_schedule');
100 100
 
101 101
   SN::$config->empire_mercenary_base_period = sys_get_param_int('empire_mercenary_base_period');
102
-  if(SN::$config->empire_mercenary_temporary != sys_get_param_int('empire_mercenary_temporary')) {
103
-    if(SN::$config->empire_mercenary_temporary) {
102
+  if (SN::$config->empire_mercenary_temporary != sys_get_param_int('empire_mercenary_temporary')) {
103
+    if (SN::$config->empire_mercenary_temporary) {
104 104
       DBStaticUnit::db_unit_list_admin_delete_mercenaries_finished();
105 105
     } else {
106 106
       DBStaticUnit::db_unit_list_admin_set_mercenaries_expire_time(SN::$config->empire_mercenary_base_period);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 tpl_assign_select($template, 'ver_response', SN::$lang['adm_opt_ver_response'], 'ID', 'NAME');
151 151
 
152 152
 $lang_list = lng_get_list();
153
-foreach($lang_list as $lang_id => $lang_data) {
153
+foreach ($lang_list as $lang_id => $lang_data) {
154 154
   $template->assign_block_vars('game_languages', array(
155 155
     'ID'   => $lang_id,
156 156
     'NAME' => "{$lang_data['LANG_NAME_NATIVE']} ({$lang_data['LANG_NAME_ENGLISH']})",
Please login to merge, or discard this patch.