From 5ffb81a3bef24a570b836b5d75071ea6daba45f2 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 4 Aug 2010 14:38:47 -0300 Subject: Coding style --- classes/IsisConnector.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'classes/IsisConnector.php') diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php index 8a2fd45..03c2bfe 100644 --- a/classes/IsisConnector.php +++ b/classes/IsisConnector.php @@ -636,8 +636,7 @@ class IsisConnector { * @return * True if result has the main item, false otherwise. */ - public function hasMainItem($field, $row) - { + public function hasMainItem($field, $row) { $value = $this->getMainItem($field, $row); if (!empty($value)) { @@ -663,14 +662,11 @@ class IsisConnector { * @return * True if result has the main item, false otherwise. */ - public function hasItem($field, $item, $row = 0) - { - if ($item == 'main') - { + public function hasItem($field, $item, $row = 0) { + if ($item == 'main') { $has = $this->hasMainItem($field, $row); } - else - { + else { $subfield = $this->getSubfieldName($this->getFieldKey($field), $item); $has = $this->hasSubfield($field, $subfield, $row); } -- cgit v1.2.3