Skip to content

Commit

Permalink
Dev: Coding style "error"
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Feb 27, 2024
1 parent 3c293e4 commit 3fa8e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Editor/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,9 @@ private function _dbExec($upload, $db)
foreach ($pathFields as $column => $type) {
if ($type === self::DB_WEB_PATH) {
$q->set($column, $webPath);
} else if ($type === self::DB_SYSTEM_PATH) {
} elseif ($type === self::DB_SYSTEM_PATH) {
$q->set($column, $path);
} else if (is_string($type)) {
} elseif (is_string($type)) {

Check failure on line 702 in Editor/Upload.php

View workflow job for this annotation

GitHub Actions / Unit (latest, StaticAnalysis)

Call to function is_string() with non-falsy-string will always evaluate to true.
$q->set($column, str_replace('__ID__', $id, $type));
} else {
$q->set($column, $type);
Expand Down

0 comments on commit 3fa8e32

Please sign in to comment.