Skip to content

Commit a384f17

Browse files
authored
Merge pull request #92 from humhub/rector/auto-update
chore: automated Rector updates
2 parents 7b6ed09 + 5d2f1d3 commit a384f17

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎docs/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
1.2.1 (Unreleased)
5+
------------------
6+
- Enh: Automated code refactoring for HumHub 1.19 using Rector
7+
48
1.2.0 (June 5, 2026)
59
--------------------
610
- Enh #87: Update activity for HumHub 1.19

‎models/Share.php‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ public function getContentRecord(): ContentActiveRecord
5353

5454
public function getShareService(?IdentityInterface $user): ShareService
5555
{
56-
if ($user === null) {
57-
/** @var IdentityInterface $user */
58-
$user = Yii::$app->user->getIdentity();
59-
}
56+
/** @var IdentityInterface $user */
57+
$user ??= Yii::$app->user->getIdentity();
6058

6159
return new ShareService($this->getContentRecord(), $user);
6260
}

‎module.json‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
"id": "sharebetween",
33
"name": "Share content",
44
"description": "Share content between Spaces in the simplest way possible.",
5-
"keywords": ["share", "between", "content"],
6-
"version": "1.2.0",
5+
"keywords": [
6+
"share",
7+
"between",
8+
"content"
9+
],
10+
"version": "1.2.1",
711
"humhub": {
812
"minVersion": "1.19"
913
},
@@ -12,4 +16,4 @@
1216
"resources/screen2.png",
1317
"resources/screen3.png"
1418
]
15-
}
19+
}

0 commit comments

Comments
 (0)