@@ -5,7 +5,6 @@ |
||
| 5 | 5 | |
| 6 | 6 | /** |
| 7 | 7 | * Load OS Class |
| 8 | - * @param string $os Operating System Identifier |
|
| 9 | 8 | * @return DeviceOS |
| 10 | 9 | */ |
| 11 | 10 | static public function load(Device $device) { |
@@ -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 |
@@ -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'); |
@@ -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; |