mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-06 03:28:41 +00:00
static code analysis fixes
This commit is contained in:
parent
f2e1da0a6b
commit
b200996d2e
|
|
@ -256,7 +256,7 @@ final class ApiController extends Controller
|
|||
$path = $this->createBillDir($bill);
|
||||
|
||||
$uploaded = [];
|
||||
if (!empty($uploadedFiles = $request->getFiles() ?? [])) {
|
||||
if (!empty($uploadedFiles = $request->getFiles())) {
|
||||
$uploaded = $this->app->moduleManager->get('Media')->uploadFiles(
|
||||
[],
|
||||
[],
|
||||
|
|
@ -297,7 +297,7 @@ final class ApiController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($mediaFiles = $request->getDataJson('media') ?? [])) {
|
||||
if (!empty($mediaFiles = $request->getDataJson('media'))) {
|
||||
foreach ($mediaFiles as $media) {
|
||||
$this->createModelRelation(
|
||||
$request->header->account,
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ final class BillTypeMapper extends DataMapperFactory
|
|||
/**
|
||||
* Belongs to.
|
||||
*
|
||||
* @var array<string, array{mapper:string, external:string}>
|
||||
* @var array<string, array{mapper:string, external:string, by?:string, column?:string, conditional?:bool}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const OWNS_ONE = [
|
||||
|
|
|
|||
|
|
@ -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