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

Code quality improvements #401

Merged
merged 21 commits into from
Aug 11, 2022
Merged

Code quality improvements #401

merged 21 commits into from
Aug 11, 2022

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Aug 11, 2022

Fixes some issues discovered by Scrutinizer and adds missing tests

From Scrutinizer:

It seems like toArray() must be provided by classes using this trait. How about adding it as abstract method to this trait?
@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

Merging #401 (e04dd0f) into master (9bbf2eb) will increase coverage by 0.84%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #401      +/-   ##
============================================
+ Coverage     99.01%   99.86%   +0.84%     
+ Complexity      909      908       -1     
============================================
  Files           100       99       -1     
  Lines          2235     2233       -2     
============================================
+ Hits           2213     2230      +17     
+ Misses           22        3      -19     
Impacted Files Coverage Δ
...framework/src/Concerns/JsonSerializesArrayable.php 100.00% <ø> (+100.00%) ⬆️
packages/framework/src/Hyde.php 100.00% <ø> (+33.33%) ⬆️
packages/framework/src/Services/RoutingService.php 66.66% <ø> (ø)
packages/framework/src/Models/Route.php 100.00% <100.00%> (+9.30%) ⬆️
packages/framework/src/Services/HydeSmartDocs.php 100.00% <100.00%> (ø)
packages/framework/src/HydeKernel.php 100.00% <0.00%> (+6.49%) ⬆️
packages/framework/src/Helpers/Features.php 100.00% <0.00%> (+10.16%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@caendesilva caendesilva marked this pull request as ready for review August 11, 2022 13:32
@caendesilva caendesilva merged commit eadbff4 into master Aug 11, 2022
@caendesilva caendesilva deleted the code-quality branch August 11, 2022 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants