@@ -4,9 +4,9 @@ |
||
| 4 | 4 | use Modules\Script\Entities\ScriptRelease; |
| 5 | 5 | use Modules\Script\Support\Version; |
| 6 | 6 | |
| 7 | -$factory->define(ScriptRelease::class, function (Faker $faker) { |
|
| 7 | +$factory->define(ScriptRelease::class, function(Faker $faker) { |
|
| 8 | 8 | return [ |
| 9 | - ScriptRelease::TYPE => $faker->randomElement(['MINOR','MAJOR','PATCH']), |
|
| 9 | + ScriptRelease::TYPE => $faker->randomElement([ 'MINOR', 'MAJOR', 'PATCH' ]), |
|
| 10 | 10 | ScriptRelease::CHANGELOG => "A Script Release" |
| 11 | 11 | ]; |
| 12 | 12 | }); |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use Faker\Generator as Faker; |
| 4 | 4 | use Modules\Script\Entities\ScriptReview; |
| 5 | 5 | |
| 6 | -$factory->define(ScriptReview::class, function (Faker $faker) { |
|
| 6 | +$factory->define(ScriptReview::class, function(Faker $faker) { |
|
| 7 | 7 | return [ |
| 8 | 8 | ScriptReview::REVIEWER_ID => null, |
| 9 | 9 | ScriptReview::MESSAGE => $faker->text(), |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | use Modules\Script\Entities\Script; |
| 5 | 5 | use Modules\Script\Support\RsaGenerator; |
| 6 | 6 | |
| 7 | -$factory->define(Script::class, function (Faker $faker) { |
|
| 7 | +$factory->define(Script::class, function(Faker $faker) { |
|
| 8 | 8 | $rsa = RsaGenerator::generateKeyPair(); |
| 9 | 9 | return [ |
| 10 | 10 | Script::AUTHOR_ID => null, |
@@ -13,12 +13,12 @@ discard block |
||
| 13 | 13 | Script::SHORT_DESCRIPTION => $faker->text(), |
| 14 | 14 | Script::GAME => 'OSRS', |
| 15 | 15 | Script::PUBLIC => $faker->boolean, |
| 16 | - Script::BASE_PRICE => $faker->randomFloat(2,0,50), |
|
| 17 | - Script::RECURRING_PRICE => $faker->randomFloat(2,0,10), |
|
| 16 | + Script::BASE_PRICE => $faker->randomFloat(2, 0, 50), |
|
| 17 | + Script::RECURRING_PRICE => $faker->randomFloat(2, 0, 10), |
|
| 18 | 18 | Script::GIT_ACCESS => $faker->boolean, |
| 19 | 19 | Script::REPOSITORY_URL => $faker->text(), |
| 20 | 20 | Script::PUBLIC_KEY => $rsa->getPublicKey(), |
| 21 | 21 | Script::PRIVATE_KEY => $rsa->getPrivateKey(), |
| 22 | - Script::TAGS => [] |
|
| 22 | + Script::TAGS => [ ] |
|
| 23 | 23 | ]; |
| 24 | 24 | }); |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | use Faker\Generator as Faker; |
| 4 | 4 | use Modules\Script\Entities\ScriptExclusivity; |
| 5 | 5 | |
| 6 | -$factory->define(ScriptExclusivity::class, function (Faker $faker) { |
|
| 6 | +$factory->define(ScriptExclusivity::class, function(Faker $faker) { |
|
| 7 | 7 | return [ |
| 8 | - ScriptExclusivity::BASE_PRICE => $faker->randomFloat(2,0,50), |
|
| 9 | - ScriptExclusivity::RECURRING_PRICE => $faker->randomFloat(2,0,10), |
|
| 8 | + ScriptExclusivity::BASE_PRICE => $faker->randomFloat(2, 0, 50), |
|
| 9 | + ScriptExclusivity::RECURRING_PRICE => $faker->randomFloat(2, 0, 10), |
|
| 10 | 10 | ]; |
| 11 | 11 | }); |
@@ -3,11 +3,11 @@ |
||
| 3 | 3 | use Faker\Generator as Faker; |
| 4 | 4 | use Modules\Script\Entities\ScriptSubscription; |
| 5 | 5 | |
| 6 | -$factory->define(ScriptSubscription::class, function (Faker $faker) { |
|
| 6 | +$factory->define(ScriptSubscription::class, function(Faker $faker) { |
|
| 7 | 7 | return [ |
| 8 | 8 | ScriptSubscription::USER_ID => null, |
| 9 | 9 | ScriptSubscription::ACTIVE => $faker->boolean, |
| 10 | - ScriptSubscription::BASE_PRICE => $faker->randomFloat(2, 0,50), |
|
| 11 | - ScriptSubscription::RECURRING_PRICE => $faker->randomFloat(2, 0,50) |
|
| 10 | + ScriptSubscription::BASE_PRICE => $faker->randomFloat(2, 0, 50), |
|
| 11 | + ScriptSubscription::RECURRING_PRICE => $faker->randomFloat(2, 0, 50) |
|
| 12 | 12 | ]; |
| 13 | 13 | }); |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use Faker\Generator as Faker; |
| 4 | 4 | use Modules\Script\Entities\ScriptReviewReply; |
| 5 | 5 | |
| 6 | -$factory->define(ScriptReviewReply::class, function (Faker $faker) { |
|
| 6 | +$factory->define(ScriptReviewReply::class, function(Faker $faker) { |
|
| 7 | 7 | return [ |
| 8 | 8 | ScriptReviewReply::REPLIER_ID => null, |
| 9 | 9 | ScriptReviewReply::MESSAGE => $faker->text |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * |
| 15 | 15 | * @var array |
| 16 | 16 | */ |
| 17 | - public $available = []; |
|
| 17 | + public $available = [ ]; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Transform the resource into an array. |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function boot() |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function handle(ScriptWasCreatedEvent $event): void |
| 32 | 32 | { |
| 33 | - $this->service->releaseVersion($event->script,[ |
|
| 33 | + $this->service->releaseVersion($event->script, [ |
|
| 34 | 34 | ScriptRelease::TYPE => "MINOR", |
| 35 | 35 | ScriptRelease::CHANGELOG => "Initial script release" |
| 36 | 36 | ]); |