Browse Source

Fis some sonarqube defects

master
Bernhard Fröhlich 3 months ago
parent
commit
86e70c3cdd
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333

+ 2
- 2
lib/FunkFeuer/Nodeman/InterfaceLink.php View File

@@ -63,7 +63,7 @@ class InterfaceLink
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 @@ class InterfaceLink
return null;
}

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


+ 2
- 2
lib/FunkFeuer/Nodeman/Location.php View File

@@ -73,7 +73,7 @@ class Location
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 @@ class Location
return false;
}

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

return true;

+ 2
- 2
lib/FunkFeuer/Nodeman/NetInterface.php View File

@@ -68,7 +68,7 @@ class NetInterface
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 @@ class NetInterface
return false;
}

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

return true;

+ 2
- 2
lib/FunkFeuer/Nodeman/Node.php View File

@@ -65,7 +65,7 @@ class Node
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 @@ class Node
return false;
}

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

return true;

+ 2
- 2
lib/FunkFeuer/Nodeman/User.php View File

@@ -111,7 +111,7 @@ class User
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 @@ class User
return false;
}

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

return true;

Loading…
Cancel
Save