Skip to content
Permalink
Browse files

Fis some sonarqube defects

  • Loading branch information
decke committed May 14, 2019
1 parent face378 commit 86e70c3cdd0919f0cd93a4fe815171499f6c74e2
@@ -63,7 +63,7 @@ public function load($id)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;
@@ -99,7 +99,7 @@ public function getNetInterfaceByIP($ip)
return null;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
return new NetInterface($row['interfaceid']);
}

@@ -73,7 +73,7 @@ public function load($id)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;
@@ -90,7 +90,7 @@ public function loadByName($name)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;
@@ -68,7 +68,7 @@ public function load($id)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;
@@ -85,7 +85,7 @@ public function loadByName($name)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;
@@ -65,7 +65,7 @@ public function load($id)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;
@@ -82,7 +82,7 @@ public function loadByName($name)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;
@@ -111,7 +111,7 @@ public function load($userid)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;
@@ -128,7 +128,7 @@ public function loadByEMail($email)
return false;
}

while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$this->_data = $row;

return true;

0 comments on commit 86e70c3

Please sign in to comment.
You can’t perform that action at this time.