From 36724e8dc38f7318e498eec5c85bcbd6083f41a2 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 23 May 2016 22:51:38 +0200 Subject: [PATCH] indentation --- i3status.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/i3status.php b/i3status.php index d37a77a..f81a02c 100755 --- a/i3status.php +++ b/i3status.php @@ -194,20 +194,22 @@ function get_the_bandwith($ifaces=array()) * SENSORS * */ -function get_sensors() { - $sensors = array(); +function get_sensors() +{ + $sensors = array(); - preg_match_all('/^([^:]+): +\+([0-9.]+)°C +\(high = \+([0-9.]+)°C, crit = \+([0-9.]+)°C\)/iU', shell_exec('sensors | grep "°C"'), $datas, PREG_SET_ORDER); + preg_match_all('/^([^:]+): +\+([0-9.]+)°C +\(high = \+([0-9.]+)°C, crit = \+([0-9.]+)°C\)/iU', shell_exec('sensors | grep "°C"'), $datas, PREG_SET_ORDER); - var_dump($datas); - foreach($datas as $data) { - } + var_dump($datas); + foreach ($datas as $data) { + } - return $sensors; + return $sensors; } -function get_sensor($item) { - get_sensors(); +function get_sensor($item) +{ + get_sensors(); } /**