|
13 | 13 | // phpcs:ignoreFile |
14 | 14 |
|
15 | 15 | /** |
16 | | -* A helper file for Laravel, to provide autocomplete information to your IDE |
17 | | -* Generated for Laravel <?= app()->version() ?>. |
18 | | -* |
19 | | -* This file should not be included in your code, only analyzed by your IDE! |
20 | | -* |
21 | | -* @author Barry vd. Heuvel < [email protected]> |
22 | | -* @see https://github.com/barryvdh/laravel-ide-helper |
23 | | -*/ |
| 16 | + * A helper file for Laravel, to provide autocomplete information to your IDE |
| 17 | + * Generated for Laravel <?= app()->version() ?>. |
| 18 | + * |
| 19 | + * This file should not be included in your code, only analyzed by your IDE! |
| 20 | + * |
| 21 | + * @author Barry vd. Heuvel < [email protected]> |
| 22 | + * @see https://github.com/barryvdh/laravel-ide-helper |
| 23 | + */ |
24 | 24 | <?php |
25 | 25 | $s1 = ' '; |
26 | | -$s2 = $s1 . $s1; |
27 | | -$s3 = $s1 . $s2; |
| 26 | +$s2 = $s1.$s1; |
| 27 | +$s3 = $s1.$s2; |
28 | 28 | ?> |
29 | 29 | <?php foreach ($namespaces_by_extends_ns as $namespace => $aliases) : ?> |
30 | | - namespace <?= $namespace === '__root' ? '' : trim($namespace, '\\') ?> { |
| 30 | +namespace <?= $namespace === '__root' ? '' : trim($namespace, '\\') ?> { |
31 | 31 | <?php foreach ($aliases as $alias) : ?> |
32 | | - <?php echo trim($alias->getDocComment($s1)) . "\n{$s1}" . $alias->getClassType() ?> <?= $alias->getExtendsClass() ?> { |
| 32 | +<?php echo trim($alias->getDocComment($s1)) ."\n{$s1}" . $alias->getClassType() ?> <?= $alias->getExtendsClass() ?> { |
33 | 33 | <?php foreach ($alias->getMethods() as $method) : ?> |
34 | | - <?= trim($method->getDocComment($s2)) . "\n{$s2}" ?>public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>) |
35 | | - {<?php if ($method->getDeclaringClass() !== $method->getRoot()) : ?> |
36 | | - <?= "\n" . $s3?>//Method inherited from <?= $method->getDeclaringClass() ?> |
37 | | - <?php endif; ?> |
| 34 | +<?= trim($method->getDocComment($s2)) ."\n{$s2}" ?>public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>) |
| 35 | + {<?php if ($method->getDeclaringClass() !== $method->getRoot()) : ?> |
| 36 | +<?= "\n".$s3?>//Method inherited from <?= $method->getDeclaringClass() ?> |
| 37 | + <?php endif; ?> |
38 | 38 |
|
39 | | - <?php if ($method->isInstanceCall()) : ?> |
40 | | - <?= $s3 ?>/** @var <?=$method->getRoot()?> $instance */ |
41 | | - <?php endif?> |
42 | | - <?= $s3 . ($method->shouldReturn() ? 'return ' : '') ?><?= $method->getRootMethodCall() ?>; |
43 | | - } |
| 39 | +<?php if ($method->isInstanceCall()) : ?> |
| 40 | +<?= $s3 ?>/** @var <?=$method->getRoot()?> $instance */ |
| 41 | +<?php endif?> |
| 42 | +<?= $s3 . ($method->shouldReturn() ? 'return ' : '') ?><?= $method->getRootMethodCall() ?>; |
| 43 | + } |
44 | 44 |
|
45 | 45 | <?php endforeach; ?> |
46 | | - } |
47 | | - <?php endforeach; ?> |
48 | 46 | } |
| 47 | + <?php endforeach; ?> |
| 48 | +} |
49 | 49 |
|
50 | 50 | <?php endforeach; ?> |
51 | 51 |
|
52 | 52 | <?php foreach ($namespaces_by_alias_ns as $namespace => $aliases) : ?> |
53 | | - namespace <?= $namespace === '__root' ? '' : trim($namespace, '\\') ?> { |
54 | | - <?php foreach ($aliases as $alias) : ?> |
55 | | - <?php if ($alias->getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> |
56 | | - <?= "\n" . $alias->getPhpDocTemplates($s1) . "\n" ?> |
57 | | - <?php endif?> |
58 | | - <?= $s1 . $alias->getClassType() ?> <?= $alias->getShortName() ?> extends <?= $alias->getExtends() ?> {<?php if ($alias->getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> |
59 | | - <?php foreach ($alias->getMethods() as $method) : ?> |
60 | | - <?= $s2 . trim($method->getDocComment($s2)) . "\n" ?> |
61 | | - <?= $s2 ?>public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>) |
62 | | - <?= $s2?>{<?php if ($method->getDeclaringClass() !== $method->getRoot()) : ?> |
63 | | - <?= $s2 ?>//Method inherited from <?= $method->getDeclaringClass() ?> |
64 | | - <?php endif; ?> |
| 53 | +namespace <?= $namespace === '__root' ? '' : trim($namespace, '\\') ?> { |
| 54 | +<?php foreach ($aliases as $alias) : ?> |
| 55 | +<?php if ($alias->getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> |
| 56 | +<?= "\n".$alias->getPhpDocTemplates($s1) ."\n" ?> |
| 57 | +<?php endif?> |
| 58 | +<?= $s1. $alias->getClassType() ?> <?= $alias->getShortName() ?> extends <?= $alias->getExtends() ?> {<?php if ($alias->getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?> |
| 59 | +<?php foreach ($alias->getMethods() as $method) : ?> |
| 60 | +<?= $s2 . trim($method->getDocComment($s2))."\n" ?> |
| 61 | +<?= $s2 ?>public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>) |
| 62 | +<?= $s2?>{<?php if ($method->getDeclaringClass() !== $method->getRoot()) : ?> |
| 63 | +<?= $s2 ?>//Method inherited from <?= $method->getDeclaringClass() ?> |
| 64 | +<?php endif; ?> |
65 | 65 |
|
66 | | - <?php if ($method->isInstanceCall()) : ?> |
67 | | - <?= $s3 ?>/** @var <?=$method->getRoot()?> $instance */ |
68 | | - <?php endif?> |
69 | | - <?= $s3 . ($method->shouldReturn() ? 'return ' : '') ?><?= $method->getRootMethodCall() ?>; |
70 | | - <?= $s2 ?>} |
| 66 | +<?php if ($method->isInstanceCall()) : ?> |
| 67 | +<?= $s3 ?>/** @var <?=$method->getRoot()?> $instance */ |
| 68 | +<?php endif?> |
| 69 | +<?= $s3 . ($method->shouldReturn() ? 'return ' : '') ?><?= $method->getRootMethodCall() ?>; |
| 70 | +<?= $s2 ?>} |
71 | 71 |
|
72 | | - <?php endforeach; ?> |
73 | | - <?php endif; ?>} |
74 | | - <?php endforeach; ?> |
75 | | - } |
| 72 | +<?php endforeach; ?> |
| 73 | +<?php endif; ?>} |
| 74 | +<?php endforeach; ?> |
| 75 | +} |
76 | 76 |
|
77 | 77 | <?php endforeach; ?> |
78 | 78 |
|
79 | 79 | <?php foreach($real_time_facades as $name): ?> |
80 | | - <?php $nested = explode('\\', str_replace('\\' . class_basename($name), '', $name)); ?> |
81 | | - namespace <?php echo implode('\\', $nested); ?> { |
| 80 | +<?php $nested = explode('\\', str_replace('\\' . class_basename($name), '', $name)); ?> |
| 81 | +namespace <?php echo implode('\\', $nested); ?> { |
82 | 82 | /** |
83 | | - * @mixin <?= str_replace('Facades', '', $name) ?> |
84 | | - */ |
| 83 | + * @mixin <?= str_replace('Facades', '', $name) ?> |
| 84 | + */ |
85 | 85 | class <?= class_basename($name) ?> extends <?= str_replace('Facades', '', $name) ?> {} |
86 | | - } |
| 86 | +} |
87 | 87 | <?php endforeach; ?> |
88 | 88 |
|
89 | 89 | <?php if ($helpers) : ?> |
90 | | - namespace { |
| 90 | +namespace { |
91 | 91 | <?= $helpers ?> |
92 | | - } |
| 92 | +} |
93 | 93 | <?php endif; ?> |
94 | 94 |
|
95 | 95 | <?php if ($include_fluent) : ?> |
96 | | - namespace Illuminate\Support { |
| 96 | +namespace Illuminate\Support { |
97 | 97 | /** |
98 | | - * Methods commonly used in migrations |
99 | | - * |
100 | | - * @method Fluent after(string $column) Add the after modifier |
101 | | - * @method Fluent charset(string $charset) Add the character set modifier |
102 | | - * @method Fluent collation(string $collation) Add the collation modifier |
103 | | - * @method Fluent comment(string $comment) Add comment |
104 | | - * @method Fluent default($value) Add the default modifier |
105 | | - * @method Fluent first() Select first row |
106 | | - * @method Fluent index(string $name = null) Add the in dex clause |
107 | | - * @method Fluent on(string $table) `on` of a foreign key |
108 | | - * @method Fluent onDelete(string $action) `on delete` of a foreign key |
109 | | - * @method Fluent onUpdate(string $action) `on update` of a foreign key |
110 | | - * @method Fluent primary() Add the primary key modifier |
111 | | - * @method Fluent references(string $column) `references` of a foreign key |
112 | | - * @method Fluent nullable(bool $value = true) Add the nullable modifier |
113 | | - * @method Fluent unique(string $name = null) Add unique index clause |
114 | | - * @method Fluent unsigned() Add the unsigned modifier |
115 | | - * @method Fluent useCurrent() Add the default timestamp value |
116 | | - * @method Fluent change() Add the change modifier |
117 | | - */ |
| 98 | + * Methods commonly used in migrations |
| 99 | + * |
| 100 | + * @method Fluent after(string $column) Add the after modifier |
| 101 | + * @method Fluent charset(string $charset) Add the character set modifier |
| 102 | + * @method Fluent collation(string $collation) Add the collation modifier |
| 103 | + * @method Fluent comment(string $comment) Add comment |
| 104 | + * @method Fluent default($value) Add the default modifier |
| 105 | + * @method Fluent first() Select first row |
| 106 | + * @method Fluent index(string $name = null) Add the in dex clause |
| 107 | + * @method Fluent on(string $table) `on` of a foreign key |
| 108 | + * @method Fluent onDelete(string $action) `on delete` of a foreign key |
| 109 | + * @method Fluent onUpdate(string $action) `on update` of a foreign key |
| 110 | + * @method Fluent primary() Add the primary key modifier |
| 111 | + * @method Fluent references(string $column) `references` of a foreign key |
| 112 | + * @method Fluent nullable(bool $value = true) Add the nullable modifier |
| 113 | + * @method Fluent unique(string $name = null) Add unique index clause |
| 114 | + * @method Fluent unsigned() Add the unsigned modifier |
| 115 | + * @method Fluent useCurrent() Add the default timestamp value |
| 116 | + * @method Fluent change() Add the change modifier |
| 117 | + */ |
118 | 118 | class Fluent {} |
119 | | - } |
| 119 | +} |
120 | 120 | <?php endif ?> |
121 | 121 |
|
122 | 122 | <?php foreach ($factories as $factory) : ?> |
123 | | - namespace <?=$factory->getNamespaceName()?> { |
| 123 | +namespace <?=$factory->getNamespaceName()?> { |
124 | 124 | /** |
125 | 125 | * @method \Illuminate\Database\Eloquent\Collection|<?=$factory->getShortName()?>[]|<?=$factory->getShortName()?> create($attributes = []) |
126 | 126 | * @method \Illuminate\Database\Eloquent\Collection|<?=$factory->getShortName()?>[]|<?=$factory->getShortName()?> make($attributes = []) |
127 | 127 | */ |
128 | 128 | class <?=$factory->getShortName()?>FactoryBuilder extends \Illuminate\Database\Eloquent\FactoryBuilder {} |
129 | | - } |
| 129 | +} |
130 | 130 | <?php endforeach; ?> |
0 commit comments