Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 49383db7 erstellt von Jan Wennrich's avatar Jan Wennrich
Dateien durchsuchen

refactor(message-handler): reference imports with correct case

Übergeordneter 50255c8e
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
3 Merge Requests!190Release,!187ci: show phpunit results in GitLab UI,!118Refactorings & Fixes based on PHPStan
......@@ -98,7 +98,7 @@ public function getNewMessages(QUI\Interfaces\Users\User $User)
QUI::getDataBase()->delete(self::table(), [
'uid' => $User->getId()
]);
} catch (QUI\DataBase\Exception $Exception) {
} catch (QUI\Database\Exception $Exception) {
QUI\System\Log::writeException($Exception);
return [];
......@@ -163,7 +163,7 @@ public function addAttention($str)
/**
* Add a message to the handler
*
* @param \QUi\Messages\Message $Message
* @param Message $Message
*/
public function addMessage($Message)
{
......@@ -232,7 +232,7 @@ public function sendAttention(QUI\Interfaces\Users\User $User, $str)
* Send a message to an user and save it to the database
*
* @param QUI\Interfaces\Users\User $User
* @param \QUI\Messages\Message $Message
* @param Message $Message
*/
public function sendMessage(QUI\Interfaces\Users\User $User, Message $Message)
{
......@@ -251,7 +251,7 @@ public function sendMessage(QUI\Interfaces\Users\User $User, Message $Message)
'mtime' => (int)$Message->getAttribute('time'),
'mtype' => $Message->getType()
]);
} catch (QUI\DataBase\Exception $Exception) {
} catch (QUI\Database\Exception $Exception) {
QUI\System\Log::writeException($Exception);
}
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren