Skip to content

Commit a909fa7

Browse files
committed
eslint
1 parent ef478df commit a909fa7

15 files changed

+378
-378
lines changed

database/Factories/AllocationFactory.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@
88

99
class AllocationFactory extends Factory
1010
{
11-
/**
12-
* The name of the factory's corresponding model.
13-
*
14-
* @var string
15-
*/
16-
protected $model = Allocation::class;
11+
/**
12+
* The name of the factory's corresponding model.
13+
*
14+
* @var string
15+
*/
16+
protected $model = Allocation::class;
1717

18-
/**
19-
* Define the model's default state.
20-
*/
21-
public function definition(): array
22-
{
23-
return [
24-
'ip' => $this->faker->unique()->ipv4,
25-
'port' => $this->faker->unique()->numberBetween(1024, 65535),
26-
];
27-
}
18+
/**
19+
* Define the model's default state.
20+
*/
21+
public function definition(): array
22+
{
23+
return [
24+
'ip' => $this->faker->unique()->ipv4,
25+
'port' => $this->faker->unique()->numberBetween(1024, 65535),
26+
];
27+
}
2828

29-
/**
30-
* Attaches the allocation to a specific server model.
31-
*/
32-
public function forServer(Server $server): self
33-
{
34-
return $this->for($server)->for($server->node);
35-
}
29+
/**
30+
* Attaches the allocation to a specific server model.
31+
*/
32+
public function forServer(Server $server): self
33+
{
34+
return $this->for($server)->for($server->node);
35+
}
3636
}

database/Factories/ApiKeyFactory.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@
99

1010
class ApiKeyFactory extends Factory
1111
{
12-
/**
13-
* The name of the factory's corresponding model.
14-
*
15-
* @var string
16-
*/
17-
protected $model = ApiKey::class;
12+
/**
13+
* The name of the factory's corresponding model.
14+
*
15+
* @var string
16+
*/
17+
protected $model = ApiKey::class;
1818

19-
/**
20-
* Define the model's default state.
21-
*/
22-
public function definition(): array
23-
{
24-
static $token;
19+
/**
20+
* Define the model's default state.
21+
*/
22+
public function definition(): array
23+
{
24+
static $token;
2525

26-
return [
27-
'key_type' => ApiKey::TYPE_APPLICATION,
28-
'identifier' => ApiKey::generateTokenIdentifier(ApiKey::TYPE_APPLICATION),
29-
'token' => $token ?: $token = encrypt(Str::random(ApiKey::KEY_LENGTH)),
30-
'allowed_ips' => null,
31-
'memo' => 'Test Function Key',
32-
'created_at' => Carbon::now(),
33-
'updated_at' => Carbon::now(),
34-
];
35-
}
26+
return [
27+
'key_type' => ApiKey::TYPE_APPLICATION,
28+
'identifier' => ApiKey::generateTokenIdentifier(ApiKey::TYPE_APPLICATION),
29+
'token' => $token ?: $token = encrypt(Str::random(ApiKey::KEY_LENGTH)),
30+
'allowed_ips' => null,
31+
'memo' => 'Test Function Key',
32+
'created_at' => Carbon::now(),
33+
'updated_at' => Carbon::now(),
34+
];
35+
}
3636
}

database/Factories/BackupFactory.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99

1010
class BackupFactory extends Factory
1111
{
12-
/**
13-
* The name of the factory's corresponding model.
14-
*
15-
* @var string
16-
*/
17-
protected $model = Backup::class;
12+
/**
13+
* The name of the factory's corresponding model.
14+
*
15+
* @var string
16+
*/
17+
protected $model = Backup::class;
1818

19-
/**
20-
* Define the model's default state.
21-
*/
22-
public function definition(): array
23-
{
24-
return [
25-
'uuid' => Uuid::uuid4()->toString(),
26-
'name' => $this->faker->sentence,
27-
'disk' => Backup::ADAPTER_WINGS,
28-
'is_successful' => true,
29-
'created_at' => CarbonImmutable::now(),
30-
'completed_at' => CarbonImmutable::now(),
31-
];
32-
}
19+
/**
20+
* Define the model's default state.
21+
*/
22+
public function definition(): array
23+
{
24+
return [
25+
'uuid' => Uuid::uuid4()->toString(),
26+
'name' => $this->faker->sentence,
27+
'disk' => Backup::ADAPTER_WINGS,
28+
'is_successful' => true,
29+
'created_at' => CarbonImmutable::now(),
30+
'completed_at' => CarbonImmutable::now(),
31+
];
32+
}
3333
}

database/Factories/DatabaseFactory.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99

1010
class DatabaseFactory extends Factory
1111
{
12-
/**
13-
* The name of the factory's corresponding model.
14-
*
15-
* @var string
16-
*/
17-
protected $model = Database::class;
12+
/**
13+
* The name of the factory's corresponding model.
14+
*
15+
* @var string
16+
*/
17+
protected $model = Database::class;
1818

19-
/**
20-
* Define the model's default state.
21-
*/
22-
public function definition(): array
23-
{
24-
static $password;
19+
/**
20+
* Define the model's default state.
21+
*/
22+
public function definition(): array
23+
{
24+
static $password;
2525

26-
return [
27-
'database' => Str::random(10),
28-
'username' => Str::random(10),
29-
'remote' => '%',
30-
'password' => $password ?: encrypt('test123'),
31-
'created_at' => Carbon::now(),
32-
'updated_at' => Carbon::now(),
33-
];
34-
}
26+
return [
27+
'database' => Str::random(10),
28+
'username' => Str::random(10),
29+
'remote' => '%',
30+
'password' => $password ?: encrypt('test123'),
31+
'created_at' => Carbon::now(),
32+
'updated_at' => Carbon::now(),
33+
];
34+
}
3535
}

database/Factories/DatabaseHostFactory.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88

99
class DatabaseHostFactory extends Factory
1010
{
11-
/**
12-
* The name of the factory's corresponding model.
13-
*
14-
* @var string
15-
*/
16-
protected $model = DatabaseHost::class;
11+
/**
12+
* The name of the factory's corresponding model.
13+
*
14+
* @var string
15+
*/
16+
protected $model = DatabaseHost::class;
1717

18-
/**
19-
* Define the model's default state.
20-
*/
21-
public function definition(): array
22-
{
23-
return [
24-
'name' => $this->faker->colorName,
25-
'host' => $this->faker->unique()->ipv4,
26-
'port' => 3306,
27-
'username' => $this->faker->colorName,
28-
'password' => Crypt::encrypt($this->faker->word),
29-
];
30-
}
18+
/**
19+
* Define the model's default state.
20+
*/
21+
public function definition(): array
22+
{
23+
return [
24+
'name' => $this->faker->colorName,
25+
'host' => $this->faker->unique()->ipv4,
26+
'port' => 3306,
27+
'username' => $this->faker->colorName,
28+
'password' => Crypt::encrypt($this->faker->word),
29+
];
30+
}
3131
}

database/Factories/EggFactory.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88

99
class EggFactory extends Factory
1010
{
11-
/**
12-
* The name of the factory's corresponding model.
13-
*
14-
* @var string
15-
*/
16-
protected $model = Egg::class;
11+
/**
12+
* The name of the factory's corresponding model.
13+
*
14+
* @var string
15+
*/
16+
protected $model = Egg::class;
1717

18-
/**
19-
* Define the model's default state.
20-
*/
21-
public function definition(): array
22-
{
23-
return [
24-
'uuid' => Uuid::uuid4()->toString(),
25-
'name' => $this->faker->name,
26-
'description' => implode(' ', $this->faker->sentences()),
27-
'startup' => 'java -jar test.jar',
28-
];
29-
}
18+
/**
19+
* Define the model's default state.
20+
*/
21+
public function definition(): array
22+
{
23+
return [
24+
'uuid' => Uuid::uuid4()->toString(),
25+
'name' => $this->faker->name,
26+
'description' => implode(' ', $this->faker->sentences()),
27+
'startup' => 'java -jar test.jar',
28+
];
29+
}
3030
}

database/Factories/EggVariableFactory.php

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,50 @@
88

99
class EggVariableFactory extends Factory
1010
{
11-
/**
12-
* The name of the factory's corresponding model.
13-
*
14-
* @var string
15-
*/
16-
protected $model = EggVariable::class;
11+
/**
12+
* The name of the factory's corresponding model.
13+
*
14+
* @var string
15+
*/
16+
protected $model = EggVariable::class;
1717

18-
/**
19-
* Define the model's default state.
20-
*/
21-
public function definition(): array
22-
{
23-
return [
24-
'name' => $this->faker->unique()->firstName,
25-
'description' => $this->faker->sentence(),
26-
'env_variable' => Str::upper(Str::replaceArray(' ', ['_'], $this->faker->words(2, true))),
27-
'default_value' => $this->faker->colorName,
28-
'user_viewable' => 0,
29-
'user_editable' => 0,
30-
'rules' => 'required|string',
31-
];
32-
}
18+
/**
19+
* Define the model's default state.
20+
*/
21+
public function definition(): array
22+
{
23+
return [
24+
'name' => $this->faker->unique()->firstName,
25+
'description' => $this->faker->sentence(),
26+
'env_variable' => Str::upper(Str::replaceArray(' ', ['_'], $this->faker->words(2, true))),
27+
'default_value' => $this->faker->colorName,
28+
'user_viewable' => 0,
29+
'user_editable' => 0,
30+
'rules' => 'required|string',
31+
];
32+
}
3333

34-
/**
35-
* Indicate that the egg variable is viewable.
36-
*/
37-
public function viewable(): static
38-
{
39-
return $this->state(function (array $attributes) {
40-
return [
41-
'user_viewable' => 1,
42-
];
43-
});
44-
}
34+
/**
35+
* Indicate that the egg variable is viewable.
36+
*/
37+
public function viewable(): static
38+
{
39+
return $this->state(function (array $attributes) {
40+
return [
41+
'user_viewable' => 1,
42+
];
43+
});
44+
}
4545

46-
/**
47-
* Indicate that the egg variable is editable.
48-
*/
49-
public function editable(): static
50-
{
51-
return $this->state(function (array $attributes) {
52-
return [
53-
'user_editable' => 1,
54-
];
55-
});
56-
}
46+
/**
47+
* Indicate that the egg variable is editable.
48+
*/
49+
public function editable(): static
50+
{
51+
return $this->state(function (array $attributes) {
52+
return [
53+
'user_editable' => 1,
54+
];
55+
});
56+
}
5757
}

0 commit comments

Comments
 (0)