diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 69d4755..d44a72f 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -22,7 +22,7 @@ checks: tools: external_code_coverage: timeout: 600 - runs: 4 + runs: 2 php_code_sniffer: enabled: true config: diff --git a/.travis.yml b/.travis.yml index 7d7841d..ed88626 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,6 @@ language: php sudo: false php: - - 7.1.3 - - 7.1 - 7.2 - 7.3 - nightly diff --git a/README.md b/README.md index ae7b312..8438dac 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/SEO-Helper/re * Easy setup & configuration. * Well documented & IDE Friendly. * Well tested with maximum code quality. - * Laravel `5.0` to `5.8` are supported. + * Laravel `5.0` to `6.0` are supported. * Made with :heart: & :coffee:. ## Table of contents diff --git a/_docs/0-Home.md b/_docs/0-Home.md index 11570d8..9b0e09b 100644 --- a/_docs/0-Home.md +++ b/_docs/0-Home.md @@ -11,7 +11,7 @@ SEO Helper is a package that provides tools and helpers for SEO (Search Engine O * Easy setup & configuration. * Well documented & IDE Friendly. * Well tested with maximum code quality. - * Laravel `5.0` to `5.8` are supported. + * Laravel `5.0` to `6.0` are supported. * Made with :heart: & :coffee:. ## Table of contents diff --git a/_docs/1-Installation-and-Setup.md b/_docs/1-Installation-and-Setup.md index 89014ef..589c272 100644 --- a/_docs/1-Installation-and-Setup.md +++ b/_docs/1-Installation-and-Setup.md @@ -8,14 +8,6 @@ 4. [API](4-API.md) 5. [Extras](5-Extras.md) -## Server Requirements - -The SEO Helper package has a few system requirements: - -``` -- PHP >= 5.6.4 -``` - ## Version Compatibility | SEO-Helper | Laravel | @@ -27,6 +19,7 @@ The SEO Helper package has a few system requirements: | ![SEO-Helper v1.5.x][seo_helper_1_5_x] | ![Laravel v5.6][laravel_5_6] | | ![SEO-Helper v1.6.x][seo_helper_1_6_x] | ![Laravel v5.7][laravel_5_7] | | ![SEO-Helper v1.7.x][seo_helper_1_7_x] | ![Laravel v5.8][laravel_5_8] | +| ![SEO-Helper v2.0.x][seo_helper_2_0_x] | ![Laravel v6.0][laravel_6_0] | [laravel_5_0]: https://img.shields.io/badge/v5.0-supported-brightgreen.svg?style=flat-square "Laravel v5.0" [laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1" @@ -37,6 +30,7 @@ The SEO Helper package has a few system requirements: [laravel_5_6]: https://img.shields.io/badge/v5.6-supported-brightgreen.svg?style=flat-square "Laravel v5.6" [laravel_5_7]: https://img.shields.io/badge/v5.7-supported-brightgreen.svg?style=flat-square "Laravel v5.7" [laravel_5_8]: https://img.shields.io/badge/v5.8-supported-brightgreen.svg?style=flat-square "Laravel v5.8" +[laravel_6_0]: https://img.shields.io/badge/v6.0-supported-brightgreen.svg?style=flat-square "Laravel v6.0" [seo_helper_1_1_x]: https://img.shields.io/badge/version-1.1.*-blue.svg?style=flat-square "SEO-Helper v1.1.*" [seo_helper_1_2_x]: https://img.shields.io/badge/version-1.2.*-blue.svg?style=flat-square "SEO-Helper v1.2.*" @@ -45,6 +39,7 @@ The SEO Helper package has a few system requirements: [seo_helper_1_5_x]: https://img.shields.io/badge/version-1.5.*-blue.svg?style=flat-square "SEO-Helper v1.5.*" [seo_helper_1_6_x]: https://img.shields.io/badge/version-1.6.*-blue.svg?style=flat-square "SEO-Helper v1.6.*" [seo_helper_1_7_x]: https://img.shields.io/badge/version-1.7.*-blue.svg?style=flat-square "SEO-Helper v1.7.*" +[seo_helper_2_0_x]: https://img.shields.io/badge/version-2.0.*-blue.svg?style=flat-square "SEO-Helper v2.0.*" ## Composer diff --git a/composer.json b/composer.json index 8305cae..373e353 100644 --- a/composer.json +++ b/composer.json @@ -17,15 +17,15 @@ "type": "library", "license": "MIT", "require": { - "php": ">=7.1.3", - "arcanedev/php-html": "~2.0", - "arcanedev/support": "~4.5.0" + "php": ">=7.2.0", + "arcanedev/php-html": "~3.0", + "arcanedev/support": "~5.0.0" }, "require-dev": { "ext-dom": "*", - "orchestra/testbench": "~3.8.0", - "phpunit/phpcov": "~5.0|~6.0", - "phpunit/phpunit": "~7.0|~8.0" + "orchestra/testbench": "~4.0.0", + "phpunit/phpcov": "~6.0", + "phpunit/phpunit": "~8.0" }, "autoload": { "psr-4": { diff --git a/tests/Entities/DescriptionTest.php b/tests/Entities/DescriptionTest.php index 3d1060b..cf89259 100644 --- a/tests/Entities/DescriptionTest.php +++ b/tests/Entities/DescriptionTest.php @@ -2,6 +2,7 @@ use Arcanedev\SeoHelper\Entities\Description; use Arcanedev\SeoHelper\Tests\TestCase; +use Illuminate\Support\Str; /** * Class DescriptionTest @@ -150,7 +151,7 @@ public function it_can_render_long_title() $this->description->set($content)->setMax($max); - $expected = ''; + $expected = ''; static::assertHtmlStringEqualsHtmlString($expected, $this->description); static::assertHtmlStringEqualsHtmlString($expected, $this->description->render()); diff --git a/tests/Entities/TitleTest.php b/tests/Entities/TitleTest.php index d586cb2..8ee85e4 100644 --- a/tests/Entities/TitleTest.php +++ b/tests/Entities/TitleTest.php @@ -2,6 +2,8 @@ use Arcanedev\SeoHelper\Entities\Title; use Arcanedev\SeoHelper\Tests\TestCase; +use Illuminate\Support\Arr; +use Illuminate\Support\Str; /** * Class TitleTest @@ -123,7 +125,7 @@ public function it_can_get_and_set_separator() public function it_can_get_default_title_position() { static::assertSame( - array_get($this->getTitleConfig(), 'first', true), + Arr::get($this->getTitleConfig(), 'first', true), $this->title->isTitleFirst() ); } @@ -302,7 +304,7 @@ public function it_can_render_long_title() $this->title->set($title)->setMax($max); - $expected = '