Issues (1369)

dark_matter.php (2 issues)

1
<?php
2
3
include_once('common.' . substr(strrchr(__FILE__, '.'), 1));
4
5
if(SN::$gc->modules->countModulesInGroup('payment') && !SN_GOOGLE) {
6
  sys_redirect('metamatter.php');
7
}
8
9
$template = SnTemplate::gettemplate('dark_matter', true);
0 ignored issues
show
true of type true is incompatible with the type null|template expected by parameter $template of SnTemplate::gettemplate(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
$template = SnTemplate::gettemplate('dark_matter', /** @scrutinizer ignore-type */ true);
Loading history...
10
11
lng_include('infos');
12
$template->assign_vars(array(
13
  'URL_DARK_MATTER' => SN::$config->url_dark_matter,
0 ignored issues
show
Bug Best Practice introduced by
The property url_dark_matter does not exist on classConfig. Since you implemented __get, consider adding a @property annotation.
Loading history...
14
  'DARK_MATTER_DESCRIPTION' => $lang['info'][RES_DARK_MATTER]['description'],
15
16
  'PAYMENT_AVAILABLE' => SN::$gc->modules->countModulesInGroup('payment') && !SN_GOOGLE,
17
18
  'PAGE_HEADER' =>$lang['sys_dark_matter'],
19
));
20
21
SnTemplate::display($template, $lang['sys_dark_matter']);
22