Completed
Pull Request — develop (#44)
by Daniel
07:16
created
app/Device.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
app/OS/Linux.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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'
Please login to merge, or discard this patch.
app/OS/AbstractOS.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/DeviceOS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.