Passed
Push — master ( 1b67ca...fcd6b4 )
by Michael
04:53 queued 02:47
created

header.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 *
4
 * Module: Soapbox
5
 * Version: v 1.5
6
 * Release Date: 23 August 2004
7
 * Author: hsalazar
8
 * Licence: GNU
9
 */
10
11
use Xmf\Request;
12
13
global $xoopsModule;
0 ignored issues
show
Compatibility Best Practice introduced by
Use of global functionality is not recommended; it makes your code harder to test, and less reusable.

Instead of relying on global state, we recommend one of these alternatives:

1. Pass all data via parameters

function myFunction($a, $b) {
    // Do something
}

2. Create a class that maintains your state

class MyClass {
    private $a;
    private $b;

    public function __construct($a, $b) {
        $this->a = $a;
        $this->b = $b;
    }

    public function myFunction() {
        // Do something
    }
}
Loading history...
14
include __DIR__ . '/../../mainfile.php';
15
16
require_once __DIR__ . '/class/utility.php';
17
$myts = MyTextSanitizer:: getInstance();
18