Skip to content

Commit d4c8ebe

Browse files
authored
Merge pull request #17 from bensherred/project-cleanup
Project cleanup and added the ability to check if a company is validated
2 parents ba3204d + ef4bdfb commit d4c8ebe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2190
-1539
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ jobs:
2121

2222
- name: Run PHPCS tests
2323
run: |
24-
vendor/bin/phpcs src --standard=PSR2
25-
vendor/bin/phpcs tests/Unit --standard=PSR2
24+
vendor/bin/phpcs src --standard=PSR12

.styleci.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
preset: recommended
1+
preset: psr12
22

33
enabled:
4-
- concat_with_spaces
54
- const_separation
65
- const_visibility_required
76
- linebreak_after_opening_tag
@@ -18,15 +17,6 @@ enabled:
1817
- simple_to_complex_string_variable
1918
- strict_comparison
2019

21-
disabled:
22-
- concat_without_spaces
23-
- no_unneeded_control_parentheses
24-
# PHP documentation should not be that strict
25-
- phpdoc_no_access
26-
- phpdoc_no_package
27-
- phpdoc_no_useless_inheritdoc
28-
- phpdoc_order
29-
3020
finder:
3121
exclude:
3222
- examples

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
"php": "^7.2",
4646
"nesbot/carbon": "^2.16",
4747
"ext-json": "*",
48-
"phpfastcache/phpfastcache": "^7.1",
4948
"php-http/message": "^1.8",
50-
"guzzlehttp/psr7": "^1.6",
51-
"php-http/guzzle6-adapter": "^1.0 || ^2.0"
49+
"guzzlehttp/psr7": "^1.6"
5250
},
5351
"require-dev": {
5452
"phpunit/phpunit": "^8.0 || ^9.0",
55-
"squizlabs/php_codesniffer": "^3.0"
53+
"squizlabs/php_codesniffer": "^3.0",
54+
"php-http/guzzle6-adapter": "^1.0 || ^2.0",
55+
"phpfastcache/phpfastcache": "^7.1"
5656
},
5757
"autoload": {
5858
"psr-4": {
@@ -70,8 +70,7 @@
7070
"scripts": {
7171
"test": [
7272
"./vendor/bin/phpunit",
73-
"./vendor/bin/phpcs src --standard=PSR2",
74-
"./vendor/bin/phpcs tests/Unit --standard=PSR2"
73+
"./vendor/bin/phpcs src --standard=PSR12"
7574
]
7675
}
7776
}

0 commit comments

Comments
 (0)