Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make same fixes in Composer file and README FILE #11

Merged
merged 6 commits into from
Apr 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 9 additions & 3 deletions .github/workflows/php-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: fix-code-style using php-cs-fixer

on: push
on:
pull_request:
types:
- closed
branches:
- main

jobs:
pint:
php-cs-fixer:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor/
composer.phar
composer.lock
.php-cs-fixer.cache
.php-cs-fixer.cache
.phpunit.result.cache
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"php":"8.1.2-1ubuntu2.9","version":"3.13.1:v3.13.1#78d2251dd86b49c609a0fd37c20dcf0a00aea5a7","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_import_per_statement":{"group_to_single_imports":false},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"lib\/CmiClientInterface.php":"4f881dc4092f5c732a352a3af7ffdb43","lib\/BaseCmiClient.php":"8eb693ed8ba7567d7c6b4b59290a2322","lib\/CmiClient.php":"85b273c74043d3f7534e50cdea7adbb3","lib\/Exception\/ExceptionInterface.php":"73157aeed1ceaebdb37675cb5302e3fa","lib\/Exception\/InvalidArgumentException.php":"ec0e9da28fce5b168a3cd146b5db306e"}}
{"php":"8.1.2-1ubuntu2.11","version":"3.16.0:v3.16.0#d40f9436e1c448d309fa995ab9c14c5c7a96f2dc","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"curly_braces_position":{"allow_single_line_empty_anonymous_classes":true},"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_import_per_statement":{"group_to_single_imports":false},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"lib\/Exception\/ExceptionInterface.php":"73157aeed1ceaebdb37675cb5302e3fa","lib\/Exception\/InvalidArgumentException.php":"ec0e9da28fce5b168a3cd146b5db306e","lib\/BaseCmiClient.php":"8eb693ed8ba7567d7c6b4b59290a2322","lib\/CmiClient.php":"85b273c74043d3f7534e50cdea7adbb3","lib\/CmiClientInterface.php":"4f881dc4092f5c732a352a3af7ffdb43"}}
2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"CmiClientTest::test_it_require_storeid":3,"CmiClientTest::test_if_hash_is_validated":4,"CmiClientTest::test_storekey_has_space":4},"times":{"CmiClientTest::testCanBeCreated":0.01,"CmiClientTest::test_itRequireStoreId":0.008,"CmiClientTest::test_it_require_storeid":0.01,"CmiClientTest::test_storeid_null":0.015,"CmiClientTest::test_if_hash_is_validated":0.002,"CmiClientTest::test_storekey_has_space":0,"CmiClientTest::test_it_require_storekey":0.009,"CmiClientTest::test_storekey_null":0}}
{"version":1,"defects":{"CmiClientTest::test_it_require_storeid":3,"CmiClientTest::test_if_hash_is_validated":4,"CmiClientTest::test_storekey_has_space":4},"times":{"CmiClientTest::testCanBeCreated":0.01,"CmiClientTest::test_itRequireStoreId":0.008,"CmiClientTest::test_it_require_storeid":0.01,"CmiClientTest::test_storeid_null":0.015,"CmiClientTest::test_if_hash_is_validated":0.002,"CmiClientTest::test_storekey_has_space":0,"CmiClientTest::test_it_require_storekey":0.007,"CmiClientTest::test_storekey_null":0}}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NB: The small library follows the FIG standard **PSR-4** .

cmi-php requires the following components to work correctly

- PHP>=5.4
- PHP>=8.1
- [cUrl](https://www.php.net/manual/en/book.curl.php) Extension
- [mbstring](https://www.php.net/manual/en/book.mbstring.php) Extension

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@
"tests/"
]
}
},
"scripts": {
"test" : "vendor/bin/phpunit"
}
}
Loading