Skip to content

Commit

Permalink
Removing the error code system.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshforbes committed Apr 12, 2016
1 parent cdd6ae8 commit 4bdaa55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,15 @@
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Input;
use NavJobs\Transmit\Traits\QueryHelperTrait;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Routing\Controller as BaseController;
use League\Fractal\Pagination\IlluminatePaginatorAdapter;
use NavJobs\Transmit\Traits\QueryHelperTrait;

abstract class Controller extends BaseController
{
use QueryHelperTrait;

const CODE_WRONG_ARGS = 'GEN-WRONG-ARGS';
const CODE_NOT_FOUND = 'GEN-NOT-FOUND';
const CODE_INTERNAL_ERROR = 'GEN-INTERNAL-ERROR';
const CODE_UNAUTHORIZED = 'GEN-UNAUTHORIZED';
const CODE_FORBIDDEN = 'GEN-FORBIDDEN';
const CODE_UNPROCESSABLE_ENTITY = 'GEN-UNPROCESSABLE-ENTITY';

protected $statusCode = 200;
protected $fractal;

Expand Down
1 change: 0 additions & 1 deletion tests/Integration/ControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ public function it_can_respond_with_a_wrong_arguments_error()

$expectedArray = [
'errors' => [
'code' => 'GEN-WRONG-ARGS',
'http_code' => 400,
'message' => 'Wrong Arguments'
]
Expand Down

0 comments on commit 4bdaa55

Please sign in to comment.