Skip to content

Commit 9764274

Browse files
committed
~mv
1 parent ce5d004 commit 9764274

14 files changed

+32
-31
lines changed

.tools/.report/.deptrac/.deptrac.report

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Violations 0
66
Skipped violations 0
77
Uncovered 177
8-
Allowed 2933
8+
Allowed 2936
99
Warnings 0
1010
Errors 0
1111
-------------------- ------

.tools/.report/.phploc/.src.phploc.report

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
phploc 7.0.2 by Sebastian Bergmann.
22

3-
Directories 84
3+
Directories 83
44
Files 429
55

66
Size
7-
Lines of Code (LOC) 14212
7+
Lines of Code (LOC) 14211
88
Comment Lines of Code (CLOC) 804 (5.66%)
9-
Non-Comment Lines of Code (NCLOC) 13408 (94.34%)
9+
Non-Comment Lines of Code (NCLOC) 13407 (94.34%)
1010
Logical Lines of Code (LLOC) 1525 (10.73%)
1111
Classes 1424 (93.38%)
1212
Average Class Length 3
@@ -44,7 +44,7 @@ Dependencies
4444
Static 82 (9.89%)
4545

4646
Structure
47-
Namespaces 84
47+
Namespaces 83
4848
Interfaces 197
4949
Traits 0
5050
Classes 211

.tools/.report/.phploc/.test.phploc.report

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
phploc 7.0.2 by Sebastian Bergmann.
22

3-
Directories 77
3+
Directories 78
44
Files 281
55

66
Size
@@ -44,7 +44,7 @@ Dependencies
4444
Static 3326 (33.10%)
4545

4646
Structure
47-
Namespaces 77
47+
Namespaces 78
4848
Interfaces 1
4949
Traits 1
5050
Classes 278
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/app/src/Spinner/Core/Config/Solver/A/ASolver.php:27: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'
22
/app/src/Spinner/Core/Config/Solver/A/ASolver.php:31: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
3-
/app/src/Spinner/Core/WidgetContextToIntervalMap.php:30: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>'
4-
/app/src/Spinner/Core/WidgetContextToIntervalMap.php:55:22:error - InvalidReturnType: The declared return type 'TValue:AlecRabbit\Spinner\Core\WidgetContextToIntervalMap as AlecRabbit\Spinner\Contract\IInterval|null' for AlecRabbit\Spinner\Core\WidgetContextToIntervalMap::offsetGet is incorrect, got 'AlecRabbit\Spinner\Contract\IInterval|null'
5-
/app/src/Spinner/Core/WidgetContextToIntervalMap.php:68:16:error - InvalidReturnStatement: The inferred type 'AlecRabbit\Spinner\Contract\IInterval|null' does not match the declared return type 'TValue:AlecRabbit\Spinner\Core\WidgetContextToIntervalMap as AlecRabbit\Spinner\Contract\IInterval|null' for AlecRabbit\Spinner\Core\WidgetContextToIntervalMap::offsetGet
3+
/app/src/Spinner/Extras/Widget/Contract/IWidgetContextToIntervalMap.php:31:22:error - ImplementedReturnTypeMismatch: The inherited return type '(TValue:AlecRabbit\Spinner\Extras\Widget\Contract\IWidgetContextToIntervalMap as AlecRabbit\Spinner\Contract\IInterval|null)|null' for ArrayAccess::offsetGet is different to the implemented return type for AlecRabbit\Spinner\Extras\Widget\Contract\IWidgetContextToIntervalMap::offsetget 'AlecRabbit\Spinner\Contract\IInterval|null'
4+
/app/src/Spinner/Extras/Widget/WidgetContextToIntervalMap.php:30:36:error - InvalidReturnType: The declared return type 'Traversable<TKey:AlecRabbit\Spinner\Extras\Widget\WidgetContextToIntervalMap as AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext, TValue:AlecRabbit\Spinner\Extras\Widget\WidgetContextToIntervalMap as AlecRabbit\Spinner\Contract\IInterval|null>' for AlecRabbit\Spinner\Extras\Widget\WidgetContextToIntervalMap::getIterator is incorrect, got 'Generator<AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext, AlecRabbit\Spinner\Contract\IInterval|null, mixed, void>'
5+
/app/src/Spinner/Extras/Widget/WidgetContextToIntervalMap.php:55:22:error - ImplementedReturnTypeMismatch: The inherited return type '(TValue:AlecRabbit\Spinner\Extras\Widget\WidgetContextToIntervalMap as AlecRabbit\Spinner\Contract\IInterval|null)|null' for ArrayAccess::offsetGet is different to the implemented return type for AlecRabbit\Spinner\Extras\Widget\WidgetContextToIntervalMap::offsetget 'AlecRabbit\Spinner\Contract\IInterval|null'
6+
/app/src/Spinner/Extras/Widget/WidgetContextToIntervalMap.php:85:13:error - RedundantConditionGivenDocblockType: Docblock-defined type AlecRabbit\Spinner\Contract\IInterval for $value is never null
7+
/app/src/Spinner/Extras/Widget/WidgetContextToIntervalMap.php:85:23:error - DocblockTypeContradiction: Cannot resolve types for $value - docblock-defined type AlecRabbit\Spinner\Contract\IInterval does not contain null

src/Spinner/Core/Contract/IWidgetContextToIntervalMap.php renamed to src/Spinner/Extras/Widget/Contract/IWidgetContextToIntervalMap.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace AlecRabbit\Spinner\Core\Contract;
5+
namespace AlecRabbit\Spinner\Extras\Widget\Contract;
66

77
use AlecRabbit\Spinner\Contract\IInterval;
88
use AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext;
@@ -26,25 +26,25 @@ interface IWidgetContextToIntervalMap extends ArrayAccess, Countable, IteratorAg
2626
public function getIterator(): Traversable;
2727

2828
/**
29-
* @psalm-param TKey $offset
29+
* @psalm-param IWidgetContext $offset
3030
*
31-
* @psalm-return TValue
31+
* @psalm-return IInterval
3232
*/
3333
public function offsetGet(mixed $offset): ?IInterval;
3434

3535
/**
36-
* @psalm-param TKey $offset
36+
* @psalm-param IWidgetContext $offset
3737
*/
3838
public function offsetUnset(mixed $offset): void;
3939

4040
/**
41-
* @psalm-param TKey $offset
42-
* @psalm-param TValue $value
41+
* @psalm-param IWidgetContext $offset
42+
* @psalm-param IInterval $value
4343
*/
4444
public function offsetSet(mixed $offset, mixed $value): void;
4545

4646
/**
47-
* @psalm-param TKey $offset
47+
* @psalm-param IWidgetContext $offset
4848
*
4949
* @psalm-return bool
5050
*/

src/Spinner/Extras/Widget/WidgetCompositeChildrenContainer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use AlecRabbit\Spinner\Core\Contract\IIntervalComparator;
1212
use AlecRabbit\Spinner\Core\IntervalComparator;
1313
use AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext;
14-
use AlecRabbit\Spinner\Core\WidgetContextToIntervalMap;
1514
use AlecRabbit\Spinner\Extras\Widget\Contract\IWidgetCompositeChildrenContainer;
1615
use ArrayAccess;
1716
use Countable;

src/Spinner/Core/WidgetContextToIntervalMap.php renamed to src/Spinner/Extras/Widget/WidgetContextToIntervalMap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace AlecRabbit\Spinner\Core;
5+
namespace AlecRabbit\Spinner\Extras\Widget;
66

77
use AlecRabbit\Spinner\Contract\IInterval;
8-
use AlecRabbit\Spinner\Core\Contract\IWidgetContextToIntervalMap;
98
use AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext;
109
use AlecRabbit\Spinner\Exception\InvalidArgument;
10+
use AlecRabbit\Spinner\Extras\Widget\Contract\IWidgetContextToIntervalMap;
1111
use ArrayAccess;
1212
use Countable;
1313
use IteratorAggregate;
@@ -50,9 +50,9 @@ public function offsetExists(mixed $offset): bool
5050
}
5151

5252
/**
53-
* @psalm-param TKey $offset
53+
* @psalm-param IWidgetContext $offset
5454
*
55-
* @psalm-return TValue
55+
* @psalm-return IInterval
5656
*/
5757
public function offsetGet(mixed $offset): ?IInterval
5858
{

tests/Spinner/Functional/Core/Widget/WidgetCompositeChildrenContainerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
use AlecRabbit\Spinner\Core\Interval;
1010
use AlecRabbit\Spinner\Core\Widget\Contract\IWidgetRevolver;
1111
use AlecRabbit\Spinner\Core\Widget\Widget;
12-
use AlecRabbit\Spinner\Core\WidgetContextToIntervalMap;
1312
use AlecRabbit\Spinner\Extras\Widget\Contract\IWidgetCompositeChildrenContainer;
1413
use AlecRabbit\Spinner\Extras\Widget\WidgetCompositeChildrenContainer;
1514
use AlecRabbit\Spinner\Extras\Widget\WidgetContext;
15+
use AlecRabbit\Spinner\Extras\Widget\WidgetContextToIntervalMap;
1616
use AlecRabbit\Tests\TestCase\TestCase;
1717
use ArrayAccess;
1818
use Countable;

tests/Spinner/Unit/Core/ConsoleCursorBuilderTest.php renamed to tests/Spinner/Unit/Core/Builder/ConsoleCursorBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace AlecRabbit\Tests\Spinner\Unit\Core;
5+
namespace AlecRabbit\Tests\Spinner\Unit\Core\Builder;
66

77
use AlecRabbit\Spinner\Contract\Mode\CursorVisibilityMode;
88
use AlecRabbit\Spinner\Core\Builder\ConsoleCursorBuilder;

tests/Spinner/Unit/Core/AutoStartModeDetectorTest.php renamed to tests/Spinner/Unit/Core/Config/Detector/AutoStartModeDetectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace AlecRabbit\Tests\Spinner\Unit\Core;
5+
namespace AlecRabbit\Tests\Spinner\Unit\Core\Config\Detector;
66

77

88
use AlecRabbit\Spinner\Contract\Mode\AutoStartMode;

tests/Spinner/Unit/Core/DriverModeDetectorTest.php renamed to tests/Spinner/Unit/Core/Config/Detector/DriverModeDetectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace AlecRabbit\Tests\Spinner\Unit\Core;
5+
namespace AlecRabbit\Tests\Spinner\Unit\Core\Config\Detector;
66

77

88
use AlecRabbit\Spinner\Contract\Mode\DriverMode;

tests/Spinner/Unit/Core/InitializationModeDetectorTest.php renamed to tests/Spinner/Unit/Core/Config/Detector/InitializationModeDetectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace AlecRabbit\Tests\Spinner\Unit\Core;
5+
namespace AlecRabbit\Tests\Spinner\Unit\Core\Config\Detector;
66

77

88
use AlecRabbit\Spinner\Contract\Mode\InitializationMode;

tests/Spinner/Unit/Core/LinkerModeDetectorTest.php renamed to tests/Spinner/Unit/Core/Config/Detector/LinkerModeDetectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace AlecRabbit\Tests\Spinner\Unit\Core;
5+
namespace AlecRabbit\Tests\Spinner\Unit\Core\Config\Detector;
66

77

88
use AlecRabbit\Spinner\Contract\Mode\LinkerMode;

tests/Spinner/Unit/Core/WidgetContextToIntervalMapTest.php renamed to tests/Spinner/Unit/Extras/Widget/WidgetContextToIntervalMapTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
declare(strict_types=1);
44

5-
namespace AlecRabbit\Tests\Spinner\Unit\Core;
5+
namespace AlecRabbit\Tests\Spinner\Unit\Extras\Widget;
66

77
use AlecRabbit\Spinner\Contract\IInterval;
8-
use AlecRabbit\Spinner\Core\Contract\IWidgetContextToIntervalMap;
98
use AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext;
10-
use AlecRabbit\Spinner\Core\WidgetContextToIntervalMap;
119
use AlecRabbit\Spinner\Exception\InvalidArgument;
10+
use AlecRabbit\Spinner\Extras\Widget\Contract\IWidgetContextToIntervalMap;
11+
use AlecRabbit\Spinner\Extras\Widget\WidgetContextToIntervalMap;
1212
use AlecRabbit\Tests\TestCase\TestCase;
1313
use ArrayAccess;
1414
use Countable;

0 commit comments

Comments
 (0)