phpcs fix for php v7.3.3

This commit is contained in:
Jérémy Munsch 2023-08-31 12:50:58 +02:00
parent 3f7de1d142
commit 1656b4a887
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
6 changed files with 5 additions and 7 deletions

View file

@ -42,7 +42,7 @@ abstract class Input implements InputInterface
* @return mixed
* @throws \TypeError If prop is undefined.
*/
public function __get(string $name): mixed
public function __get(string $name)
{
if (in_array($name, ['data'])) {
return $this->{$name};

View file

@ -23,7 +23,7 @@ class InputData extends \stdClass
* @return mixed
* @throws \TypeError If prop is undefined.
*/
public function __get(string $name): mixed
public function __get(string $name)
{
if (in_array($name, ['title', 'formSlug', 'type', 'value', 'required'])) {
return $this->{$name};

View file

@ -20,7 +20,7 @@ class SendFlyer extends Mailable
* @param mixed $data
* @return void
*/
public function __construct(mixed $data)
public function __construct($data)
{
$this->data = (object)$data;
}

View file

@ -20,7 +20,7 @@ class SendFlyerFailed extends Mailable
* @param mixed $data
* @return void
*/
public function __construct(mixed $data)
public function __construct($data)
{
$this->data = (object)$data;
}

View file

@ -5,7 +5,6 @@ namespace App\Providers;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@ -19,7 +18,6 @@ class AppServiceProvider extends ServiceProvider
{
// * HTTPS FIX
// URL::forceScheme('http');
// * HA PROXY FIX
App::singleton('clientIp', function () {
if (config('app.env') === 'local') {

View file

@ -122,7 +122,7 @@ trait HasPicture
* @return void
* @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed
*/
private function validatePicture(string $attribute, mixed $value, callable $fail, object $sizes)
private function validatePicture(string $attribute, $value, callable $fail, object $sizes)
{
if (!File::exists($value)) {
$fail(trans(":attribute n'existe pas dans le système de fichier"));