You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
馃憖 Some source code analysis tools can help to find opportunities for improving software components.
馃挱 I propose to increase the usage of combined operators accordingly.
diff --git a/User_class.php b/User_class.php
index b9c8fc7..86386df 100644
--- a/User_class.php+++ b/User_class.php@@ -446,13 +446,13 @@ if (!defined('User_class')) {
foreach ($result as $row) {
$dept = $row['dept_id'];
if ($index != $num_depts -1) {
- $query = $query . " department = :dept OR ";+ $query .= " department = :dept OR ";
} else {
- $query = $query . " department = :dept )";+ $query .= " department = :dept )";
}
$index++;
}
- $query = $query . " AND publishable = 0";+ $query .= " AND publishable = 0";
$stmt = $this->connection->prepare($query);
$stmt->execute(array(':dept' => $dept));
diff --git a/functions.php b/functions.php
index 9d81b2f..875b43d 100644
--- a/functions.php+++ b/functions.php@@ -603,7 +603,7 @@ function makeRandomPassword()
while ($i <= 7) {
$num = rand() % 33;
$tmp = substr($salt, $num, 1);
- $pass = $pass . $tmp;+ $pass .= $tmp;
$i++;
}
return $pass;
diff --git a/vendor/symfony/console/Helper/Table.php b/vendor/symfony/console/Helper/Table.php
index 1f103ad..4a6ca68 100644
--- a/vendor/symfony/console/Helper/Table.php+++ b/vendor/symfony/console/Helper/Table.php@@ -601,7 +601,7 @@ class Table
$cellWidth = Helper::strlenWithoutDecoration($this->output->getFormatter(), $cell);
if ($cell instanceof TableCell && $cell->getColspan() > 1) {
// we assume that cell value will be across more than one column.
- $cellWidth = $cellWidth / $cell->getColspan();+ $cellWidth /= $cell->getColspan();
}
return $cellWidth;
diff --git a/vendor/symfony/console/Input/InputDefinition.php b/vendor/symfony/console/Input/InputDefinition.php
index bd64163..fcc8ec3 100644
--- a/vendor/symfony/console/Input/InputDefinition.php+++ b/vendor/symfony/console/Input/InputDefinition.php@@ -399,7 +399,7 @@ class InputDefinition
if (!$argument->isRequired()) {
$element = '['.$element.']';
} elseif ($argument->isArray()) {
- $element = $element.' ('.$element.')';+ $element .=' ('.$element.')';
}
if ($argument->isArray()) {
The text was updated successfully, but these errors were encountered:
馃憖 Some source code analysis tools can help to find opportunities for improving software components.
馃挱 I propose to increase the usage of combined operators accordingly.
The text was updated successfully, but these errors were encountered: