Skip to content
Code-Schnipsel Gruppen Projekte
Commit 6748a193 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

refactor: remove unnecessary comments in user conversion

Removed some superfluous comments and exception declaration in the `convertUserToErpUser` function
within the `User.php` class. These comments were not adding any useful information, and the
exception mentioned was not being thrown, hence their removal.
Übergeordneter 462302bd
Keine zugehörigen Branchen gefunden
Tags 3.2.2
2 Merge Requests!172Update 'next-4.x' with latest changes from 'main',!171refactor: remove unnecessary comments in user conversion
Pipeline-Nr. 15589 bestanden
...@@ -209,8 +209,6 @@ public static function getMissingAttributes(array $attributes): array ...@@ -209,8 +209,6 @@ public static function getMissingAttributes(array $attributes): array
* *
* @param UserInterface $User * @param UserInterface $User
* @return self * @return self
*
* @throws QUI\ERP\Exception
*/ */
public static function convertUserToErpUser(UserInterface $User): User public static function convertUserToErpUser(UserInterface $User): User
{ {
...@@ -224,7 +222,6 @@ public static function convertUserToErpUser(UserInterface $User): User ...@@ -224,7 +222,6 @@ public static function convertUserToErpUser(UserInterface $User): User
$address = false; $address = false;
if (!QUI::getUsers()->isNobodyUser($User) && !QUI::getUsers()->isSystemUser($User)) { if (!QUI::getUsers()->isNobodyUser($User) && !QUI::getUsers()->isSystemUser($User)) {
/* @var $Address QUI\Users\Address */
$Address = $User->getStandardAddress(); $Address = $User->getStandardAddress();
if ($Address) { if ($Address) {
......
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