diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-09 15:19:14 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-09 17:51:41 +0300 |
commit | c4ea37b8a102adec16cf13085dba2fd7ef893195 (patch) | |
tree | a0b23e125a6e952ae1568a81bdd7b0d794f8443d /apps/files_sharing | |
parent | 676d2b7a947754f4c42405b513658a5f6663673c (diff) |
Address minor comments
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing')
3 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_sharing/lib/Controller/DeletedShareAPIController.php b/apps/files_sharing/lib/Controller/DeletedShareAPIController.php index 1981c0c1945..9a757412316 100644 --- a/apps/files_sharing/lib/Controller/DeletedShareAPIController.php +++ b/apps/files_sharing/lib/Controller/DeletedShareAPIController.php @@ -220,7 +220,7 @@ class DeletedShareAPIController extends OCSController { throw new QueryException(); } - return $this->serverContainer->query('\OCA\Talk\Share\Helper\DeletedShareAPIController'); + return $this->serverContainer->get('\OCA\Talk\Share\Helper\DeletedShareAPIController'); } /** @@ -237,6 +237,6 @@ class DeletedShareAPIController extends OCSController { throw new QueryException(); } - return $this->serverContainer->query('\OCA\Deck\Sharing\ShareAPIHelper'); + return $this->serverContainer->get('\OCA\Deck\Sharing\ShareAPIHelper'); } } diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 399ff18fba8..65de654be92 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1558,7 +1558,7 @@ class ShareAPIController extends OCSController { throw new QueryException(); } - return $this->serverContainer->query('\OCA\Talk\Share\Helper\ShareAPIController'); + return $this->serverContainer->get('\OCA\Talk\Share\Helper\ShareAPIController'); } /** @@ -1575,7 +1575,7 @@ class ShareAPIController extends OCSController { throw new QueryException(); } - return $this->serverContainer->query('\OCA\Deck\Sharing\ShareAPIHelper'); + return $this->serverContainer->get('\OCA\Deck\Sharing\ShareAPIHelper'); } /** diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index 729fe27f69e..a2a6ab59809 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -1558,7 +1558,7 @@ class ShareAPIControllerTest extends TestCase { ->with($share, $this->currentUser) ->willReturn($canAccessShareByHelper); - $this->serverContainer->method('query') + $this->serverContainer->method('get') ->with('\OCA\Talk\Share\Helper\ShareAPIController') ->willReturn($helper); } @@ -2222,7 +2222,7 @@ class ShareAPIControllerTest extends TestCase { } ); - $this->serverContainer->method('query') + $this->serverContainer->method('get') ->with('\OCA\Talk\Share\Helper\ShareAPIController') ->willReturn($helper); @@ -2340,7 +2340,7 @@ class ShareAPIControllerTest extends TestCase { } ); - $this->serverContainer->method('query') + $this->serverContainer->method('get') ->with('\OCA\Talk\Share\Helper\ShareAPIController') ->willReturn($helper); @@ -4404,7 +4404,7 @@ class ShareAPIControllerTest extends TestCase { ->with($share) ->willReturn($formatShareByHelper); - $this->serverContainer->method('query') + $this->serverContainer->method('get') ->with('\OCA\Talk\Share\Helper\ShareAPIController') ->willReturn($helper); } |