Skip to content

Commit

Permalink
Fix implicit type coercion
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jan 25, 2024
1 parent e22e0d4 commit 7ad5ee8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Classifiers/Audio/MusicnnClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function classify(array $queueFiles): void {
foreach ($classifierProcess as $queueFile => $results) {
$this->tagManager->assignTags($queueFile->getFileId(), $results);
$this->config->setAppValue(self::MODEL_NAME.'.status', 'true');
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', time());
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', (string)time());
}
}
}
2 changes: 1 addition & 1 deletion lib/Classifiers/Images/ClusteringFaceClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function classify(array $queueFiles): void {
$usersToCluster[$userId] = true;
}
$this->config->setAppValue(self::MODEL_NAME.'.status', 'true');
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', time());
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', (string)time());
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Classifiers/Images/ImagenetClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function classify(array $queueFiles): void {
return in_array($tagName, LandmarksClassifier::PRECONDITION_TAGS);
});
$this->config->setAppValue(self::MODEL_NAME.'.status', 'true');
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', time());
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', (string)time());

if (count($landmarkTags) > 0) {
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/Classifiers/Images/LandmarksClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function classify(array $queueFiles): void {
foreach ($classifierProcess as $queueFile => $results) {
$this->tagManager->assignTags($queueFile->getFileId(), $results);
$this->config->setAppValue(self::MODEL_NAME.'.status', 'true');
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', time());
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', (string)time());
}
}
}
2 changes: 1 addition & 1 deletion lib/Classifiers/Video/MovinetClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function classify(array $queueFiles): void {
foreach ($classifierProcess as $queueFile => $results) {
$this->tagManager->assignTags($queueFile->getFileId(), $results);
$this->config->setAppValue(self::MODEL_NAME.'.status', 'true');
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', time());
$this->config->setAppValue(self::MODEL_NAME.'.lastFile', (string)time());
}
}
}

0 comments on commit 7ad5ee8

Please sign in to comment.