Skip to content

Commit 896c97b

Browse files
laravel-ide-helpergithub-actions[bot]
laravel-ide-helper
authored andcommitted
composer fix-style
1 parent 317e773 commit 896c97b

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

resources/views/helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<?php foreach ($namespaces_by_extends_ns as $namespace => $aliases) : ?>
3030
namespace <?= $namespace === '__root' ? '' : trim($namespace, '\\') ?> {
3131
<?php foreach ($aliases as $alias) : ?>
32-
<?php echo trim($alias->getDocComment($s1)) . "\n{$s1}" . $alias->getClassType() ?> <?= $alias->getExtendsClass() ?><?php if($alias->shouldExtendParentClass()): ?> extends <?= $alias->getParentClass() ?><?php endif; ?> {
32+
<?php echo trim($alias->getDocComment($s1)) . "\n{$s1}" . $alias->getClassType() ?> <?= $alias->getExtendsClass() ?><?php if ($alias->shouldExtendParentClass()): ?> extends <?= $alias->getParentClass() ?><?php endif; ?> {
3333
<?php foreach ($alias->getMethods() as $method) : ?>
3434
<?= trim($method->getDocComment($s2)) . "\n{$s2}" ?>public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>)
3535
{<?php if ($method->getDeclaringClass() !== $method->getRoot()) : ?>
@@ -76,7 +76,7 @@
7676

7777
<?php endforeach; ?>
7878

79-
<?php foreach($real_time_facades as $name): ?>
79+
<?php foreach ($real_time_facades as $name): ?>
8080
<?php $nested = explode('\\', str_replace('\\' . class_basename($name), '', $name)); ?>
8181
namespace <?php echo implode('\\', $nested); ?> {
8282
/**

resources/views/meta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
<?php if (isset($expectedArgumentSets)): ?>
8383
<?php foreach ($expectedArgumentSets as $name => $argumentsList) : ?>
84-
registerArgumentsSet('<?= $name ?>', <?php foreach ($argumentsList as $i => $arg) : ?><?php if($i % 5 == 0) {
84+
registerArgumentsSet('<?= $name ?>', <?php foreach ($argumentsList as $i => $arg) : ?><?php if ($i % 5 == 0) {
8585
echo "\n";
8686
} ?><?= var_export($arg, true); ?>,<?php endforeach; ?>);
8787
<?php endforeach; ?>

src/Console/ModelsCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,7 @@ public function getPropertiesFromMethods($model)
689689
}
690690
} elseif (in_array($method, ['query', 'newQuery', 'newModelQuery'])
691691
) {
692-
if($this->laravel['config']->get('ide-helper.write_query_methods', true)){
693-
692+
if ($this->laravel['config']->get('ide-helper.write_query_methods', true)) {
694693
$builder = $this->getClassNameInDestinationFile($model, get_class($model->newModelQuery()));
695694

696695
$this->setMethod(

tests/Console/ModelsCommand/QueryMethods/Test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
88
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand;
9-
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\QueryMethods\Models\Post;
109

1110
class Test extends AbstractModelsCommand
1211
{

0 commit comments

Comments
 (0)