diff --git a/README.md b/README.md index 75ea048..b837fdd 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE.md) [![Build Status][ico-travis]][link-travis] +[![StyleCI][ico-styleCi]][link-styleCi] [![Coverage Status][ico-scrutinizer]][link-scrutinizer] [![Quality Score][ico-code-quality]][link-code-quality] [![Total Downloads][ico-downloads]][link-downloads] @@ -167,6 +168,7 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio [ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/yemenifree/laravel-arabic-numbers-middleware.svg?style=flat-square [ico-code-quality]: https://img.shields.io/scrutinizer/g/yemenifree/laravel-arabic-numbers-middleware.svg?style=flat-square [ico-downloads]: https://img.shields.io/packagist/dt/yemenifree/laravel-arabic-numbers-middleware.svg?style=flat-square +[ico-styleCi]: https://styleci.io/repos/105763061/shield?branch=master&style=flat [link-packagist]: https://packagist.org/packages/yemenifree/laravel-arabic-numbers-middleware [link-travis]: https://travis-ci.org/yemenifree/laravel-arabic-numbers-middleware @@ -174,4 +176,5 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio [link-code-quality]: https://scrutinizer-ci.com/g/yemenifree/laravel-arabic-numbers-middleware [link-downloads]: https://packagist.org/packages/yemenifree/laravel-arabic-numbers-middleware [link-author]: https://github.com/yemenifree -[link-contributors]: ../../contributors \ No newline at end of file +[link-contributors]: ../../contributors +[link-styleCi]: https://styleci.io/repos/105763061 \ No newline at end of file diff --git a/src/Middleware/BaseNumbersMiddleware.php b/src/Middleware/BaseNumbersMiddleware.php index 99c3a65..aed274d 100644 --- a/src/Middleware/BaseNumbersMiddleware.php +++ b/src/Middleware/BaseNumbersMiddleware.php @@ -16,7 +16,7 @@ abstract class BaseNumbersMiddleware extends TransformsRequest /** @var array */ protected $easternNumbers = ['٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩']; - /** @var array */ + /** @var array|mixed */ protected $config; /** diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 8b94fd0..6956e7e 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -33,9 +33,9 @@ class ServiceProvider extends BaseServiceProvider /** * auto append middleware * - * @var array + * @var Collection */ - protected $auto_middleware = []; + protected $auto_middleware; /**