Test Failed
Push — trunk ( dfa631...e02d87 )
by SuperNova.WS
03:51
created
classes/SnTemplate.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $insert_position = $is_positioned == '-' ? 0 : count($menu);
129 129
       }
130 130
 
131
-      $insert_position     += $is_positioned == '+' ? 1 : 0;
131
+      $insert_position += $is_positioned == '+' ? 1 : 0;
132 132
       $spliced             = array_splice($menu, $insert_position, count($menu) - $insert_position);
133 133
       $menu[$menu_item_id] = $menu_item;
134 134
 
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
       'LANG'     => $language ? $language : '',
644 644
       'referral' => $id_ref ? '&id_ref=' . $id_ref : '',
645 645
 
646
-      'REQUEST_PARAMS' => !empty($url_params) ? '?' . implode('&', $url_params) : '',// "?lang={$language}" . ($id_ref ? "&id_ref={$id_ref}" : ''),
646
+      'REQUEST_PARAMS' => !empty($url_params) ? '?' . implode('&', $url_params) : '', // "?lang={$language}" . ($id_ref ? "&id_ref={$id_ref}" : ''),
647 647
       'FILENAME'       => basename($_SERVER['PHP_SELF']),
648 648
     ));
649 649
 
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
       'QUE_ID'   => QUE_RESEARCH,
871 871
       'QUE_HTML' => 'topnav',
872 872
 
873
-      'RESEARCH_ONGOING' => (boolean)$user['que'],
873
+      'RESEARCH_ONGOING' => (boolean) $user['que'],
874 874
 
875 875
       'TIME_TEXT'       => sprintf($str_date_format, $time_now_parsed['year'], $lang['months'][$time_now_parsed['mon']], $time_now_parsed['mday'],
876 876
         $time_now_parsed['hours'], $time_now_parsed['minutes'], $time_now_parsed['seconds']
@@ -1040,7 +1040,7 @@  discard block
 block discarded – undo
1040 1040
 
1041 1041
     $isRenderGlobal = is_object($page) && isset($template_result['GLOBAL_DISPLAY_HEADER']) ? $template_result['GLOBAL_DISPLAY_HEADER'] : true;
1042 1042
 
1043
-    if(self::getCurrentTemplate()->isRenderWhole()) {
1043
+    if (self::getCurrentTemplate()->isRenderWhole()) {
1044 1044
       ob_start();
1045 1045
     } else {
1046 1046
       // Global header
@@ -1071,18 +1071,18 @@  discard block
 block discarded – undo
1071 1071
 
1072 1072
         // Checking that no duplicates would be merged from template_result to template itself
1073 1073
         $filtered = [];
1074
-        if(!empty($template_result['.']['result']) && is_array($template_result['.']['result'])) {
1075
-          foreach($template_result['.']['result'] as $message) {
1076
-            if(empty($message['MESSAGE'])) {
1074
+        if (!empty($template_result['.']['result']) && is_array($template_result['.']['result'])) {
1075
+          foreach ($template_result['.']['result'] as $message) {
1076
+            if (empty($message['MESSAGE'])) {
1077 1077
               continue;
1078 1078
             }
1079 1079
 
1080
-            foreach($resultTemplate->_tpldata['result'] as $tplData) {
1081
-              if(empty($tplData['MESSAGE'])) {
1080
+            foreach ($resultTemplate->_tpldata['result'] as $tplData) {
1081
+              if (empty($tplData['MESSAGE'])) {
1082 1082
                 continue;
1083 1083
               }
1084 1084
 
1085
-              if($tplData['MESSAGE'] == $message['MESSAGE']) {
1085
+              if ($tplData['MESSAGE'] == $message['MESSAGE']) {
1086 1086
                 continue 2;
1087 1087
               }
1088 1088
             }
@@ -1137,7 +1137,7 @@  discard block
 block discarded – undo
1137 1137
       SnTemplate::displayP($resultTemplate);
1138 1138
     }
1139 1139
 
1140
-    if(self::getCurrentTemplate()->isRenderWhole()) {
1140
+    if (self::getCurrentTemplate()->isRenderWhole()) {
1141 1141
       $renderedContent = ob_get_clean();
1142 1142
       // Global header
1143 1143
       if ($isRenderGlobal) {
@@ -1156,7 +1156,7 @@  discard block
 block discarded – undo
1156 1156
       SnTemplate::renderFooter($page, $template_result);
1157 1157
     }
1158 1158
 
1159
-    $user['authlevel'] >= 3 && $config->debug ? $debug->echo_log() : false;;
1159
+    $user['authlevel'] >= 3 && $config->debug ? $debug->echo_log() : false; ;
1160 1160
 
1161 1161
     sn_db_disconnect();
1162 1162
 
Please login to merge, or discard this patch.
metamatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     }
161 161
 
162 162
     if (is_array($pay_link) && in_array($pay_link['PAY_LINK_METHOD'], array('POST', 'GET', 'LINK', 'STEP', 'REDIRECT'))) {
163
-      if($pay_link['PAY_LINK_METHOD'] == 'REDIRECT') {
163
+      if ($pay_link['PAY_LINK_METHOD'] == 'REDIRECT') {
164 164
         sys_redirect($pay_link['PAY_LINK_URL']);
165 165
       }
166 166
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
   'PLAYER_CURRENCY'              => $player_currency,
235 235
   'PLAYER_CURRENCY_PRICE_PER_MM' => sn_module_payment::currency_convert(1, $player_currency, 'MM_', 10),
236 236
 
237
-  'UNIT_AMOUNT'                 => (float)$request['metamatter'],
237
+  'UNIT_AMOUNT'                 => (float) $request['metamatter'],
238 238
   'UNIT_AMOUNT_TEXT'            => HelperString::numberFloorAndFormat($request['metamatter']),
239 239
   'UNIT_AMOUNT_BONUS_PERCENT'   => $bonus_percent,
240 240
   'UNIT_AMOUNT_TEXT_DISCOUNTED' => $income_metamatter_text,
Please login to merge, or discard this patch.
classes/Payment/PaymentsMethodsActive.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,10 +160,10 @@
 block discarded – undo
160 160
         $paymentMethodId = 0;
161 161
       }
162 162
 
163
-      if(!$paymentMethodId) {
163
+      if (!$paymentMethodId) {
164 164
         $module = $this->modulesInstalled[$moduleName];
165 165
         $methodsOnModule = $module->getMethodList();
166
-        if(count($methodsOnModule) == 1) {
166
+        if (count($methodsOnModule) == 1) {
167 167
           $paymentMethodId = HelperArray::array_key_first($methodsOnModule);
168 168
         }
169 169
       }
Please login to merge, or discard this patch.