Completed
Push — trunk ( 153731...fde30a )
by SuperNova.WS
04:15
created

officer.php (1 issue)

1
<?php
2
3
/**
4
 * officer.php
5
 * Handles officer hire
6
 *
7
 * @package roleplay
8
 * @version 2.0
9
 *
10
 * copyright (c) 2009-2012 by Gorlum for http://supernova.ws
11
 *
12
 */
13
14
include('common.' . substr(strrchr(__FILE__, '.'), 1));
15
16
global $user;
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...
17
$thePage = new \Pages\Deprecated\PageMercenary();
18
$thePage->mrc_mercenary_render($user);
19