-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ARCANEDEV/develop
Updating the package for Laravel 5.5
- Loading branch information
Showing
14 changed files
with
61 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ language: php | |
sudo: false | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- nightly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# 2. Configuration | ||
|
||
### Coming Soon… | ||
## Table of contents | ||
|
||
1. [Installation and Setup](1.Installation-and-Setup.md) | ||
2. [Configuration](2.Configuration.md) | ||
3. [Usage](3.Usage.md) | ||
|
||
> Coming Soon… |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# 3. Usage | ||
|
||
### Coming Soon… | ||
## Table of contents | ||
|
||
1. [Installation and Setup](1.Installation-and-Setup.md) | ||
2. [Configuration](2.Configuration.md) | ||
3. [Usage](3.Usage.md) | ||
|
||
> Coming Soon… |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/Entities/Spammers.php → src/Entities/SpammerCollection.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php namespace Arcanedev\SpamBlocker\Entities; | ||
|
||
use Arcanedev\Support\Collection; | ||
use Illuminate\Support\Collection; | ||
|
||
/** | ||
* Class Spammers | ||
* Class SpammerCollection | ||
* | ||
* @package Arcanedev\SpamBlocker\Entities | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class Spammers extends Collection | ||
class SpammerCollection extends Collection | ||
{ | ||
/* ----------------------------------------------------------------- | ||
| Main Methods | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?php namespace Arcanedev\SpamBlocker\Tests\Entities; | ||
|
||
use Arcanedev\SpamBlocker\Entities\Spammers; | ||
use Arcanedev\SpamBlocker\Entities\SpammerCollection; | ||
use Arcanedev\SpamBlocker\Tests\TestCase; | ||
|
||
/** | ||
* Class SpammersTest | ||
* Class SpammerCollectionTest | ||
* | ||
* @package Arcanedev\SpamBlocker\Tests\Entities | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class SpammersTest extends TestCase | ||
class SpammerCollectionTest extends TestCase | ||
{ | ||
/* ----------------------------------------------------------------- | ||
| Properties | ||
| ----------------------------------------------------------------- | ||
*/ | ||
|
||
/** @var \Arcanedev\SpamBlocker\Entities\Spammers */ | ||
/** @var \Arcanedev\SpamBlocker\Entities\SpammerCollection */ | ||
private $spammers; | ||
|
||
/* ----------------------------------------------------------------- | ||
|
@@ -28,7 +28,7 @@ public function setUp() | |
{ | ||
parent::setUp(); | ||
|
||
$this->spammers = new Spammers; | ||
$this->spammers = new SpammerCollection; | ||
} | ||
|
||
public function tearDown() | ||
|
@@ -48,8 +48,7 @@ public function it_can_be_instantiated() | |
{ | ||
$expectations = [ | ||
\Illuminate\Support\Collection::class, | ||
\Arcanedev\Support\Collection::class, | ||
\Arcanedev\SpamBlocker\Entities\Spammers::class, | ||
\Arcanedev\SpamBlocker\Entities\SpammerCollection::class, | ||
]; | ||
|
||
foreach ($expectations as $expected) { | ||
|
@@ -66,7 +65,7 @@ public function it_can_load_spammers() | |
'spammer-three.com', | ||
]; | ||
|
||
$this->spammers = Spammers::load($spammers); | ||
$this->spammers = SpammerCollection::load($spammers); | ||
|
||
$this->assertCount(count($spammers), $this->spammers); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters