@@ -78,7 +78,7 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | public function logo() { |
| 80 | 80 | $os = DeviceOS::load($this); |
| 81 | - if( isset($os->icon) ){ |
|
| 81 | + if (isset($os->icon)) { |
|
| 82 | 82 | return asset('images/os/'.$os->icon.'.png'); |
| 83 | 83 | } |
| 84 | 84 | return asset('images/os/generic.png'); |
@@ -7,32 +7,32 @@ |
||
| 7 | 7 | protected $text = 'Linux'; |
| 8 | 8 | protected $icon = 'linux'; |
| 9 | 9 | protected $attrib = array( |
| 10 | - 'ifXmcbc' => true, |
|
| 11 | - 'ifname' => true, |
|
| 12 | - ); |
|
| 10 | + 'ifXmcbc' => true, |
|
| 11 | + 'ifname' => true, |
|
| 12 | + ); |
|
| 13 | 13 | protected $overlib = array( |
| 14 | - array( |
|
| 15 | - 'graph' => 'device_processor', |
|
| 16 | - 'text' => 'Processor Usage' |
|
| 17 | - ), |
|
| 18 | - array( |
|
| 19 | - 'graph' => 'device_ucd_memory', |
|
| 20 | - 'text' => 'Memory Usage' |
|
| 21 | - ), |
|
| 22 | - array( |
|
| 23 | - 'graph' => 'device_storage', |
|
| 24 | - 'text' => 'Storage Usage' |
|
| 25 | - ), |
|
| 26 | - ); |
|
| 14 | + array( |
|
| 15 | + 'graph' => 'device_processor', |
|
| 16 | + 'text' => 'Processor Usage' |
|
| 17 | + ), |
|
| 18 | + array( |
|
| 19 | + 'graph' => 'device_ucd_memory', |
|
| 20 | + 'text' => 'Memory Usage' |
|
| 21 | + ), |
|
| 22 | + array( |
|
| 23 | + 'graph' => 'device_storage', |
|
| 24 | + 'text' => 'Storage Usage' |
|
| 25 | + ), |
|
| 26 | + ); |
|
| 27 | 27 | protected $derivates = array( |
| 28 | - 'Debian' => array( |
|
| 29 | - 'icon' => 'debian', |
|
| 30 | - ), |
|
| 31 | - 'CentOS' => array( |
|
| 32 | - 'icon' => 'centos', |
|
| 33 | - ), |
|
| 34 | - 'Ubuntu' => array( |
|
| 35 | - 'icon' => 'ubuntu', |
|
| 36 | - ), |
|
| 37 | - ); |
|
| 28 | + 'Debian' => array( |
|
| 29 | + 'icon' => 'debian', |
|
| 30 | + ), |
|
| 31 | + 'CentOS' => array( |
|
| 32 | + 'icon' => 'centos', |
|
| 33 | + ), |
|
| 34 | + 'Ubuntu' => array( |
|
| 35 | + 'icon' => 'ubuntu', |
|
| 36 | + ), |
|
| 37 | + ); |
|
| 38 | 38 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | 'ifXmcbc' => true, |
| 11 | 11 | 'ifname' => true, |
| 12 | 12 | ); |
| 13 | - protected $overlib = array( |
|
| 13 | + protected $overlib = array( |
|
| 14 | 14 | array( |
| 15 | 15 | 'graph' => 'device_processor', |
| 16 | 16 | 'text' => 'Processor Usage' |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | * @return mixed |
| 16 | 16 | */ |
| 17 | 17 | final public function __get($e) { |
| 18 | - if( isset($this->$e) ) { |
|
| 19 | - list($tmp) = explode(" ",$this->device->features); |
|
| 20 | - if( isset($this->derivates[$tmp][$e]) ) { |
|
| 18 | + if (isset($this->$e)) { |
|
| 19 | + list($tmp) = explode(" ", $this->device->features); |
|
| 20 | + if (isset($this->derivates[$tmp][$e])) { |
|
| 21 | 21 | return $this->derivates[$tmp][$e]; |
| 22 | 22 | } |
| 23 | 23 | return $this->$e; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | static public function load(Device $device) { |
| 12 | 12 | $class = 'App\\OS\\'.ucfirst(strtolower($device->os)); |
| 13 | - if( class_exists($class) ) { |
|
| 13 | + if (class_exists($class)) { |
|
| 14 | 14 | return new $class($device); |
| 15 | 15 | } |
| 16 | 16 | return false; //FIXME: Raise Exception |