bmitch / churn-php

Discover files in need of refactoring.
MIT License
1.36k stars 56 forks source link

Sort keyed multi-line arrays #386

Closed villfa closed 1 year ago

villfa commented 1 year ago

Fix the violations that appeared with the last version of PHP Code Sniffer:

FILE: ...rk/churn-php/churn-php/src/Result/Render/JsonResultsRenderer.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 25 | ERROR | [x] Keyed multi-line arrays must be sorted
    |       |     alphabetically.
    |       |     (SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys.IncorrectKeyOrder)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...hurn-php/churn-php/src/Assessor/CyclomaticComplexityAssessor.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 15 | ERROR | [x] Keyed multi-line arrays must be sorted
    |       |     alphabetically.
    |       |     (SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys.IncorrectKeyOrder)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
codecov[bot] commented 1 year ago

Codecov Report

Merging #386 (cc6c612) into master (8ccb7c5) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #386   +/-   ##
=======================================
  Coverage   99.23%   99.23%           
=======================================
  Files          56       56           
  Lines         913      913           
=======================================
  Hits          906      906           
  Misses          7        7           
Impacted Files Coverage Δ
src/Assessor/CyclomaticComplexityAssessor.php 100.00% <ø> (ø)
src/Result/Render/JsonResultsRenderer.php 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more