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