Skip to content

Commit 066b201

Browse files
committed
Coding Standards
1 parent 6740f6f commit 066b201

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

bundle/Command/RemoveObjectStatesCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ protected function configure(): void
5252
*/
5353
protected function execute(InputInterface $input, OutputInterface $output)
5454
{
55-
$currentUser = $this->repository->getPermissionResolver()->getCurrentUserReference();
56-
$admin = $this->repository->getUserService()->loadUser(14);
55+
$admin = $this->repository->getUserService()->loadUser(14);
5756
$this->repository->getPermissionResolver()->setCurrentUserReference($admin);
5857

5958
$allGroups = $this->repository->getObjectStateService()->loadObjectStateGroups();
6059
foreach ($allGroups as $group) {
6160
if ('publication_chain' === $group->identifier) {
6261
$this->repository->getObjectStateService()->deleteObjectStateGroup($group);
62+
6363
return;
6464
}
6565
}

bundle/Core/Converter/Attachment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ function (Repository $repository) {
148148
}
149149
$this->attachmentDecorator->decorate($attachment);
150150
$this->attachmentDecorator->addSiteInformation($attachment);
151+
151152
return $attachment;
152153
}
153154

bundle/Core/Slack/Interaction/Provider/Action/Recover.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ public function execute(InteractiveMessage $message): Attachment
5757
$query->filter = new Criterion\ContentId($value);
5858
// too bad what have to limit and to check the ID, the TrashService is not finish...
5959
// See: https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Persistence/Legacy/Content/Location/Trash/Handler.php#L183
60-
$query->limit = 1000;
61-
$results = $this->repository->getTrashService()->findTrashItems($query);
60+
61+
$query->limit = 1000;
62+
$results = $this->repository->getTrashService()->findTrashItems($query);
63+
6264
foreach ($results as $item) {
6365
/* @var TrashItem $item */
6466
if ($item->contentInfo->id === $value) {

bundle/Core/Slack/Interaction/Provider/Attachment/Content.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public function getAttachment(Signal $signal): ?Attachment
4444
{
4545
$contentId = 0;
4646
if (isset($signal->contentId)) {
47-
$contentId = (int)$signal->contentId;
47+
$contentId = (int) $signal->contentId;
4848
} elseif (isset($signal->data)) {
49-
$contentId = (int)($signal->data['content_id'] ?? $signal->data['contentId'] ?? 0);
49+
$contentId = (int) ($signal->data['content_id'] ?? $signal->data['contentId'] ?? 0);
5050
}
5151

5252
if ($contentId > 0) {

0 commit comments

Comments
 (0)