diff --git a/.php-cs-fixer.cache b/.php-cs-fixer.cache new file mode 100644 index 0000000..5afe75e --- /dev/null +++ b/.php-cs-fixer.cache @@ -0,0 +1 @@ +{"php":"8.0.10","version":"3.6.0:v3.6.0#1975e4453eb2726d1f50da0ce7fa91295029a4fa","indent":" ","lineEnding":"\n","rules":{"array_indentation":true,"array_syntax":{"syntax":"short"},"binary_operator_spaces":{"default":"single_space","operators":{"=>":null}},"blank_line_after_namespace":true,"blank_line_after_opening_tag":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"braces":true,"cast_spaces":{"space":"none"},"class_attributes_separation":{"elements":{"method":"one"}},"class_definition":{"multi_line_extends_each_single_line":true,"single_item_single_line":true,"single_line":false},"concat_space":{"spacing":"one"},"declare_equal_normalize":true,"elseif":true,"encoding":true,"full_opening_tag":true,"fully_qualified_strict_types":true,"function_declaration":true,"function_typehint_space":true,"heredoc_to_nowdoc":true,"include":true,"increment_style":{"style":"post"},"indentation_type":true,"is_null":true,"linebreak_after_opening_tag":true,"line_ending":true,"list_syntax":{"syntax":"short"},"lowercase_cast":true,"constant_case":{"case":"lower"},"lowercase_keywords":true,"lowercase_static_reference":true,"magic_method_casing":true,"magic_constant_casing":true,"method_argument_space":true,"native_function_casing":true,"no_alias_functions":true,"no_extra_blank_lines":{"tokens":["extra","throw","use","use_trait"]},"no_blank_lines_after_class_opening":true,"no_blank_lines_after_phpdoc":true,"no_closing_tag":true,"no_empty_phpdoc":true,"no_empty_statement":true,"no_leading_import_slash":true,"no_leading_namespace_whitespace":true,"no_mixed_echo_print":{"use":"echo"},"no_multiline_whitespace_around_double_arrow":true,"multiline_whitespace_before_semicolons":{"strategy":"no_multi_line"},"no_short_bool_cast":true,"no_singleline_whitespace_before_semicolons":true,"no_spaces_after_function_name":true,"no_spaces_around_offset":{"positions":["inside","outside"]},"no_spaces_inside_parenthesis":true,"no_trailing_comma_in_list_call":true,"no_trailing_comma_in_singleline_array":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"no_unneeded_control_parentheses":{"statements":["break","clone","continue","echo_print","return","switch_case","yield"]},"no_unreachable_default_argument_value":true,"no_useless_return":true,"no_whitespace_before_comma_in_array":true,"no_whitespace_in_blank_line":true,"normalize_index_brace":true,"object_operator_without_whitespace":true,"ordered_imports":{"sort_algorithm":"alpha"},"phpdoc_indent":true,"phpdoc_inline_tag_normalizer":true,"phpdoc_no_access":true,"phpdoc_no_package":true,"phpdoc_no_useless_inheritdoc":true,"phpdoc_scalar":true,"phpdoc_single_line_var_spacing":true,"phpdoc_tag_type":{"tags":{"inheritdoc":"inline"}},"phpdoc_trim":true,"phpdoc_types":true,"phpdoc_var_without_name":true,"psr_autoloading":true,"self_accessor":true,"short_scalar_cast":true,"single_blank_line_at_eof":true,"single_blank_line_before_namespace":true,"single_class_element_per_statement":true,"single_import_per_statement":true,"single_line_after_imports":true,"single_line_comment_style":{"comment_types":["hash"]},"single_quote":true,"space_after_semicolon":true,"standardize_not_equals":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"ternary_operator_spaces":true,"ternary_to_null_coalescing":true,"trailing_comma_in_multiline":{"elements":["arrays"]},"trim_array_spaces":true,"unary_operator_spaces":true,"visibility_required":{"elements":["method","property"]},"whitespace_after_comma_in_array":true},"hashes":{"src\/config\/reddit-api.php":1950115329,"src\/Exceptions\/RedditAuthenticationException.php":2114940988,"src\/Interfaces\/RedditApiInterface.php":2664988582,"src\/RedditAPI.php":772165867,"src\/RedditAPIFacade.php":2086610012,"src\/RedditAPIServiceProvider.php":3862726915,"src\/RedditLive.php":2118097427,"src\/RedditOAuth2.php":2316289030,"src\/RedditRateLimiter.php":1331212805}} \ No newline at end of file diff --git a/.php_cs.dist b/.php-cs-fixer.dist.php similarity index 89% rename from .php_cs.dist rename to .php-cs-fixer.dist.php index 0c2947d..80b1643 100644 --- a/.php_cs.dist +++ b/.php-cs-fixer.dist.php @@ -8,6 +8,7 @@ $project_path . '/src', ]) ->name('*.php') + ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); diff --git a/composer.json b/composer.json index 3861443..c755b00 100755 --- a/composer.json +++ b/composer.json @@ -19,16 +19,16 @@ } ], "require": { - "php": "^7.2", + "php": "^8.0", "ext-curl": "*", "ext-json": "*", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0" + "illuminate/support": "^8.0|^9.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.16", - "gtjamesa/php-standards": "^1.0", - "orchestra/testbench": "^4.0|^5.0|^6.0", - "phpunit/phpunit": "^8.4|^9.0" + "friendsofphp/php-cs-fixer": "^3.6", + "gtjamesa/php-standards": "^2.0", + "orchestra/testbench": "^6.0|^7.0", + "phpunit/phpunit": "^9.0" }, "autoload": { "psr-4": { @@ -50,6 +50,9 @@ } } }, + "scripts": { + "fix": "vendor/bin/php-cs-fixer fix" + }, "config": { "sort-packages": true } diff --git a/src/Interfaces/RedditApiInterface.php b/src/Interfaces/RedditApiInterface.php index 7570d46..e75865a 100644 --- a/src/Interfaces/RedditApiInterface.php +++ b/src/Interfaces/RedditApiInterface.php @@ -2137,4 +2137,4 @@ public function wikiGetPageSettings($subreddit, $pagename); public function wikiUpdatePageSettings($subreddit, $pagename, $permlevel = null, $listed = null); public function apiCall($path, $method = 'GET', $params = null, $json = false); -} \ No newline at end of file +} diff --git a/src/RedditAPI.php b/src/RedditAPI.php index 8dd41a0..2afe37b 100644 --- a/src/RedditAPI.php +++ b/src/RedditAPI.php @@ -2,7 +2,6 @@ namespace CodeWizz\RedditAPI; - use CodeWizz\RedditAPI\Interfaces\RedditApiInterface; class RedditAPI implements RedditApiInterface