Skip to content

Commit e344ba3

Browse files
susnuxbackportbot[bot]
authored andcommitted
chore: run rector:strict
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent eff01cf commit e344ba3

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

lib/private/AppFramework/ORM/EntityManager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ public function __construct(
3535
* @return EntityInfo<T>
3636
*/
3737
public function getEntityInfo(string $entityClass): EntityInfo {
38-
if (!isset($this->entitiesInfo[$entityClass])) {
39-
$this->entitiesInfo[$entityClass] = new EntityInfo($entityClass);
40-
}
38+
$this->entitiesInfo[$entityClass] ??= new EntityInfo($entityClass);
4139

4240
/** @var EntityInfo<T> $entityInfo */
4341
$entityInfo = $this->entitiesInfo[$entityClass];

lib/unstable/Sharing/Recipient/ShareRecipient.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,10 @@ public function format(ISharingRegistry $registry, IFactory $l10nFactory, IURLGe
7979
}
8080

8181
$icon = $recipientType->getRecipientIcon($this->value);
82-
if ($icon === null) {
83-
$icon = new ShareIconURL(
84-
$urlGenerator->linkToRouteAbsolute('core.GuestAvatar.getAvatar', ['guestName' => $displayName, 'size' => 64]),
85-
$urlGenerator->linkToRouteAbsolute('core.GuestAvatar.getAvatar', ['guestName' => $displayName, 'size' => 64, 'darkTheme' => true]),
86-
);
87-
}
82+
$icon ??= new ShareIconURL(
83+
$urlGenerator->linkToRouteAbsolute('core.GuestAvatar.getAvatar', ['guestName' => $displayName, 'size' => 64]),
84+
$urlGenerator->linkToRouteAbsolute('core.GuestAvatar.getAvatar', ['guestName' => $displayName, 'size' => 64, 'darkTheme' => true]),
85+
);
8886

8987
return [
9088
'class' => $this->class,

0 commit comments

Comments
 (0)