fix: coding standards

Prevent CI failures like https://github.com/nextcloud/social/runs/7711238464?check_suite_focus=true

Signed-off-by: Max <max@nextcloud.com>
pull/1454/head
Max 2022-08-07 20:14:06 +02:00
rodzic bd17e38756
commit 8405a1193a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0F5BFA367A00BACE
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -112,9 +112,13 @@ class LocalController extends Controller {
* @NoAdminRequired
*/
public function uploadAttachement(): DataResponse {
try {
throw new \BadMethodCallException('uploadAttachment is not implemented yet');
} catch (Exception $e) {
return $this->fail($e);
}
}
/**
* Create a new post.
*

Wyświetl plik

@ -8,6 +8,7 @@ declare(strict_types=1);
namespace OCA\Social\Controller;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\DataResponse;
use OCP\Files\IMimeTypeDetector;
class MediaApiController extends Controller {
@ -32,7 +33,7 @@ class MediaApiController extends Controller {
*/
public function uploadMedia(): DataResponse {
// TODO
return DataResponse([
return new DataResponse([
'id' => 1,
'url' => '',
'preview_url' => '',