mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-11 00:58:41 +00:00
static code analysis fixes
This commit is contained in:
parent
4ee7632a1c
commit
f1a8ab24bb
|
|
@ -258,7 +258,7 @@ final class ApiController extends Controller
|
|||
$taskElement = $this->app->moduleManager->get('Tasks')->createTaskElementFromRequest($request, $ticket->task);
|
||||
|
||||
$ticketElement = new TicketElement($taskElement);
|
||||
$ticketElement->time = (int) $request->getData('time') ?? 0;
|
||||
$ticketElement->time = (int) ($request->getData('time') ?? 0);
|
||||
$ticketElement->ticket = $ticket->getId();
|
||||
|
||||
return $ticketElement;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
"friendsofphp/php-cs-fixer": ">=3.2",
|
||||
"squizlabs/php_codesniffer": ">=3.6",
|
||||
"phpmd/phpmd": ">=2.9",
|
||||
"phpstan/phpstan": ">=0.12.58",
|
||||
"phpstan/phpstan": ">=1.5.4",
|
||||
"phan/phan": ">=3.2.6"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user