Merge pull request #1454 from nextcloud/fix/php-cs

fix: ci - php-cs and coding standards
fix/ci
Carl Schwan 2022-08-08 10:01:16 +02:00 zatwierdzone przez GitHub
commit da468bdb07
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -112,10 +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' => '',