phpcs fix for php v7.3.3
This commit is contained in:
parent
3f7de1d142
commit
1656b4a887
6 changed files with 5 additions and 7 deletions
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue