| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | namespace Boxzilla; |
| 4 | 4 | |
| 5 | 5 | class Plugin { |
| 6 | 6 | |
| 7 | + | |
| 7 | 8 | /** |
| 8 | 9 | * @var string The current version of the plugin |
| 9 | 10 | */ |
| 10 | 11 | protected $version = '1.0'; |
| @@ -42,17 +43,17 @@ | ||
| 42 | 43 | * @param string $version |
| 43 | 44 | * @param string $file |
| 44 | 45 | * @param string $dir (optional) |
| 45 | 46 | */ |
| 46 | - public function __construct( $id, $name, $version, $file, $dir = '' ) { | |
| 47 | - $this->id = $id; | |
| 48 | - $this->name = $name; | |
| 47 | + public function __construct( $id, $name, $version, $file, $dir = '' ) { | |
| 48 | + $this->id = $id; | |
| 49 | + $this->name = $name; | |
| 49 | 50 | $this->version = $version; |
| 50 | - $this->file = $file; | |
| 51 | - $this->dir = $dir; | |
| 52 | - $this->slug = plugin_basename( $file ); | |
| 51 | + $this->file = $file; | |
| 52 | + $this->dir = $dir; | |
| 53 | + $this->slug = plugin_basename( $file ); | |
| 53 | 54 | |
| 54 | - if( empty( $dir ) ) { | |
| 55 | + if ( empty( $dir ) ) { | |
| 55 | 56 | $this->dir = dirname( $file ); |
| 56 | 57 | } |
| 57 | 58 | } |
| 58 | 59 | |
| @@ -105,5 +106,5 @@ | ||
| 105 | 106 | */ |
| 106 | 107 | public function url( $path = '' ) { |
| 107 | 108 | return plugins_url( $path, $this->file() ); |
| 108 | 109 | } |
| 109 | -} | |
| 110 | +} | |