Skip to content

Commit

Permalink
Add PHPstan badge
Browse files Browse the repository at this point in the history
Code docs improvements
  • Loading branch information
alexeygeno committed Aug 8, 2023
1 parent 0b5272f commit 59a2635
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php-stan.yml
@@ -1,4 +1,4 @@
name: phpstan
name: PHPStan

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pint.yml
@@ -1,4 +1,4 @@
name: pint
name: Pint

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
@@ -1,4 +1,4 @@
name: tests
name: Tests

on:
push:
Expand Down
5 changes: 3 additions & 2 deletions README.md
@@ -1,7 +1,8 @@
# Phone Verification via [Laravel Notification Channels](https://laravel-notification-channels.com/)

[![Build Status](https://github.com/alexeygeno/phone-verification-laravel/workflows/tests/badge.svg)](https://github.com/alexeygeno/phone-verification-laravel/actions)
[![Build Status](https://github.com/alexeygeno/phone-verification-laravel/workflows/pint/badge.svg)](https://github.com/alexeygeno/phone-verification-php/actions)
[![Build Status](https://github.com/alexeygeno/phone-verification-laravel/workflows/Tests/badge.svg)](https://github.com/alexeygeno/phone-verification-laravel/actions)
[![Build Status](https://github.com/alexeygeno/phone-verification-laravel/workflows/Pint/badge.svg)](https://github.com/alexeygeno/phone-verification-php/actions)
[![Build Status](https://github.com/alexeygeno/phone-verification-laravel/workflows/PHPStan/badge.svg)](https://github.com/alexeygeno/phone-verification-php/actions)
[![Coverage Status](https://coveralls.io/repos/github/alexeygeno/phone-verification-laravel/badge.svg)](https://coveralls.io/github/alexeygeno/phone-verification-laravel)


Expand Down
Expand Up @@ -7,7 +7,7 @@
return new class extends Migration
{
/**
* Only mongodb migration.
* The name of the database connection to use.
*
* @var string
*/
Expand Down
Expand Up @@ -7,7 +7,7 @@
return new class extends Migration
{
/**
* Only mongodb migration.
* The name of the database connection to use.
*
* @var string
*/
Expand Down
Expand Up @@ -7,7 +7,7 @@
return new class extends Migration
{
/**
* Only mongodb migration.
* The name of the database connection to use.
*
* @var string
*/
Expand Down
Expand Up @@ -21,7 +21,7 @@ public function __construct()
}

/**
* Run the migrations.
* The name of the database connection to use.
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/PhoneVerification.php
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Support\Facades\Facade;

/**
* @method static mixed initiate(string $to)
* @method static \AlexGeno\PhoneVerification\Manager initiate(string $to)
* @method static \AlexGeno\PhoneVerification\Manager complete(string $to, int $otp)
*/
class PhoneVerification extends Facade
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/CustomSenderTest.php
Expand Up @@ -10,7 +10,7 @@ class CustomSenderTest extends FeatureTestCase
protected string $serviceProvider = CustomSenderServiceProvider::class;

/**
* Tests if custom sender is resolved properly for the sender interface
* If a custom sender is resolved properly for the sender interface
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/CustomStorageTest.php
Expand Up @@ -10,7 +10,7 @@ class CustomStorageTest extends FeatureTestCase
protected string $serviceProvider = CustomStorageServiceProvider::class;

/**
* Tests if custom storage is resolved properly for the storage interface
* If a custom storage is resolved properly for the storage interface
*
* @return void
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/IgnoreRoutesTest.php
Expand Up @@ -14,7 +14,7 @@ protected function getEnvironmentSetUp($app)
}

/**
* Tests that the route phone-verification/initiate is not available
* If the route phone-verification/initiate is not available
*
* @return void
*/
Expand All @@ -25,7 +25,7 @@ public function test_initiation_not_available()
}

/**
* Tests that the route phone-verification/complete is not available
* If the route phone-verification/complete is not available
*
* @return void
*/
Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/UseRoutesTest.php
Expand Up @@ -11,7 +11,7 @@ class UseRoutesTest extends FeatureTestCase
protected const LANG_MESSAGES = 'phone-verification::messages.';

/**
* Tests the route phone-verification/initiate
* Test the route phone-verification/initiate
*
* @return void
*/
Expand All @@ -25,7 +25,7 @@ public function test_initiation_ok()
}

/**
* Tests the initiation rate limit
* Test the initiation rate limit
*
* @return void
*/
Expand Down Expand Up @@ -69,7 +69,7 @@ public function test_process_ok()
}

/**
* Tests the completion rate limit
* Test the completion rate limit
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/SendersTest.php
Expand Up @@ -22,7 +22,7 @@ public function channels()
}

/**
* Test if notification facade was called properly for different channels
* If notification facade was called properly for different channels
*
* @see https://laravel.com/docs/9.x/mocking#on-demand-notifications
*
Expand Down

0 comments on commit 59a2635

Please sign in to comment.