From 48ff48090746fd0395a83468b8c4527d2b744cd1 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 3 Apr 2018 10:36:14 -0700 Subject: [PATCH] whitespace --- web/includes/Group.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/web/includes/Group.php b/web/includes/Group.php index d6edba7ca..77ff3971d 100644 --- a/web/includes/Group.php +++ b/web/includes/Group.php @@ -2,19 +2,19 @@ class Group { -public $defaults = array( - 'Id' => null, - 'Name' => '', - 'ParentId' => null, -); + public $defaults = array( + 'Id' => null, + 'Name' => '', + 'ParentId' => null, + ); public function __construct( $IdOrRow=NULL ) { $row = NULL; if ( $IdOrRow ) { - if ( is_integer( $IdOrRow ) or is_numeric( $IdOrRow ) ) { - $row = dbFetchOne( 'SELECT * FROM Groups WHERE Id=?', NULL, array( $IdOrRow ) ); + if ( is_integer($IdOrRow) or is_numeric($IdOrRow) ) { + $row = dbFetchOne('SELECT * FROM Groups WHERE Id=?', NULL, array($IdOrRow)); if ( ! $row ) { - Error('Unable to load Group record for Id=' . $IdOrRow ); + Error('Unable to load Group record for Id=' . $IdOrRow); } } elseif ( is_array( $IdOrRow ) ) { $row = $IdOrRow; @@ -68,7 +68,6 @@ public $defaults = array( $func = function(){return '?';}; $fields[] = $field.' IN ('.implode(',', array_map( $func, $value ) ). ')'; $values += $value; - } else { $fields[] = $field.'=?'; $values[] = $value;