mirror of https://github.com/sualko/cloud_bbb
ci: add travis
parent
387b66a675
commit
8cbfcab7c4
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
$finder = PhpCsFixer\Finder::create()
|
$finder = PhpCsFixer\Finder::create()
|
||||||
->in('lib/')
|
->in('lib/')
|
||||||
->in('tests/')
|
|
||||||
;
|
;
|
||||||
return PhpCsFixer\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setRules([
|
->setRules([
|
||||||
|
@ -11,4 +10,4 @@ return PhpCsFixer\Config::create()
|
||||||
])
|
])
|
||||||
->setIndent("\t")
|
->setIndent("\t")
|
||||||
->setFinder($finder)
|
->setFinder($finder)
|
||||||
;
|
;
|
||||||
|
|
|
@ -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,
|
IRequest $request,
|
||||||
RoomService $service,
|
RoomService $service,
|
||||||
$userId
|
$userId
|
||||||
)
|
) {
|
||||||
{
|
|
||||||
parent::__construct($appName, $request);
|
parent::__construct($appName, $request);
|
||||||
$this->service = $service;
|
$this->service = $service;
|
||||||
$this->userId = $userId;
|
$this->userId = $userId;
|
||||||
|
@ -56,8 +55,7 @@ class RoomController extends Controller
|
||||||
string $welcome,
|
string $welcome,
|
||||||
int $maxParticipants,
|
int $maxParticipants,
|
||||||
bool $record
|
bool $record
|
||||||
): DataResponse
|
): DataResponse {
|
||||||
{
|
|
||||||
return new DataResponse($this->service->create(
|
return new DataResponse($this->service->create(
|
||||||
$name,
|
$name,
|
||||||
$welcome,
|
$welcome,
|
||||||
|
@ -76,8 +74,7 @@ class RoomController extends Controller
|
||||||
string $welcome,
|
string $welcome,
|
||||||
int $maxParticipants,
|
int $maxParticipants,
|
||||||
bool $record
|
bool $record
|
||||||
): DataResponse
|
): DataResponse {
|
||||||
{
|
|
||||||
return $this->handleNotFound(function () use ($id, $name, $welcome, $maxParticipants, $record) {
|
return $this->handleNotFound(function () use ($id, $name, $welcome, $maxParticipants, $record) {
|
||||||
return $this->service->update($id, $name, $welcome, $maxParticipants, $record, $this->userId);
|
return $this->service->update($id, $name, $welcome, $maxParticipants, $record, $this->userId);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue