From a0b751304e64f42e4bfa7ef6be681f3dbbb6a22b Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sun, 29 Dec 2024 12:52:07 +0100 Subject: [PATCH 1/4] Format IDE helper --- resources/views/helper.php | 134 +++++++++++++++++++------------------ 1 file changed, 69 insertions(+), 65 deletions(-) diff --git a/resources/views/helper.php b/resources/views/helper.php index f713632ee..1973ac5e1 100644 --- a/resources/views/helper.php +++ b/resources/views/helper.php @@ -13,114 +13,118 @@ // phpcs:ignoreFile /** - * A helper file for Laravel, to provide autocomplete information to your IDE - * Generated for Laravel version() ?>. - * - * This file should not be included in your code, only analyzed by your IDE! - * - * @author Barry vd. Heuvel - * @see https://github.com/barryvdh/laravel-ide-helper - */ - +* A helper file for Laravel, to provide autocomplete information to your IDE +* Generated for Laravel version() ?>. +* +* This file should not be included in your code, only analyzed by your IDE! +* +* @author Barry vd. Heuvel +* @see https://github.com/barryvdh/laravel-ide-helper +*/ + $aliases) : ?> -namespace { + namespace { - getDocComment(' ')) ?> - getClassType() ?> getExtendsClass() ?> { + getDocComment($s1)) ."\n{$s1}" . $alias->getClassType() ?> getExtendsClass() ?> { getMethods() as $method) : ?> - getDocComment(' ')) ?> - public static function getName() ?>(getParamsWithDefault() ?>) - {getDeclaringClass() !== $method->getRoot()) : ?> - //Method inherited from getDeclaringClass() ?> - + getDocComment($s2)) ."\n{$s2}" ?>public static function getName() ?>(getParamsWithDefault() ?>) + {getDeclaringClass() !== $method->getRoot()) : ?> + //Method inherited from getDeclaringClass() ?> + isInstanceCall()) : ?> - /** @var getRoot()?> $instance */ + /** @var getRoot()?> $instance */ - shouldReturn() ? 'return ' : '' ?>getRootMethodCall() ?>; - } + shouldReturn() ? 'return ' : '') ?>getRootMethodCall() ?>; + } + - } + } -} + } $aliases) : ?> -namespace { + namespace { getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> - getPhpDocTemplates(' ') ?> + getPhpDocTemplates($s1) ."\n" ?> - getClassType() ?> getShortName() ?> extends getExtends() ?> {getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> + getClassType() ?> getShortName() ?> extends getExtends() ?> {getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> getMethods() as $method) : ?> - getDocComment(' ')) ?> - public static function getName() ?>(getParamsWithDefault() ?>) - {getDeclaringClass() !== $method->getRoot()) : ?> - //Method inherited from getDeclaringClass() ?> - + getDocComment($s2))."\n" ?> + public static function getName() ?>(getParamsWithDefault() ?>) + {getDeclaringClass() !== $method->getRoot()) : ?> + //Method inherited from getDeclaringClass() ?> + isInstanceCall()) : ?> - /** @var getRoot()?> $instance */ + /** @var getRoot()?> $instance */ - shouldReturn() ? 'return ' : '' ?>getRootMethodCall() ?>; - } + shouldReturn() ? 'return ' : '') ?>getRootMethodCall() ?>; + } + } -} + } - -namespace { + + namespace { /** - * @mixin - */ + * @mixin + */ class extends {} -} + } -namespace { + namespace { -} + } -namespace Illuminate\Support { + namespace Illuminate\Support { /** - * Methods commonly used in migrations - * - * @method Fluent after(string $column) Add the after modifier - * @method Fluent charset(string $charset) Add the character set modifier - * @method Fluent collation(string $collation) Add the collation modifier - * @method Fluent comment(string $comment) Add comment - * @method Fluent default($value) Add the default modifier - * @method Fluent first() Select first row - * @method Fluent index(string $name = null) Add the in dex clause - * @method Fluent on(string $table) `on` of a foreign key - * @method Fluent onDelete(string $action) `on delete` of a foreign key - * @method Fluent onUpdate(string $action) `on update` of a foreign key - * @method Fluent primary() Add the primary key modifier - * @method Fluent references(string $column) `references` of a foreign key - * @method Fluent nullable(bool $value = true) Add the nullable modifier - * @method Fluent unique(string $name = null) Add unique index clause - * @method Fluent unsigned() Add the unsigned modifier - * @method Fluent useCurrent() Add the default timestamp value - * @method Fluent change() Add the change modifier - */ + * Methods commonly used in migrations + * + * @method Fluent after(string $column) Add the after modifier + * @method Fluent charset(string $charset) Add the character set modifier + * @method Fluent collation(string $collation) Add the collation modifier + * @method Fluent comment(string $comment) Add comment + * @method Fluent default($value) Add the default modifier + * @method Fluent first() Select first row + * @method Fluent index(string $name = null) Add the in dex clause + * @method Fluent on(string $table) `on` of a foreign key + * @method Fluent onDelete(string $action) `on delete` of a foreign key + * @method Fluent onUpdate(string $action) `on update` of a foreign key + * @method Fluent primary() Add the primary key modifier + * @method Fluent references(string $column) `references` of a foreign key + * @method Fluent nullable(bool $value = true) Add the nullable modifier + * @method Fluent unique(string $name = null) Add unique index clause + * @method Fluent unsigned() Add the unsigned modifier + * @method Fluent useCurrent() Add the default timestamp value + * @method Fluent change() Add the change modifier + */ class Fluent {} -} + } -namespace getNamespaceName()?> { + namespace getNamespaceName()?> { /** * @method \Illuminate\Database\Eloquent\Collection|getShortName()?>[]|getShortName()?> create($attributes = []) * @method \Illuminate\Database\Eloquent\Collection|getShortName()?>[]|getShortName()?> make($attributes = []) */ class getShortName()?>FactoryBuilder extends \Illuminate\Database\Eloquent\FactoryBuilder {} -} + } From cacf537dd5f7e1ed761f1691eb0352efef6afd05 Mon Sep 17 00:00:00 2001 From: laravel-ide-helper Date: Sun, 29 Dec 2024 11:52:38 +0000 Subject: [PATCH 2/4] composer fix-style --- resources/views/helper.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/views/helper.php b/resources/views/helper.php index 1973ac5e1..1f69d9719 100644 --- a/resources/views/helper.php +++ b/resources/views/helper.php @@ -23,17 +23,17 @@ */ $aliases) : ?> namespace { - getDocComment($s1)) ."\n{$s1}" . $alias->getClassType() ?> getExtendsClass() ?> { + getDocComment($s1)) . "\n{$s1}" . $alias->getClassType() ?> getExtendsClass() ?> { getMethods() as $method) : ?> - getDocComment($s2)) ."\n{$s2}" ?>public static function getName() ?>(getParamsWithDefault() ?>) + getDocComment($s2)) . "\n{$s2}" ?>public static function getName() ?>(getParamsWithDefault() ?>) {getDeclaringClass() !== $method->getRoot()) : ?> - //Method inherited from getDeclaringClass() ?> + //Method inherited from getDeclaringClass() ?> isInstanceCall()) : ?> @@ -53,11 +53,11 @@ namespace { getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> - getPhpDocTemplates($s1) ."\n" ?> + getPhpDocTemplates($s1) . "\n" ?> - getClassType() ?> getShortName() ?> extends getExtends() ?> {getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> + getClassType() ?> getShortName() ?> extends getExtends() ?> {getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> getMethods() as $method) : ?> - getDocComment($s2))."\n" ?> + getDocComment($s2)) . "\n" ?> public static function getName() ?>(getParamsWithDefault() ?>) {getDeclaringClass() !== $method->getRoot()) : ?> //Method inherited from getDeclaringClass() ?> From 1dad87d71c69c1703e4f9daabecfbcd4f10ce8fd Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sun, 29 Dec 2024 12:54:31 +0100 Subject: [PATCH 3/4] Format IDE helper --- resources/views/helper.php | 150 ++++++++++++++++++------------------- 1 file changed, 75 insertions(+), 75 deletions(-) diff --git a/resources/views/helper.php b/resources/views/helper.php index 1f69d9719..998f9767b 100644 --- a/resources/views/helper.php +++ b/resources/views/helper.php @@ -13,118 +13,118 @@ // phpcs:ignoreFile /** -* A helper file for Laravel, to provide autocomplete information to your IDE -* Generated for Laravel version() ?>. -* -* This file should not be included in your code, only analyzed by your IDE! -* -* @author Barry vd. Heuvel -* @see https://github.com/barryvdh/laravel-ide-helper -*/ + * A helper file for Laravel, to provide autocomplete information to your IDE + * Generated for Laravel version() ?>. + * + * This file should not be included in your code, only analyzed by your IDE! + * + * @author Barry vd. Heuvel + * @see https://github.com/barryvdh/laravel-ide-helper + */ $aliases) : ?> - namespace { +namespace { - getDocComment($s1)) . "\n{$s1}" . $alias->getClassType() ?> getExtendsClass() ?> { +getDocComment($s1)) ."\n{$s1}" . $alias->getClassType() ?> getExtendsClass() ?> { getMethods() as $method) : ?> - getDocComment($s2)) . "\n{$s2}" ?>public static function getName() ?>(getParamsWithDefault() ?>) - {getDeclaringClass() !== $method->getRoot()) : ?> - //Method inherited from getDeclaringClass() ?> - +getDocComment($s2)) ."\n{$s2}" ?>public static function getName() ?>(getParamsWithDefault() ?>) + {getDeclaringClass() !== $method->getRoot()) : ?> +//Method inherited from getDeclaringClass() ?> + - isInstanceCall()) : ?> - /** @var getRoot()?> $instance */ - - shouldReturn() ? 'return ' : '') ?>getRootMethodCall() ?>; - } +isInstanceCall()) : ?> +/** @var getRoot()?> $instance */ + +shouldReturn() ? 'return ' : '') ?>getRootMethodCall() ?>; + } - } - } + +} $aliases) : ?> - namespace { - - getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> - getPhpDocTemplates($s1) . "\n" ?> - - getClassType() ?> getShortName() ?> extends getExtends() ?> {getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> - getMethods() as $method) : ?> - getDocComment($s2)) . "\n" ?> - public static function getName() ?>(getParamsWithDefault() ?>) - {getDeclaringClass() !== $method->getRoot()) : ?> - //Method inherited from getDeclaringClass() ?> - +namespace { + +getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> +getPhpDocTemplates($s1) ."\n" ?> + +getClassType() ?> getShortName() ?> extends getExtends() ?> {getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> +getMethods() as $method) : ?> +getDocComment($s2))."\n" ?> +public static function getName() ?>(getParamsWithDefault() ?>) +{getDeclaringClass() !== $method->getRoot()) : ?> +//Method inherited from getDeclaringClass() ?> + - isInstanceCall()) : ?> - /** @var getRoot()?> $instance */ - - shouldReturn() ? 'return ' : '') ?>getRootMethodCall() ?>; - } +isInstanceCall()) : ?> +/** @var getRoot()?> $instance */ + +shouldReturn() ? 'return ' : '') ?>getRootMethodCall() ?>; +} - - } - - } + +} + +} - - namespace { + +namespace { /** - * @mixin - */ + * @mixin + */ class extends {} - } +} - namespace { +namespace { - } +} - namespace Illuminate\Support { +namespace Illuminate\Support { /** - * Methods commonly used in migrations - * - * @method Fluent after(string $column) Add the after modifier - * @method Fluent charset(string $charset) Add the character set modifier - * @method Fluent collation(string $collation) Add the collation modifier - * @method Fluent comment(string $comment) Add comment - * @method Fluent default($value) Add the default modifier - * @method Fluent first() Select first row - * @method Fluent index(string $name = null) Add the in dex clause - * @method Fluent on(string $table) `on` of a foreign key - * @method Fluent onDelete(string $action) `on delete` of a foreign key - * @method Fluent onUpdate(string $action) `on update` of a foreign key - * @method Fluent primary() Add the primary key modifier - * @method Fluent references(string $column) `references` of a foreign key - * @method Fluent nullable(bool $value = true) Add the nullable modifier - * @method Fluent unique(string $name = null) Add unique index clause - * @method Fluent unsigned() Add the unsigned modifier - * @method Fluent useCurrent() Add the default timestamp value - * @method Fluent change() Add the change modifier - */ + * Methods commonly used in migrations + * + * @method Fluent after(string $column) Add the after modifier + * @method Fluent charset(string $charset) Add the character set modifier + * @method Fluent collation(string $collation) Add the collation modifier + * @method Fluent comment(string $comment) Add comment + * @method Fluent default($value) Add the default modifier + * @method Fluent first() Select first row + * @method Fluent index(string $name = null) Add the in dex clause + * @method Fluent on(string $table) `on` of a foreign key + * @method Fluent onDelete(string $action) `on delete` of a foreign key + * @method Fluent onUpdate(string $action) `on update` of a foreign key + * @method Fluent primary() Add the primary key modifier + * @method Fluent references(string $column) `references` of a foreign key + * @method Fluent nullable(bool $value = true) Add the nullable modifier + * @method Fluent unique(string $name = null) Add unique index clause + * @method Fluent unsigned() Add the unsigned modifier + * @method Fluent useCurrent() Add the default timestamp value + * @method Fluent change() Add the change modifier + */ class Fluent {} - } +} - namespace getNamespaceName()?> { +namespace getNamespaceName()?> { /** * @method \Illuminate\Database\Eloquent\Collection|getShortName()?>[]|getShortName()?> create($attributes = []) * @method \Illuminate\Database\Eloquent\Collection|getShortName()?>[]|getShortName()?> make($attributes = []) */ class getShortName()?>FactoryBuilder extends \Illuminate\Database\Eloquent\FactoryBuilder {} - } +} From 8197715a4cb28befbd3fd3ebc1e5ae2451c6ea76 Mon Sep 17 00:00:00 2001 From: laravel-ide-helper Date: Sun, 29 Dec 2024 11:54:58 +0000 Subject: [PATCH 4/4] composer fix-style --- resources/views/helper.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/views/helper.php b/resources/views/helper.php index 998f9767b..c3f583ca5 100644 --- a/resources/views/helper.php +++ b/resources/views/helper.php @@ -23,17 +23,17 @@ */ $aliases) : ?> namespace { -getDocComment($s1)) ."\n{$s1}" . $alias->getClassType() ?> getExtendsClass() ?> { +getDocComment($s1)) . "\n{$s1}" . $alias->getClassType() ?> getExtendsClass() ?> { getMethods() as $method) : ?> -getDocComment($s2)) ."\n{$s2}" ?>public static function getName() ?>(getParamsWithDefault() ?>) +getDocComment($s2)) . "\n{$s2}" ?>public static function getName() ?>(getParamsWithDefault() ?>) {getDeclaringClass() !== $method->getRoot()) : ?> -//Method inherited from getDeclaringClass() ?> +//Method inherited from getDeclaringClass() ?> isInstanceCall()) : ?> @@ -53,11 +53,11 @@ namespace { getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> -getPhpDocTemplates($s1) ."\n" ?> +getPhpDocTemplates($s1) . "\n" ?> -getClassType() ?> getShortName() ?> extends getExtends() ?> {getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> +getClassType() ?> getShortName() ?> extends getExtends() ?> {getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> getMethods() as $method) : ?> -getDocComment($s2))."\n" ?> +getDocComment($s2)) . "\n" ?> public static function getName() ?>(getParamsWithDefault() ?>) {getDeclaringClass() !== $method->getRoot()) : ?> //Method inherited from getDeclaringClass() ?>