diff --git a/.gitattributes b/.gitattributes index 3073007..57add99 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,7 +4,6 @@ /tests export-ignore /.gitattributes export-ignore /.gitignore export-ignore -/.php_cs export-ignore /.styleci.yml export-ignore /.travis.yml export-ignore /CODE_OF_CONDUCT.md export-ignore diff --git a/.gitignore b/.gitignore index 73c6743..cf1cc7e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ vendor/ -.php_cs.cache .phpunit.result.cache composer.lock composer.phar diff --git a/.php_cs b/.php_cs deleted file mode 100644 index c045e14..0000000 --- a/.php_cs +++ /dev/null @@ -1,64 +0,0 @@ -notPath('bootstrap/cache') - ->notPath('storage') - ->notPath('vendor') - ->in(__DIR__) - ->name('*.php') - ->ignoreDotFiles(true) - ->ignoreVCS(true); - -$fixers = [ - '-psr0', - '-php_closing_tag', - 'blankline_after_open_tag', - '-concat_without_spaces', - 'double_arrow_multiline_whitespaces', - 'duplicate_semicolon', - 'empty_return', - 'extra_empty_lines', - 'include', - 'join_function', - 'list_commas', - 'multiline_array_trailing_comma', - 'namespace_no_leading_whitespace', - 'newline_after_open_tag', - 'no_blank_lines_after_class_opening', - 'no_empty_lines_after_phpdocs', - 'object_operator', - 'operators_spaces', - 'phpdoc_indent', - 'phpdoc_no_access', - '-phpdoc_no_package', - 'phpdoc_scalar', - 'phpdoc_short_description', - 'phpdoc_to_comment', - 'phpdoc_trim', - 'phpdoc_type_to_var', - 'phpdoc_var_without_name', - 'remove_leading_slash_use', - 'remove_lines_between_uses', - 'return', - 'self_accessor', - 'single_array_no_trailing_comma', - 'single_blank_line_before_namespace', - 'single_quote', - 'spaces_before_semicolon', - 'spaces_cast', - 'standardize_not_equal', - 'ternary_spaces', - 'trim_array_spaces', - 'unalign_equals', - 'unary_operators_spaces', - 'whitespacy_lines', - 'multiline_spaces_before_semicolon', - 'short_array_syntax', - 'short_echo_tag', -]; - -return Symfony\CS\Config\Config::create() - ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) - ->fixers($fixers) - ->finder($finder) - ->setUsingCache(true); \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ea2ba3..fe9c69c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to `cybercog/laravel-youtrack-sdk` will be documented in thi ## [Unreleased] +## [5.2.0] - 2020-03-07 + +### Added + +- ([#12]) Laravel 7 support + ## [5.1.0] - 2019-09-04 ### Added @@ -65,7 +71,8 @@ All notable changes to `cybercog/laravel-youtrack-sdk` will be documented in thi - Initial release -[Unreleased]: https://github.com/cybercog/laravel-youtrack-sdk/compare/5.1.0...master +[Unreleased]: https://github.com/cybercog/laravel-youtrack-sdk/compare/5.2.0...master +[5.2.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/5.1.0...5.2.0 [5.1.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/5.0.0...5.1.0 [5.0.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/4.2.0...5.0.0 [4.2.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/4.1.0...4.2.0 @@ -74,4 +81,5 @@ All notable changes to `cybercog/laravel-youtrack-sdk` will be documented in thi [3.0.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/2.0.0...3.0.0 [2.0.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/1.0.0...2.0.0 +[#12]: https://github.com/cybercog/laravel-youtrack-sdk/pull/12 [#9]: https://github.com/cybercog/laravel-youtrack-sdk/pull/9 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b21ca09..5c817fa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,18 +19,14 @@ Due to time constraints, we are not always able to respond as quickly as we woul ## Coding Guidelines -This project comes with a configuration file for php-cs-fixer (.php_cs) that you can use to (re)format your sourcecode for compliance with this project's coding guidelines: - -```sh -$ vendor/bin/php-cs-fixer fix -``` +This project follows [PSR-12 coding style guide](https://www.php-fig.org/psr/psr-12/). ## PHPUnit tests The phpunit script can be used to invoke the PHPUnit test runner: ```sh -$ composer test +$ vendor/bin/phpunit ``` ## Reporting issues diff --git a/composer.json b/composer.json index e1ee090..9d27dcf 100644 --- a/composer.json +++ b/composer.json @@ -39,12 +39,11 @@ "require": { "php": "^7.1", "cybercog/youtrack-php-sdk": "^4.0", - "illuminate/support": "5.8.*|^6.0" + "illuminate/support": "^5.8|^6.0|^7.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.10", - "orchestra/testbench": "3.8.*|^4.0", - "phpunit/phpunit": "^7.0|^8.0" + "orchestra/testbench": "^3.8|^4.0|^5.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" }, "autoload": { "psr-4": { diff --git a/src/YouTrackServiceProvider.php b/src/YouTrackServiceProvider.php index 868f892..b940f2b 100644 --- a/src/YouTrackServiceProvider.php +++ b/src/YouTrackServiceProvider.php @@ -67,7 +67,7 @@ private function resolveAuthorizerDriver(ConfigContract $config): AuthorizerCont $authorizer = $config->get('youtrack.authorizer'); $options = $config->get('youtrack.authorizers.' . $authorizer); - if ($authorizer == 'cookie') { + if ($authorizer === 'cookie') { return new $options['driver']( new CookieAuthenticator($options['username'], $options['password']) );