Skip to content

Commit a83df51

Browse files
mfnlaravel-ide-helper
andauthored
tests: fix assertion (#1139)
* tests: fix assertion * composer fix-style Co-authored-by: laravel-ide-helper <[email protected]>
1 parent fd30d11 commit a83df51

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Console/ModelsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,15 +1057,15 @@ protected function getFactoryMethods($model)
10571057
}
10581058

10591059
$traits = class_uses(get_class($model), true);
1060-
if (! in_array('Illuminate\\Database\\Eloquent\\Factories\\HasFactory', $traits)) {
1060+
if (!in_array('Illuminate\\Database\\Eloquent\\Factories\\HasFactory', $traits)) {
10611061
return;
10621062
}
10631063

10641064
$modelName = get_class($model);
10651065
$factory = get_class($modelName::factory());
10661066
$factory = '\\' . trim($factory, '\\');
10671067

1068-
if (! class_exists($factory)) {
1068+
if (!class_exists($factory)) {
10691069
return;
10701070
}
10711071

tests/Console/ModelsCommand/Factories/Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories;
66

7-
use Illuminate\Foundation\Application;
87
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
98
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand;
9+
use Illuminate\Foundation\Application;
1010

1111
class Test extends AbstractModelsCommand
1212
{
1313
public function test(): void
1414
{
15-
if (! version_compare(Application::VERSION, '8.2', '>=')) {
15+
if (!version_compare(Application::VERSION, '8.2', '>=')) {
1616
$this->markTestSkipped(
1717
'This test only works in Laravel >= 8.2'
1818
);

tests/MacroTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ public function testOutput()
225225
/**
226226
*
227227
*
228-
* @see \Barryvdh\LaravelIdeHelper\Tests\UrlGeneratorMacroClass::__invoke()
229228
* @param string $foo
230229
* @param int $bar
231230
* @return string
231+
* @see \Barryvdh\LaravelIdeHelper\Tests\UrlGeneratorMacroClass::__invoke()
232232
* @static
233233
*/
234234
DOC;

0 commit comments

Comments
 (0)