fix: 🚨 resolve phpcs errors

This commit is contained in:
Alexis Gousseau 2026-03-31 15:25:55 +02:00
parent 1920acf6e6
commit c4d45c2501
No known key found for this signature in database
GPG key ID: 7F3C786EE12DBB72
4 changed files with 7 additions and 7 deletions

View file

@ -20,7 +20,6 @@ use App\Models\Claim;
use App\Models\ClaimMailTemplate;
use App\Models\ClaimMessage;
use App\Models\ClaimSubject;
use App\Models\CustomerInfo;
use App\Traits\Controllers\ExportDatas;
use App\Traits\Controllers\UpdateModelPublished;
use Illuminate\Http\Request;
@ -111,7 +110,10 @@ class ClaimController extends Controller
)
->when(
auth('backend')->user()->brands()->count() === 1,
fn($q) => $q->whereHas('brand', fn($q) => $q->where('id', auth('backend')->user()->brands()->pluck('id')))
fn($q) => $q->whereHas(
'brand',
fn($q) => $q->where('id', auth('backend')->user()->brands()->pluck('id'))
)
);
$claimSubjectModels = $request->filled('brand') || (auth('backend')->user()->brands()->count() === 1) ?
$claimSubjectModels->orderBy('label', 'ASC')->get() :

View file

@ -9,7 +9,7 @@ class TransferredToDigitalCountMail extends Mailable
/**
* Create a new message instance.
*
* @param int $count
* @param integer $count
* @return void
*/
public function __construct(private int $count)
@ -30,4 +30,3 @@ class TransferredToDigitalCountMail extends Mailable
->with('count', $this->count);
}
}

View file

@ -172,14 +172,13 @@ class Claim extends Model implements IsExportable
/**
* Get CustomerInfos
*
*
* If Customer Haschcode <> null
*
* @return CustomerInfo|null
*/
public function getCustomerInfosAttribute(): CustomerInfo|null
{
//FIXME: Rename en customer_info_hashcode
if (!is_null($this->hashcode)) {
return CustomerInfo::query()->where('hashcode', $this->hashcode)->first();
}

View file

@ -83,7 +83,7 @@ trait ExportDatas
if (!file_exists($tempDir)) {
Storage::disk('private')->makeDirectory('export', 0755, true);
}
$zipName = tempnam($tempDir, 'zip');
if (!$zip->open($zipName, ZipArchive::OVERWRITE)) {