mirror of https://github.com/sualko/cloud_bbb
ci: add travis
parent
387b66a675
commit
8cbfcab7c4
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in('lib/')
|
||||
->in('tests/')
|
||||
;
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRules([
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
dist: bionic
|
||||
|
||||
cache:
|
||||
yarn: true
|
||||
directories:
|
||||
- node_modules
|
||||
|
||||
before_script: phpenv global 7.3
|
||||
|
||||
script:
|
||||
- php -v
|
||||
- yarn install
|
||||
- yarn composer:install:dev
|
||||
- yarn lint
|
||||
- yarn commitlint-travis
|
|
@ -23,8 +23,7 @@ class RoomController extends Controller
|
|||
IRequest $request,
|
||||
RoomService $service,
|
||||
$userId
|
||||
)
|
||||
{
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
$this->service = $service;
|
||||
$this->userId = $userId;
|
||||
|
@ -56,8 +55,7 @@ class RoomController extends Controller
|
|||
string $welcome,
|
||||
int $maxParticipants,
|
||||
bool $record
|
||||
): DataResponse
|
||||
{
|
||||
): DataResponse {
|
||||
return new DataResponse($this->service->create(
|
||||
$name,
|
||||
$welcome,
|
||||
|
@ -76,8 +74,7 @@ class RoomController extends Controller
|
|||
string $welcome,
|
||||
int $maxParticipants,
|
||||
bool $record
|
||||
): DataResponse
|
||||
{
|
||||
): DataResponse {
|
||||
return $this->handleNotFound(function () use ($id, $name, $welcome, $maxParticipants, $record) {
|
||||
return $this->service->update($id, $name, $welcome, $maxParticipants, $record, $this->userId);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue