File tree Expand file tree Collapse file tree
Slack/Interaction/Provider Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments