diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-08 09:31:49 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-08 09:31:49 +0400 |
commit | 84eba85074891bfa6a718ae413a1d87ced4f28ca (patch) | |
tree | 6df358670aba14da2883dd68434b326edc6a50fe /plugins/DevicesDetection/functions.php | |
parent | 1fa8da9b963e99e08c829fe6491e8ccf2d1054e2 (diff) |
Applying phpstorm code style PSR refs #3771
Diffstat (limited to 'plugins/DevicesDetection/functions.php')
-rw-r--r-- | plugins/DevicesDetection/functions.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php index 92a4b3e84e..56be9c7a0e 100644 --- a/plugins/DevicesDetection/functions.php +++ b/plugins/DevicesDetection/functions.php @@ -85,12 +85,12 @@ function getDeviceTypeLabel($label) function getDeviceTypeLogo($label) { $deviceTypeLogos = Array( - "Desktop" => "normal.gif", - "Smartphone" => "smartphone.png", - "Tablet" => "tablet.png", - "Tv" => "tv.png", + "Desktop" => "normal.gif", + "Smartphone" => "smartphone.png", + "Tablet" => "tablet.png", + "Tv" => "tv.png", "Feature phone" => "mobile.gif", - "Console" => "console.gif"); + "Console" => "console.gif"); if (!array_key_exists($label, $deviceTypeLogos) || $label == "Unknown") { $label = 'unknown.gif'; @@ -135,7 +135,7 @@ function getOsFullNameExtended($label) $os = substr($label, 0, 3); $ver = substr($label, 4, 15); $name = UserAgentParserEnhanced::getOsNameFromId($os, $ver); - if(!empty($name)) { + if (!empty($name)) { return $name; } } @@ -143,7 +143,6 @@ function getOsFullNameExtended($label) } - function getOsLogoExtended($label) { $short = substr($label, 0, 3); |