Skip to content

Commit

Permalink
Merge branch 'prepare-next' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
alecrabbit committed Nov 16, 2023
2 parents 08710f4 + fa35772 commit b11828c
Show file tree
Hide file tree
Showing 334 changed files with 5,317 additions and 5,194 deletions.
6 changes: 3 additions & 3 deletions .tools/.report/.build/coverage.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


Code Coverage Report Summary:
Classes: 100.00% (192/192)
Methods: 100.00% (709/709)
Lines: 100.00% (3778/3778)
Classes: 100.00% (199/199)
Methods: 100.00% (725/725)
Lines: 100.00% (3741/3741)

2 changes: 1 addition & 1 deletion .tools/.report/.deptrac/.deptrac.report
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Violations 0
Skipped violations 0
Uncovered 177
Allowed 2373
Allowed 2466
Warnings 0
Errors 0
-------------------- ------
Expand Down
80 changes: 40 additions & 40 deletions .tools/.report/.phploc/.src.phploc.report
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
phploc 7.0.2 by Sebastian Bergmann.

Directories 69
Files 381
Directories 68
Files 399

Size
Lines of Code (LOC) 13252
Comment Lines of Code (CLOC) 862 (6.50%)
Non-Comment Lines of Code (NCLOC) 12390 (93.50%)
Logical Lines of Code (LLOC) 1427 (10.77%)
Classes 1331 (93.27%)
Lines of Code (LOC) 13559
Comment Lines of Code (CLOC) 882 (6.50%)
Non-Comment Lines of Code (NCLOC) 12677 (93.50%)
Logical Lines of Code (LLOC) 1438 (10.61%)
Classes 1344 (93.46%)
Average Class Length 3
Minimum Class Length 0
Maximum Class Length 29
Maximum Class Length 27
Average Method Length 1
Minimum Method Length 0
Maximum Method Length 10
Average Methods Per Class 2
Minimum Methods Per Class 0
Maximum Methods Per Class 11
Functions 39 (2.73%)
Maximum Methods Per Class 12
Functions 35 (2.43%)
Average Function Length 1
Not in classes or functions 57 (3.99%)
Not in classes or functions 59 (4.10%)

Cyclomatic Complexity
Average Complexity per LLOC 0.35
Average Complexity per Class 2.22
Average Complexity per LLOC 0.33
Average Complexity per Class 2.12
Minimum Class Complexity 1.00
Maximum Class Complexity 21.00
Average Complexity per Method 1.56
Average Complexity per Method 1.52
Minimum Method Complexity 1.00
Maximum Method Complexity 10.00

Expand All @@ -36,35 +36,35 @@ Dependencies
Global Constants 0 (0.00%)
Global Variables 0 (0.00%)
Super-Global Variables 0 (0.00%)
Attribute Accesses 614
Non-Static 595 (96.91%)
Static 19 (3.09%)
Method Calls 761
Non-Static 673 (88.44%)
Static 88 (11.56%)
Attribute Accesses 622
Non-Static 610 (98.07%)
Static 12 (1.93%)
Method Calls 786
Non-Static 709 (90.20%)
Static 77 (9.80%)

Structure
Namespaces 69
Interfaces 174
Namespaces 68
Interfaces 183
Traits 0
Classes 188
Abstract Classes 14 (7.45%)
Concrete Classes 174 (92.55%)
Final Classes 106 (60.92%)
Non-Final Classes 68 (39.08%)
Methods 938
Classes 197
Abstract Classes 14 (7.11%)
Concrete Classes 183 (92.89%)
Final Classes 73 (39.89%)
Non-Final Classes 110 (60.11%)
Methods 967
Scope
Non-Static Methods 864 (92.11%)
Static Methods 74 (7.89%)
Non-Static Methods 907 (93.80%)
Static Methods 60 (6.20%)
Visibility
Public Methods 742 (79.10%)
Protected Methods 82 (8.74%)
Private Methods 114 (12.15%)
Functions 36
Named Functions 8 (22.22%)
Anonymous Functions 28 (77.78%)
Constants 14
Public Methods 769 (79.52%)
Protected Methods 82 (8.48%)
Private Methods 116 (12.00%)
Functions 34
Named Functions 7 (20.59%)
Anonymous Functions 27 (79.41%)
Constants 11
Global Constants 0 (0.00%)
Class Constants 14 (100.00%)
Public Constants 4 (28.57%)
Non-Public Constants 10 (71.43%)
Class Constants 11 (100.00%)
Public Constants 5 (45.45%)
Non-Public Constants 6 (54.55%)
68 changes: 34 additions & 34 deletions .tools/.report/.phploc/.test.phploc.report
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
phploc 7.0.2 by Sebastian Bergmann.

Directories 68
Files 260
Files 265

Size
Lines of Code (LOC) 31217
Comment Lines of Code (CLOC) 476 (1.52%)
Non-Comment Lines of Code (NCLOC) 30741 (98.48%)
Logical Lines of Code (LLOC) 7044 (22.56%)
Classes 7037 (99.90%)
Average Class Length 27
Lines of Code (LOC) 30858
Comment Lines of Code (CLOC) 499 (1.62%)
Non-Comment Lines of Code (NCLOC) 30359 (98.38%)
Logical Lines of Code (LLOC) 6961 (22.56%)
Classes 6953 (99.89%)
Average Class Length 26
Minimum Class Length 0
Maximum Class Length 871
Average Method Length 3
Minimum Method Length 0
Maximum Method Length 374
Average Methods Per Class 6
Minimum Methods Per Class 0
Maximum Methods Per Class 23
Maximum Methods Per Class 21
Functions 4 (0.06%)
Average Function Length 0
Not in classes or functions 3 (0.04%)
Not in classes or functions 4 (0.06%)

Cyclomatic Complexity
Average Complexity per LLOC 0.06
Average Complexity per Class 2.58
Average Complexity per Class 2.57
Minimum Class Complexity 1.00
Maximum Class Complexity 14.00
Average Complexity per Method 1.24
Maximum Class Complexity 16.00
Average Complexity per Method 1.25
Minimum Method Complexity 1.00
Maximum Method Complexity 8.00
Maximum Method Complexity 7.00

Dependencies
Global Accesses 0
Global Constants 0 (0.00%)
Global Variables 0 (0.00%)
Super-Global Variables 0 (0.00%)
Attribute Accesses 32
Non-Static 25 (78.12%)
Static 7 (21.88%)
Method Calls 9531
Non-Static 6315 (66.26%)
Static 3216 (33.74%)
Attribute Accesses 28
Non-Static 23 (82.14%)
Static 5 (17.86%)
Method Calls 9487
Non-Static 6295 (66.35%)
Static 3192 (33.65%)

Structure
Namespaces 68
Interfaces 0
Interfaces 1
Traits 1
Classes 258
Abstract Classes 4 (1.55%)
Concrete Classes 254 (98.45%)
Final Classes 236 (92.91%)
Non-Final Classes 18 (7.09%)
Methods 1757
Classes 262
Abstract Classes 4 (1.53%)
Concrete Classes 258 (98.47%)
Final Classes 240 (93.02%)
Non-Final Classes 18 (6.98%)
Methods 1734
Scope
Non-Static Methods 1649 (93.85%)
Static Methods 108 (6.15%)
Non-Static Methods 1634 (94.23%)
Static Methods 100 (5.77%)
Visibility
Public Methods 1071 (60.96%)
Protected Methods 383 (21.80%)
Private Methods 303 (17.25%)
Functions 99
Named Functions 3 (3.03%)
Anonymous Functions 96 (96.97%)
Public Methods 1060 (61.13%)
Protected Methods 354 (20.42%)
Private Methods 320 (18.45%)
Functions 95
Named Functions 2 (2.11%)
Anonymous Functions 93 (97.89%)
Constants 73
Global Constants 0 (0.00%)
Class Constants 73 (100.00%)
Expand Down
18 changes: 0 additions & 18 deletions .tools/.report/.psalm/.psalm.report.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
/app/src/Spinner/Container/Container.php:90:38:error - MixedInferredReturnType: Could not verify return type 'T' for AlecRabbit\Spinner\Container\Container::get
/app/src/Spinner/Container/Container.php:93:20:error - MixedReturnStatement: Could not infer a return type
/app/src/Spinner/Container/Container.php:113:16:error - MixedReturnStatement: Could not infer a return type
/app/src/Spinner/Container/Container.php:140:49:error - ArgumentTypeCoercion: Argument 1 of AlecRabbit\Spinner\Container\Contract\IServiceSpawner::spawn expects callable|class-string|object, but parent type callable|object|string provided
/app/src/Spinner/Container/Contract/IContainer.php:25:32:error - MoreSpecificImplementedParamType: Argument 1 of AlecRabbit\Spinner\Container\Contract\IContainer::get has the more specific type 'class-string<T:fn-alecrabbit\spinner\container\contract\icontainer::get as object>', expecting 'string' as defined by Psr\Container\ContainerInterface::get
/app/src/Spinner/Container/ServiceSpawner.php:100:41:error - ArgumentTypeCoercion: Argument 1 of AlecRabbit\Spinner\Container\ServiceSpawner::needsService expects ReflectionIntersectionType|ReflectionNamedType|ReflectionUnionType, but parent type ReflectionType provided
/app/src/Spinner/Container/ServiceSpawner.php:101:73:error - MixedArgument: Argument 1 of AlecRabbit\Spinner\Container\ServiceSpawner::getServiceFromContainer cannot be mixed, expecting string
/app/src/Spinner/Container/ServiceSpawner.php:101:80:error - UndefinedMethod: Method ReflectionType::getName does not exist
/app/src/Spinner/Container/ServiceSpawner.php:104:20:error - MixedMethodCall: Cannot call constructor on an unknown class
/app/src/Spinner/Container/ServiceSpawner.php:108:20:error - MixedMethodCall: Cannot call constructor on an unknown class
/app/src/Spinner/Core/Config/Config.php:57:38:error - InvalidReturnType: The declared return type 'T:fn-alecrabbit\spinner\core\config\contract\iconfig::get as AlecRabbit\Spinner\Core\Config\Contract\IConfigElement' for AlecRabbit\Spinner\Core\Config\Config::get is incorrect, got 'AlecRabbit\Spinner\Core\Config\Contract\IConfigElement'
/app/src/Spinner/Core/Config/Config.php:65:16:error - InvalidReturnStatement: The inferred type 'AlecRabbit\Spinner\Core\Config\Contract\IConfigElement' does not match the declared return type 'T:fn-alecrabbit\spinner\core\config\contract\iconfig::get as AlecRabbit\Spinner\Core\Config\Contract\IConfigElement' for AlecRabbit\Spinner\Core\Config\Config::get
/app/src/Spinner/Core/Config/Solver/A/ASolver.php:26:22:error - InvalidReturnType: The declared return type '(T:fn-alecrabbit\spinner\core\config\solver\a\asolver::extractsettingselement as AlecRabbit\Spinner\Core\Settings\Contract\ISettingsElement)|null' for AlecRabbit\Spinner\Core\Config\Solver\A\ASolver::extractSettingsElement is incorrect, got 'AlecRabbit\Spinner\Core\Settings\Contract\ISettingsElement|null'
/app/src/Spinner/Core/Config/Solver/A/ASolver.php:30:16:error - InvalidReturnStatement: The inferred type 'AlecRabbit\Spinner\Core\Settings\Contract\ISettingsElement|null' does not match the declared return type '(T:fn-alecrabbit\spinner\core\config\solver\a\asolver::extractsettingselement as AlecRabbit\Spinner\Core\Settings\Contract\ISettingsElement)|null' for AlecRabbit\Spinner\Core\Config\Solver\A\ASolver::extractSettingsElement
/app/src/Spinner/Core/Config/Solver/StylingMethodModeSolver.php:45:56:error - TypeDoesNotContainNull: AlecRabbit\Spinner\Contract\Mode\StylingMethodMode does not contain null
/app/src/Spinner/Core/Config/Solver/StylingMethodModeSolver.php:45:56:error - RedundantCondition: Type AlecRabbit\Spinner\Contract\Mode\StylingMethodMode for $detectedMode is never null
/app/src/Spinner/Core/Settings/Detector/ColorSupportDetector.php:21:40:error - MoreSpecificReturnType: The declared return type 'AlecRabbit\Spinner\Contract\Option\StylingMethodOption' for AlecRabbit\Spinner\Core\Settings\Detector\ColorSupportDetector::getSupportValue is more specific than the inferred return type 'enum(AlecRabbit\Spinner\Contract\Option\StylingMethodOption::NONE)|object'
/app/src/Spinner/Core/Settings/Detector/ColorSupportDetector.php:28:24:error - LessSpecificReturnStatement: The type 'object' is more general than the declared return type 'AlecRabbit\Spinner\Contract\Option\StylingMethodOption' for AlecRabbit\Spinner\Core\Settings\Detector\ColorSupportDetector::getSupportValue
/app/src/Spinner/Core/Settings/Detector/SignalHandlingSupportDetector.php:21:40:error - MoreSpecificReturnType: The declared return type 'AlecRabbit\Spinner\Contract\Option\SignalHandlingOption' for AlecRabbit\Spinner\Core\Settings\Detector\SignalHandlingSupportDetector::getSupportValue is more specific than the inferred return type 'enum(AlecRabbit\Spinner\Contract\Option\SignalHandlingOption::DISABLED)|object'
/app/src/Spinner/Core/Settings/Detector/SignalHandlingSupportDetector.php:28:24:error - LessSpecificReturnStatement: The type 'object' is more general than the declared return type 'AlecRabbit\Spinner\Contract\Option\SignalHandlingOption' for AlecRabbit\Spinner\Core\Settings\Detector\SignalHandlingSupportDetector::getSupportValue
/app/src/Spinner/Core/Widget/WidgetCompositeChildrenContainer.php:109:13:error - MixedAssignment: Unable to determine the type that $this->interval is being assigned to
/app/src/Spinner/Core/Widget/WidgetCompositeChildrenContainer.php:109:48:error - MixedMethodCall: Cannot determine the type of $this->interval when calling method smallest
/app/src/Spinner/Core/WidgetContextToIntervalMap.php:31:36:error - InvalidReturnType: The declared return type 'Traversable<TKey:AlecRabbit\Spinner\Core\WidgetContextToIntervalMap as AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext, TValue:AlecRabbit\Spinner\Core\WidgetContextToIntervalMap as AlecRabbit\Spinner\Contract\IInterval|null>' for AlecRabbit\Spinner\Core\WidgetContextToIntervalMap::getIterator is incorrect, got 'Generator<AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext, AlecRabbit\Spinner\Contract\IInterval|null, mixed, void>'
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"autoload": {
"psr-4": {
"AlecRabbit\\Benchmark\\": "lib\\Benchmark\\",
"AlecRabbit\\Lib\\": "lib\\Lib\\",
"AlecRabbit\\Spinner\\": "src\\Spinner\\"
},
"files": [
Expand Down
Loading

0 comments on commit b11828c

Please sign in to comment.