@@ -164,7 +164,7 @@ protected function readParameters(array $parameters) {
164164
165165 /**
166166 * @param array $parameters
167- * @return \OC_OCS_Result
167+ * @return \OC\OCS\Result
168168 */
169169 public function getDefault (array $ parameters ) {
170170 return $ this ->get (\array_merge ($ parameters , [
@@ -174,25 +174,25 @@ public function getDefault(array $parameters) {
174174
175175 /**
176176 * @param array $parameters
177- * @return \OC_OCS_Result
177+ * @return \OC\OCS\Result
178178 */
179179 public function getFilter (array $ parameters ) {
180180 return $ this ->get ($ parameters );
181181 }
182182
183183 /**
184184 * @param array $parameters
185- * @return \OC_OCS_Result
185+ * @return \OC\OCS\Result
186186 */
187187 protected function get (array $ parameters ) {
188188 try {
189189 $ this ->readParameters ($ parameters );
190190 } catch (InvalidFilterException $ e ) {
191191 /* @phan-suppress-next-line PhanDeprecatedClass */
192- return new \OC_OCS_Result (null , Http::STATUS_NOT_FOUND );
192+ return new \OC \ OCS \ Result (null , Http::STATUS_NOT_FOUND );
193193 } catch (\OutOfBoundsException $ e ) {
194194 /* @phan-suppress-next-line PhanDeprecatedClass */
195- return new \OC_OCS_Result (null , Http::STATUS_FORBIDDEN );
195+ return new \OC \ OCS \ Result (null , Http::STATUS_FORBIDDEN );
196196 }
197197
198198 try {
@@ -210,17 +210,17 @@ protected function get(array $parameters) {
210210 } catch (\OutOfBoundsException $ e ) {
211211 // Invalid since argument
212212 /* @phan-suppress-next-line PhanDeprecatedClass */
213- return new \OC_OCS_Result (null , Http::STATUS_FORBIDDEN );
213+ return new \OC \ OCS \ Result (null , Http::STATUS_FORBIDDEN );
214214 } catch (\BadMethodCallException $ e ) {
215215 // No activity settings enabled
216216 /* @phan-suppress-next-line PhanDeprecatedClass */
217- return new \OC_OCS_Result (null , Http::STATUS_NO_CONTENT );
217+ return new \OC \ OCS \ Result (null , Http::STATUS_NO_CONTENT );
218218 }
219219
220220 $ headers = $ this ->generateHeaders ($ response ['headers ' ], $ response ['has_more ' ]);
221221 if (empty ($ response ['data ' ])) {
222222 /* @phan-suppress-next-line PhanDeprecatedClass */
223- return new \OC_OCS_Result ([], Http::STATUS_NOT_MODIFIED , null , $ headers );
223+ return new \OC \ OCS \ Result ([], Http::STATUS_NOT_MODIFIED , null , $ headers );
224224 }
225225
226226 $ preparedActivities = [];
@@ -248,7 +248,7 @@ protected function get(array $parameters) {
248248 }
249249
250250 /* @phan-suppress-next-line PhanDeprecatedClass */
251- return new \OC_OCS_Result ($ preparedActivities , 100 , null , $ headers );
251+ return new \OC \ OCS \ Result ($ preparedActivities , 100 , null , $ headers );
252252 }
253253
254254 /**
0 commit comments