From 2a81877664618e1c24b048d2c95f98c9038a11bd Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 25 Apr 2018 09:31:40 -0400 Subject: [PATCH] spacing --- web/includes/Monitor.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index 3e574bf98..823491aa4 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -309,7 +309,7 @@ private $control_fields = array( return $filters; } - public function save( $new_values = null ) { + public function save($new_values = null) { if ( $new_values ) { foreach ( $new_values as $k=>$v ) { @@ -317,12 +317,12 @@ private $control_fields = array( } } - $fields = array_keys( $this->defaults ); + $fields = array_keys($this->defaults); - $sql = 'UPDATE Monitors SET '.implode(', ', array_map( function($field) {return $field.'=?';}, $fields ) ) . ' WHERE Id=?'; - $values = array_map( function($field){return $this->{$field};}, $fields ); + $sql = 'UPDATE Monitors SET '.implode(', ', array_map(function($field) {return $field.'=?';}, $fields )) . ' WHERE Id=?'; + $values = array_map(function($field){return $this->{$field};}, $fields); $values[] = $this->{'Id'}; - dbQuery( $sql, $values ); + dbQuery($sql, $values); } // end function save function zmcControl( $mode=false ) {