-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
roadiz-ci
committed
Sep 24, 2024
1 parent
a6c681c
commit 8c3f651
Showing
14 changed files
with
208 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# | ||
# Roadiz | ||
# | ||
/pimple.json | ||
|
||
# Ignore Google webmaster tool verification | ||
/google*.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
test: | ||
vendor/bin/phpunit -v --bootstrap=tests/bootstrap.php --whitelist ./src --coverage-clover ./build/logs/clover.xml tests/ | ||
vendor/bin/phpcbf -p ./src | ||
vendor/bin/phpstan analyse -c phpstan.neon | ||
|
||
phpcs: | ||
vendor/bin/phpcs --report=full --report-file=./report.txt -p ./src | ||
|
||
phpcbf: | ||
vendor/bin/phpcbf -p ./src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
parameters: | ||
level: 7 | ||
level: max | ||
paths: | ||
- src | ||
excludePaths: | ||
- */node_modules/* | ||
- */bower_components/* | ||
- */static/* | ||
ignoreErrors: | ||
- identifier: missingType.iterableValue | ||
- identifier: missingType.generics | ||
- '#unknown class Parsedown(Extra)?#' | ||
- '#Instantiated class Memcached not found#' | ||
- '#Instantiated class Redis not found#' | ||
reportUnmatchedIgnoredErrors: false | ||
checkGenericClassInNonGenericObjectType: false | ||
checkMissingIterableValueType: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace RZ\Roadiz\Core\AbstractEntities; | ||
|
||
use ApiPlatform\Doctrine\Orm\Filter\NumericFilter; | ||
use ApiPlatform\Metadata\ApiFilter; | ||
use Doctrine\Common\Comparable; | ||
use Doctrine\ORM\Mapping as ORM; | ||
use JMS\Serializer\Annotation as Serializer; | ||
use Symfony\Component\Serializer\Annotation as SymfonySerializer; | ||
use ApiPlatform\Doctrine\Orm\Filter\RangeFilter; | ||
|
||
/** | ||
* Combined AbstractDateTimed and PositionedTrait. | ||
*/ | ||
#[ | ||
ORM\MappedSuperclass, | ||
ORM\HasLifecycleCallbacks, | ||
ORM\Table, | ||
ORM\Index(columns: ["position"]), | ||
ORM\Index(columns: ["created_at"]), | ||
ORM\Index(columns: ["updated_at"]) | ||
] | ||
abstract class AbstractDateTimedPositioned extends AbstractDateTimed implements PositionedInterface, Comparable | ||
{ | ||
use PositionedTrait; | ||
|
||
#[ | ||
ORM\Column(type: "float"), | ||
Serializer\Groups(["position"]), | ||
Serializer\Type("float"), | ||
SymfonySerializer\Groups(["position"]), | ||
ApiFilter(RangeFilter::class), | ||
ApiFilter(NumericFilter::class) | ||
] | ||
protected float $position = 0.0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.