| @@ -1,17 +1,21 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +if (! defined('ABSPATH')) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | use Boxzilla\Boxzilla; |
| 4 | 8 | |
| 5 | 9 | /** |
| 6 | 10 | * @return Boxzilla |
| 7 | 11 | */ |
| 8 | -function boxzilla() { | |
| 12 | +function boxzilla() | |
| 13 | +{ | |
| 9 | 14 | static $instance; |
| 10 | 15 | |
| 11 | - if( is_null( $instance ) ) { | |
| 12 | - $instance = new Boxzilla(); | |
| 16 | + if ($instance === null) { | |
| 17 | + $instance = new Boxzilla(); | |
| 13 | 18 | } |
| 14 | 19 | |
| 15 | 20 | return $instance; |
| 16 | 21 | } |
| 17 | - | |