fix: 🚨 resolve phpcs errors
This commit is contained in:
parent
1920acf6e6
commit
c4d45c2501
4 changed files with 7 additions and 7 deletions
|
|
@ -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() :
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue