Skip to content

Commit

Permalink
Merge pull request #50 from ARCANEDEV/update-laravel_6.0_support
Browse files Browse the repository at this point in the history
Adding Laravel 6.0 support
  • Loading branch information
arcanedev-maroc authored Sep 5, 2019
2 parents 93080fd + 1214268 commit d6264bd
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ checks:
tools:
external_code_coverage:
timeout: 600
runs: 4
runs: 2
php_code_sniffer:
enabled: true
config:
Expand Down
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ language: php
sudo: false

php:
- 7.1.3
- 7.1
- 7.2
- 7.3
- nightly
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion _docs/0-Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 3 additions & 8 deletions _docs/1-Installation-and-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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"
Expand All @@ -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.*"
Expand All @@ -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

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion tests/Entities/DescriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Arcanedev\SeoHelper\Entities\Description;
use Arcanedev\SeoHelper\Tests\TestCase;
use Illuminate\Support\Str;

/**
* Class DescriptionTest
Expand Down Expand Up @@ -150,7 +151,7 @@ public function it_can_render_long_title()

$this->description->set($content)->setMax($max);

$expected = '<meta name="description" content="'.str_limit($content, $max).'">';
$expected = '<meta name="description" content="'.Str::limit($content, $max).'">';

static::assertHtmlStringEqualsHtmlString($expected, $this->description);
static::assertHtmlStringEqualsHtmlString($expected, $this->description->render());
Expand Down
6 changes: 4 additions & 2 deletions tests/Entities/TitleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

use Arcanedev\SeoHelper\Entities\Title;
use Arcanedev\SeoHelper\Tests\TestCase;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;

/**
* Class TitleTest
Expand Down Expand Up @@ -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()
);
}
Expand Down Expand Up @@ -302,7 +304,7 @@ public function it_can_render_long_title()

$this->title->set($title)->setMax($max);

$expected = '<title>'.str_limit($title, $max).'</title>';
$expected = '<title>'.Str::limit($title, $max).'</title>';

static::assertHtmlStringEqualsHtmlString($expected, $this->title);
static::assertHtmlStringEqualsHtmlString($expected, $this->title->render());
Expand Down

0 comments on commit d6264bd

Please sign in to comment.