diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-09-21 21:05:47 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-09-21 21:05:47 +0300 |
commit | 823446d8594e0e575c4dfa7d92e29a1d33fd23ac (patch) | |
tree | da070fdca7dc1045b2f34da37551b7cbb618a672 /lib | |
parent | cc70829502063852e807ca137841ab6d7baf74f6 (diff) |
Fix outdated classes
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Collector.php | 8 | ||||
-rw-r--r-- | lib/Controller/EndpointController.php | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/Collector.php b/lib/Collector.php index 89e4a4d..af70d3d 100644 --- a/lib/Collector.php +++ b/lib/Collector.php @@ -151,7 +151,7 @@ class Collector { } /** - * @return \OC_OCS_Result + * @return \OC\OCS\Result */ public function sendReport() { $report = $this->getReport(); @@ -166,7 +166,7 @@ class Collector { ], ]); } catch (\Exception $e) { - return new \OC_OCS_Result( + return new \OC\OCS\Result( $report, Http::STATUS_INTERNAL_SERVER_ERROR ); @@ -175,13 +175,13 @@ class Collector { if ($response->getStatusCode() === Http::STATUS_OK) { $this->config->setAppValue('survey_client', 'last_sent', time()); $this->config->setAppValue('survey_client', 'last_report', json_encode($report)); - return new \OC_OCS_Result( + return new \OC\OCS\Result( $report, 100// HTTP::STATUS_OK, TODO: <status>failure</status><statuscode>200</statuscode> ); } - return new \OC_OCS_Result( + return new \OC\OCS\Result( $report, Http::STATUS_INTERNAL_SERVER_ERROR ); diff --git a/lib/Controller/EndpointController.php b/lib/Controller/EndpointController.php index 6b21ddf..bff9895 100644 --- a/lib/Controller/EndpointController.php +++ b/lib/Controller/EndpointController.php @@ -55,7 +55,7 @@ class EndpointController extends Controller { } /** - * @return \OC_OCS_Result + * @return \OC\OCS\Result */ public function enableMonthly() { $this->jobList->add('OCA\Survey_Client\BackgroundJobs\MonthlyReport'); @@ -64,11 +64,11 @@ class EndpointController extends Controller { $notification->setApp('survey_client'); $this->manager->markProcessed($notification); - return new \OC_OCS_Result(); + return new \OC\OCS\Result(); } /** - * @return \OC_OCS_Result + * @return \OC\OCS\Result */ public function disableMonthly() { $this->jobList->remove('OCA\Survey_Client\BackgroundJobs\MonthlyReport'); @@ -77,11 +77,11 @@ class EndpointController extends Controller { $notification->setApp('survey_client'); $this->manager->markProcessed($notification); - return new \OC_OCS_Result(); + return new \OC\OCS\Result(); } /** - * @return \OC_OCS_Result + * @return \OC\OCS\Result */ public function sendReport() { return $this->collector->sendReport(); |