-
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.
- Loading branch information
Showing
30 changed files
with
500 additions
and
431 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"preset": "laravel", | ||
"rules": { | ||
"class_attributes_separation": { | ||
"elements": { | ||
"const": "only_if_meta" | ||
} | ||
}, | ||
"concat_space": { | ||
"spacing": "one" | ||
}, | ||
"elseif": false, | ||
"function_declaration": { | ||
"closure_fn_spacing": "none" | ||
}, | ||
"no_extra_blank_lines": { | ||
"tokens": [ | ||
"throw", | ||
"use", | ||
"extra", | ||
"return", | ||
"curly_brace_block" | ||
] | ||
}, | ||
"not_operator_with_successor_space": false, | ||
"trailing_comma_in_multiline": { | ||
"elements": [ | ||
"arrays", | ||
"match", | ||
"parameters" | ||
] | ||
}, | ||
"type_declaration_spaces": { | ||
"elements": [ | ||
"function" | ||
] | ||
}, | ||
"phpdoc_align": false | ||
} | ||
} |
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,14 @@ | ||
<?php namespace Tripleseat\Contracts; | ||
<?php | ||
|
||
namespace Tripleseat\Contracts; | ||
|
||
interface Http | ||
{ | ||
public function get(string $path, array $query = []); | ||
public function get(string $path, array $query = []): array; | ||
|
||
public function post(string $path, $body = null, array $query = []); | ||
public function post(string $path, ?array $body = null, array $query = []): array; | ||
|
||
public function put(string $path, $body = null, array $query = []); | ||
public function put(string $path, ?array $body = null, array $query = []): array; | ||
|
||
public function delete(string $path, array $query = []); | ||
} | ||
public function delete(string $path, array $query = []): array; | ||
} |
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,6 +1,7 @@ | ||
<?php namespace Tripleseat\Exceptions; | ||
<?php | ||
|
||
namespace Tripleseat\Exceptions; | ||
|
||
class InvalidArgumentException extends \InvalidArgumentException implements TripleseatException | ||
{ | ||
|
||
} | ||
} |
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,6 +1,7 @@ | ||
<?php namespace Tripleseat\Exceptions; | ||
<?php | ||
|
||
namespace Tripleseat\Exceptions; | ||
|
||
class InvalidAuthConfiguration extends \InvalidArgumentException implements TripleseatException | ||
{ | ||
|
||
} | ||
} |
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,8 +1,9 @@ | ||
<?php namespace Tripleseat\Exceptions; | ||
<?php | ||
|
||
namespace Tripleseat\Exceptions; | ||
|
||
use Exception; | ||
|
||
class InvalidService extends Exception implements TripleseatException | ||
{ | ||
|
||
} | ||
} |
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,8 +1,9 @@ | ||
<?php namespace Tripleseat\Exceptions; | ||
<?php | ||
|
||
namespace Tripleseat\Exceptions; | ||
|
||
use Exception; | ||
|
||
class InvalidSite extends Exception implements TripleseatException | ||
{ | ||
|
||
} | ||
} |
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,6 +1,7 @@ | ||
<?php namespace Tripleseat\Exceptions; | ||
<?php | ||
|
||
namespace Tripleseat\Exceptions; | ||
|
||
interface TripleseatException | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.