Skip to content

Commit fcff9ae

Browse files
committed
2 parents 0a3b64d + 223e300 commit fcff9ae

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/Models/WorkflowModelStatus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
*/
2222
class WorkflowModelStatus extends Model
2323
{
24-
use SoftDeletes;
25-
2624
/** @use BelongsToWorkflow<WorkflowModelStatus> */
2725
use BelongsToWorkflow;
2826

27+
use SoftDeletes;
28+
2929
protected $with = ['status'];
3030

3131
protected $guarded = ['id'];

src/Models/WorkflowTransition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
*/
2727
class WorkflowTransition extends Model
2828
{
29-
use SoftDeletes;
30-
3129
/** @use BelongsToWorkflow<WorkflowTransition> */
3230
use BelongsToWorkflow;
3331

3432
use HasPermissions;
3533

34+
use SoftDeletes;
35+
3636
public string $guard_name = 'web';
3737

3838
protected $table = 'workflows_transitions';

tests/Support/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
use Illuminate\Foundation\Auth\Access\Authorizable;
1010
use Spatie\Permission\Traits\HasRoles;
1111

12-
class User extends Model implements AuthorizableContract, AuthenticatableContract
12+
class User extends Model implements AuthenticatableContract, AuthorizableContract
1313
{
14-
use Authorizable;
1514
use Authenticatable;
15+
use Authorizable;
1616
use HasRoles;
1717

1818
protected $fillable = ['email'];

tests/TestCase.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ protected function setUp(): void
1919
{
2020
parent::setUp();
2121
Factory::guessFactoryNamesUsing(
22-
fn(string $modelName) => 'Squarebit\\Workflows\\Database\\Factories\\' . class_basename($modelName) . 'Factory'
22+
fn (string $modelName) => 'Squarebit\\Workflows\\Database\\Factories\\'.class_basename($modelName).'Factory'
2323
);
2424

25-
$migration = include __DIR__ . '/../database/migrations/create_workflow_tables.php.stub';
25+
$migration = include __DIR__.'/../database/migrations/create_workflow_tables.php.stub';
2626
$migration->up();
2727

2828
$this->actingAs(UserFactory::new()->create(['email' => '[email protected]']));
@@ -66,12 +66,12 @@ public function getEnvironmentSetUp($app): void
6666

6767
protected function defineDatabaseMigrations(): void
6868
{
69-
$from = __DIR__ . '/../vendor/spatie/laravel-permission/database/migrations/create_permission_tables.php.stub';
70-
$to = __DIR__ . '/Support/2000_01_01_000000_create_permission_tables.php';
69+
$from = __DIR__.'/../vendor/spatie/laravel-permission/database/migrations/create_permission_tables.php.stub';
70+
$to = __DIR__.'/Support/2000_01_01_000000_create_permission_tables.php';
7171
File::copy($from, $to);
7272

73-
$this->loadMigrationsFrom(__DIR__ . '/Support');
74-
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
73+
$this->loadMigrationsFrom(__DIR__.'/Support');
74+
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
7575
$this->loadLaravelMigrations();
7676
}
7777
}

0 commit comments

Comments
 (0)