From 48378f306c36a28307cab0fd5d783bb17db46f50 Mon Sep 17 00:00:00 2001 From: Josantonius Date: Sun, 31 Jul 2022 17:12:41 +0200 Subject: [PATCH 1/2] refactor: fix comment --- src/Exceptions/UnsupportedLanguageException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exceptions/UnsupportedLanguageException.php b/src/Exceptions/UnsupportedLanguageException.php index e230466..88421f9 100644 --- a/src/Exceptions/UnsupportedLanguageException.php +++ b/src/Exceptions/UnsupportedLanguageException.php @@ -12,7 +12,7 @@ namespace Josantonius\HttpStatusCode\Exceptions; /** - * Language exception manager. + * Unsupported language exception manager. */ class UnsupportedLanguageException extends \Exception { From 4030adce9798a8e02ca77be792519f1927ab1eb6 Mon Sep 17 00:00:00 2001 From: Josantonius Date: Sun, 31 Jul 2022 17:13:57 +0200 Subject: [PATCH 2/2] docs: remove warning about version 1.x Closes #2 --- .github/lang/es-ES/README.md | 8 +------- README.md | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/lang/es-ES/README.md b/.github/lang/es-ES/README.md index b4336bf..b784675 100644 --- a/.github/lang/es-ES/README.md +++ b/.github/lang/es-ES/README.md @@ -13,11 +13,6 @@ Biblioteca de PHP para obtener mensajes y definiciones de códigos de estado HTTP. -> La versión 1.x se considera obsoleta y sin soporte. -> En esta versión (2.x) la biblioteca fue completamente reestructurada. -> Se recomienda revisar la documentación de esta versión y hacer los cambios necesarios -> antes de empezar a utilizarla, ya que no es compatible con la versión 1.x. - --- - [Requisitos](#requisitos) @@ -246,8 +241,7 @@ Ejecutar pruebas unitarias con [PHPUnit](https://phpunit.de/): composer phpunit ``` -Ejecutar pruebas de estándares de código [PSR2](http://www.php-fig.org/psr/psr-2/) con -[PHPCS](https://github.com/squizlabs/PHP_CodeSniffer): +Ejecutar pruebas de estándares de código con [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer): ```console composer phpcs diff --git a/README.md b/README.md index 38e6d17..9f091ef 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,6 @@ PHP library to get HTTP status code messages and definitions. -> Version 1.x is considered as deprecated and unsupported. -> In this version (2.x) the library was completely restructured. -> It is recommended to review the documentation for this version and make the necessary changes -> before starting to use it, as it not be compatible with version 1.x. - --- - [Requirements](#requirements) @@ -246,8 +241,7 @@ Run unit tests with [PHPUnit](https://phpunit.de/): composer phpunit ``` -Run [PSR12](http://www.php-fig.org/psr/psr-12/) code standard tests with -[PHPCS](https://github.com/squizlabs/PHP_CodeSniffer): +Run code standard tests with [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer): ```console composer phpcs