Skip to content

Commit

Permalink
Applied Laravel Pint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
little-apps authored and github-actions[bot] committed Jun 1, 2024
1 parent ff06ef7 commit 9c8cfdd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Commands/GeneratePhraseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function handle()
return 1;
}

if (!is_numeric($size) || $size <= 0 || $size % 8 !== 0) {
if (! is_numeric($size) || $size <= 0 || $size % 8 !== 0) {
$this->error('The key size must a positive number that is divisible by 8.');

return 1;
Expand Down
12 changes: 8 additions & 4 deletions tests/Features/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public function test_secret_phrase_generated_for_new_key()
*
* @return void
*/
public function test_generate_valid_size() {
public function test_generate_valid_size()
{
$this->artisan('littlejwt:phrase', ['--size' => '2048', '--yes' => true])
->assertSuccessful();
}
Expand All @@ -58,7 +59,8 @@ public function test_generate_valid_size() {
*
* @return void
*/
public function test_generate_invalid_size_negative() {
public function test_generate_invalid_size_negative()
{
$this->artisan('littlejwt:phrase', ['--size' => '-1024'])
->assertFailed();
}
Expand All @@ -68,7 +70,8 @@ public function test_generate_invalid_size_negative() {
*
* @return void
*/
public function test_generate_invalid_size_zero() {
public function test_generate_invalid_size_zero()
{
$this->artisan('littlejwt:phrase', ['--size' => '0'])
->assertFailed();
}
Expand All @@ -78,7 +81,8 @@ public function test_generate_invalid_size_zero() {
*
* @return void
*/
public function test_generate_invalid_size_letters() {
public function test_generate_invalid_size_letters()
{
$this->artisan('littlejwt:phrase', ['--size' => 'abcd'])
->assertFailed();
}
Expand Down

0 comments on commit 9c8cfdd

Please sign in to comment.