Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f5ddb0f
Changed way to map exceptions to be more extensible
May 19, 2018
24c8330
Added scrutinizer config file
May 19, 2018
5829086
Changed return definition on abstract handle method
May 19, 2018
9a6ec4d
Fixed many things
May 19, 2018
cbdc165
Fixed inconsistent code
May 19, 2018
50041bf
Removed reference not on dependencies class
May 19, 2018
cfd0e01
Fixed complexibility response
May 19, 2018
6127f1b
Added tests to abstract handler class and fixed errors on validation
May 19, 2018
6cb80bc
Changed handler return params
May 20, 2018
404407c
Added option to choose personalized exception handlers
May 23, 2018
7b174f7
Added more test coverage
May 25, 2018
2cfe3a8
Added instructions to extends Exceptions
May 27, 2018
18be831
Added travis ci support
May 27, 2018
e8d0b61
Fixed style ci
May 27, 2018
7d62eb3
Apply fixes from StyleCI
sfelix-martins May 27, 2018
d2fc5ee
Merge pull request #6 from sfelix-martins/analysis-Xkjn7y
sfelix-martins May 27, 2018
c46a585
Added upgrade guide to 2.0 from 1.0
May 27, 2018
fa4be21
Merge branch '2.0' of github.com:sfelix-martins/json-exception-handle…
May 27, 2018
e464f66
Added requirements information to readme
May 27, 2018
1145e36
Added some doc block comments and coverage config
Dec 30, 2018
7c13d90
Fixed style ci badge
Dec 30, 2018
569d459
Fixed scrutnizer and travis definitions
Dec 30, 2018
5a0c5cb
Added composer.lock to gitignore
Dec 30, 2018
3b0aee6
Added test to model not found not translated
Dec 30, 2018
e15752e
Fixed to App\Handler defitions of property $exceptionHandlers overrid…
Jan 5, 2019
95cb1b6
Added instructions how to registry new handlers
Jan 5, 2019
6b5ac8b
Fixed validation status code and title
Mar 1, 2019
606f245
Fixed to do not show file and line on default source pointer
sfelix-martins Sep 18, 2019
c2c422b
Changed to snake_case helper to Str::snake()
sfelix-martins Sep 19, 2019
04558ac
Fixed package name on upgrade guide
sfelix-martins Sep 19, 2019
e59571e
Updated badges
sfelix-martins Sep 19, 2019
871ec1a
Added handlers to Authorization and NotFoundHttpException
sfelix-martins Sep 19, 2019
7b1c5a1
Merge branch '2.0' of github.com:sfelix-martins/json-exception-handle…
sfelix-martins Sep 19, 2019
d0b98ed
Update JsonHandler.php
designvoid May 26, 2020
9289852
Update JsonHandler.php
designvoid May 29, 2020
182914b
Merge pull request #9 from designvoid/designvoid-patch-1
sfelix-martins Jul 14, 2020
77daea0
Apply fixes from StyleCI
sfelix-martins Jul 14, 2020
70884c5
Merge pull request #10 from sfelix-martins/analysis-BMVbNL
sfelix-martins Jul 15, 2020
a196001
Update AbstractHandler constructor
tylerp-relocity Aug 18, 2021
5a00c68
Merge pull request #1 from tylerp-relocity/bug/constructor-typehint
tylerp-relocity Aug 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/node_modules
/vendor
/.phpintel
/.phpintel
/.idea
composer.lock
28 changes: 28 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
filter:
excluded_paths: [tests/*]

checks:
php:
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

build:
tests:
override:
- php-scrutinizer-run
-
command: 'vendor/bin/phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'clover'
2 changes: 0 additions & 2 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
preset: laravel

linting: true

finder:
exclude:
- "tests"
Expand Down
59 changes: 59 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
language: php

env:
global:
- setup=stable

matrix:
include:
- php: 7.0
env:
- testbench=3.4.x
- phpunit=5.7.x
- php: 7.0
env:
- testbench=3.5.x
- phpunit=6.0.x
- php: 7.1
env:
- testbench=3.5.x
- phpunit=6.0.x
- php: 7.1
env:
- testbench=3.6.x
- phpunit=7.0.x
- php: 7.1
env:
- testbench=3.6.x
- phpunit=7.0.x
- php: 7.1
env:
- testbench=3.7.x
- phpunit=7.0.x
- php: 7.2
env:
- testbench=3.5.x
- phpunit=6.0.x
- php: 7.2
env:
- testbench=3.6.x
- phpunit=7.0.x
- php: 7.2
env:
- testbench=3.6.x
- phpunit=7.0.x
- php: 7.2
env:
- testbench=3.7.x
- phpunit=7.0.x

sudo: false

install:
- composer require orchestra/testbench:${testbench} --dev --no-update
- composer require phpunit/phpunit:${phpunit} --dev --no-update
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi

script:
- vendor/bin/phpunit
Loading