-
Notifications
You must be signed in to change notification settings - Fork 56
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 #99 from ARCANEDEV/develop
Adding Laravel 8 support
- Loading branch information
Showing
35 changed files
with
119 additions
and
122 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
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
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,27 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
> | ||
> | ||
<testsuites> | ||
<testsuite name="Package Test Suite"> | ||
<directory suffix=".php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">./src/</directory> | ||
</whitelist> | ||
</filter> | ||
<logging> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> | ||
<log type="coverage-text" target="build/logs/coverage.txt"/> | ||
<log type="coverage-html" target="build/logs/coverage"/> | ||
</logging> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="build/coverage/clover.xml"/> | ||
<html outputDirectory="build/coverage/html"/> | ||
<text outputFile="build/coverage/coverage.txt" showOnlySummary="true"/> | ||
</report> | ||
</coverage> | ||
</phpunit> |
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class AbstractNoCaptcha | ||
* | ||
* @package Arcanedev\NoCaptcha | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
abstract class AbstractNoCaptcha implements Contracts\NoCaptcha | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Interface NoCaptcha | ||
* | ||
* @package Arcanedev\NoCaptcha\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface NoCaptcha | ||
|
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 |
---|---|---|
|
@@ -5,10 +5,9 @@ | |
namespace Arcanedev\NoCaptcha\Contracts; | ||
|
||
/** | ||
* Interface NoCaptchaManager | ||
* Interface NoCaptchaManager | ||
* | ||
* @package Arcanedev\NoCaptcha\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface NoCaptchaManager | ||
{ | ||
|
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 |
---|---|---|
|
@@ -5,9 +5,8 @@ | |
namespace Arcanedev\NoCaptcha\Contracts\Utilities; | ||
|
||
/** | ||
* Interface RequestInterface | ||
* Interface Request | ||
* | ||
* @package Arcanedev\NoCaptcha\Contracts\Utilities | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Request | ||
|
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 |
---|---|---|
|
@@ -4,15 +4,13 @@ | |
|
||
namespace Arcanedev\NoCaptcha\Contracts\Utilities; | ||
|
||
use Illuminate\Contracts\Support\Arrayable; | ||
use Illuminate\Contracts\Support\Jsonable; | ||
use Illuminate\Contracts\Support\{Arrayable, Jsonable}; | ||
use JsonSerializable; | ||
|
||
/** | ||
* Interface Response | ||
* Interface Response | ||
* | ||
* @package Arcanedev\NoCaptcha\Contracts\Utilities | ||
* @author ARCANEDEV <[email protected]> | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Response extends Arrayable, Jsonable, JsonSerializable | ||
{ | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class ApiException | ||
* | ||
* @package Arcanedev\NoCaptcha\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ApiException extends NoCaptchaException {} |
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class InvalidArgumentException | ||
* | ||
* @package Arcanedev\NoCaptcha\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class InvalidArgumentException extends NoCaptchaException {} |
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class InvalidUrlException | ||
* | ||
* @package Arcanedev\NoCaptcha\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class InvalidUrlException extends NoCaptchaException {} |
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class NoCaptchaException | ||
* | ||
* @package Arcanedev\NoCaptcha\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
abstract class NoCaptchaException extends \Exception {} |
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 |
---|---|---|
|
@@ -5,15 +5,12 @@ | |
namespace Arcanedev\NoCaptcha; | ||
|
||
use Illuminate\Support\Manager; | ||
use Arcanedev\NoCaptcha\Contracts\{ | ||
NoCaptchaManager as NoCaptchaManagerContract, | ||
NoCaptcha as NoCaptchaContract, | ||
}; | ||
use Arcanedev\NoCaptcha\Contracts\NoCaptcha as NoCaptchaContract; | ||
use Arcanedev\NoCaptcha\Contracts\NoCaptchaManager as NoCaptchaManagerContract; | ||
|
||
/** | ||
* Class NoCaptchaManager | ||
* | ||
* @package Arcanedev\NoCaptcha | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class NoCaptchaManager extends Manager implements NoCaptchaManagerContract | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
/** | ||
* Class NoCaptchaServiceProvider | ||
* | ||
* @package Arcanedev\NoCaptcha | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class NoCaptchaServiceProvider extends ServiceProvider implements DeferrableProvider | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
/** | ||
* Class NoCaptchaV2 | ||
* | ||
* @package Arcanedev\NoCaptcha | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class NoCaptchaV2 extends AbstractNoCaptcha | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class NoCaptchaV3 | ||
* | ||
* @package Arcanedev\NoCaptcha | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class NoCaptchaV3 extends AbstractNoCaptcha | ||
|
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,12 +1,15 @@ | ||
<?php namespace Arcanedev\NoCaptcha\Rules; | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Arcanedev\NoCaptcha\Rules; | ||
|
||
use Illuminate\Contracts\Validation\Rule; | ||
use Illuminate\Support\Arr; | ||
|
||
/** | ||
* Class CaptchaRule | ||
* | ||
* @package Arcanedev\NoCaptcha\Rules | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class CaptchaRule implements Rule | ||
|
Oops, something went wrong.