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 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -7,32 +7,32 @@
 block discarded – undo
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
 }
Please login to merge, or discard this 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.