Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add php-cs-fixer as composer script and make initial fix-style run
* Add php-cs-fixer as composer script * Make initial fix-style run * Fix indentation on all files * Add editorconfig file
- Loading branch information
1 parent
d96d825
commit d4c3a89
Showing
30 changed files
with
2,100 additions
and
1,673 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
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_style = space | ||
indent_size = 2 |
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,33 +1,35 @@ | ||
{ | ||
"name": "sparkpost/php-sparkpost", | ||
"description": "Client library for interfacing with the SparkPost API.", | ||
"license": "Apache 2.0", | ||
"authors": [ | ||
{ | ||
"name": "SparkPost" | ||
} | ||
], | ||
"minimum-stability": "stable", | ||
"scripts": { | ||
"post-install-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi", | ||
"post-update-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi", | ||
"test": "phpunit ./test/unit/" | ||
}, | ||
"require": { | ||
"php": ">=5.5.0", | ||
"egeloen/http-adapter": "*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "4.3.*", | ||
"guzzlehttp/guzzle": "6.*", | ||
"mockery/mockery": "^0.9.4", | ||
"satooshi/php-coveralls": "dev-master" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"SparkPost\\": "lib/SparkPost/", | ||
"SparkPost\\SendGridCompatibility\\": "lib/SendGridCompatibility/", | ||
"SparkPost\\Test\\TestUtils\\": "test/unit/TestUtils/" | ||
} | ||
"name": "sparkpost/php-sparkpost", | ||
"description": "Client library for interfacing with the SparkPost API.", | ||
"license": "Apache 2.0", | ||
"authors": [ | ||
{ | ||
"name": "SparkPost" | ||
} | ||
], | ||
"minimum-stability": "stable", | ||
"scripts": { | ||
"post-install-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi", | ||
"post-update-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi", | ||
"test": "phpunit ./test/unit/", | ||
"fix-style": "php-cs-fixer fix ." | ||
}, | ||
"require": { | ||
"php": ">=5.5.0", | ||
"egeloen/http-adapter": "*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "4.3.*", | ||
"guzzlehttp/guzzle": "6.*", | ||
"mockery/mockery": "^0.9.4", | ||
"satooshi/php-coveralls": "dev-master", | ||
"fabpot/php-cs-fixer": "^1.11" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"SparkPost\\": "lib/SparkPost/", | ||
"SparkPost\\SendGridCompatibility\\": "lib/SendGridCompatibility/", | ||
"SparkPost\\Test\\TestUtils\\": "test/unit/TestUtils/" | ||
} | ||
} | ||
} |
Oops, something went wrong.