diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 37df8f9a..c00fa4d1 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -5,22 +5,12 @@ use PhpCsFixer\{Config, Finder}; $finder = Finder::create() ->in([ - __DIR__, - __DIR__ . '/app', + __DIR__ . '/src', + __DIR__ . '/tests', __DIR__ . '/tools', ]) ->exclude([ - 'apidocs', - 'build', - 'coverage', - 'frontEndSrc', - 'phinx', - 'public', - 'tools', - 'tmp', 'vendor', - 'views', - 'templates', ]); return (new Config()) @@ -45,7 +35,7 @@ return (new Config()) 'blank_line_after_opening_tag' => false, 'blank_line_before_statement' => [ 'statements' => [ - 'case', + // 'case', 'continue', 'declare', 'default', @@ -128,12 +118,12 @@ return (new Config()) 'noise_remaining_usages_exclude' => [], ], 'escape_implicit_backslashes' => [ - 'double_quoted' => true, - 'heredoc_syntax' => true, + 'double_quoted' => false, + 'heredoc_syntax' => false, 'single_quoted' => false, ], - 'explicit_indirect_variable' => true, - 'explicit_string_variable' => true, + 'explicit_indirect_variable' => false, + 'explicit_string_variable' => false, 'final_class' => false, 'final_internal_class' => [ 'annotation_exclude' => ['@no-final'], @@ -167,7 +157,7 @@ return (new Config()) ], 'group_import' => true, 'header_comment' => false, // false by default - 'heredoc_indentation' => ['indentation' => 'start_plus_one'], + // 'heredoc_indentation' => ['indentation' => 'start_plus_one'], 'heredoc_to_nowdoc' => true, 'implode_call' => true, 'include' => true, @@ -232,8 +222,7 @@ return (new Config()) 'allow_unused_params' => true, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, + 'no_trailing_comma_in_singleline' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, @@ -270,9 +259,16 @@ return (new Config()) 'ordered_class_elements' => [ 'order' => [ 'use_trait', - 'constant', - 'property', - 'method', + 'case', + 'constant_public', + 'constant_protected', + 'constant_private', + 'property_public', + 'property_protected', + 'property_private', + 'construct', + 'destruct', + 'magic', ], 'sort_algorithm' => 'none', ], diff --git a/CHANGELOG.md b/CHANGELOG.md index 12ceddbc..da8195a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ # Changelog ## Version 5.2 -* Updated PHP requirement to 8 -* Updated to support PHP 8.1 +* Updated PHP requirement to 8.1 +* Updated to support PHP 8.2 +* Improve Anilist <-> Kitsu mappings to be more reliable ## Version 5.1 * Added session check, so when coming back to a page, if the session is expired, the page will refresh. diff --git a/app/logs/.gitkeep b/app/logs/.gitkeep old mode 100644 new mode 100755 diff --git a/app/views/anime/details.php b/app/views/anime/details.php index 65528672..99e89f4f 100644 --- a/app/views/anime/details.php +++ b/app/views/anime/details.php @@ -1,6 +1,6 @@
@@ -38,14 +38,14 @@ use Aviat\AnimeClient\Kitsu; Episode Length - + 0): ?> Total Length - + diff --git a/app/views/character/details.php b/app/views/character/details.php index 0a0977a7..9e0baa34 100644 --- a/app/views/character/details.php +++ b/app/views/character/details.php @@ -26,7 +26,7 @@ use Aviat\AnimeClient\Kitsu;

-

', $data['description']) ?>

+

diff --git a/app/views/person/details.php b/app/views/person/details.php index b3c362c6..eb06775a 100644 --- a/app/views/person/details.php +++ b/app/views/person/details.php @@ -8,6 +8,9 @@

+ +

+

diff --git a/app/views/user/details.php b/app/views/user/details.php index b559efe7..d813fad0 100644 --- a/app/views/user/details.php +++ b/app/views/user/details.php @@ -3,40 +3,58 @@ use Aviat\AnimeClient\Kitsu; ?>

+ About a( - "https://kitsu.io/users/{$data['slug']}", - $data['name'], [ - 'title' => 'View profile on Kitsu' + "https://kitsu.io/users/{$data['slug']}", + $data['name'], [ + 'title' => 'View profile on Kitsu' ]) ?>

-

html($data['about']) ?>

-