Skip to content

chore: minor updates #53

chore: minor updates

chore: minor updates #53

Triggered via pull request May 9, 2024 16:48
@lotyplotyp
synchronize #19
docs/next-docs
Status Failure
Total duration 39s
Artifacts

integrate.yml

on: pull_request
commit-linting
12s
commit-linting
markdown-linting
10s
markdown-linting
Matrix: code-coverage
Matrix: coding-standards
Matrix: dependency-analysis
Matrix: mutation-testing
Matrix: security-analysis
Matrix: static-analysis
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 10 warnings
Fenced code blocks should be surrounded by blank lines: docs/active-entities/defining-entities.md#L67
docs/active-entities/defining-entities.md:67 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md031.md
Fenced code blocks should be surrounded by blank lines: docs/active-entities/defining-entities.md#L104
docs/active-entities/defining-entities.md:104 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md031.md
Multiple consecutive blank lines: docs/active-entities/defining-entities.md#L108
docs/active-entities/defining-entities.md:108 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md
Fenced code blocks should be surrounded by blank lines: docs/active-entities/retrieving-entities.md#L23
docs/active-entities/retrieving-entities.md:23 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md031.md
Fenced code blocks should be surrounded by blank lines: docs/active-entities/retrieving-entities.md#L39
docs/active-entities/retrieving-entities.md:39 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md031.md
Heading levels should only increment by one level at a time: docs/active-entities/retrieving-entities.md#L43
docs/active-entities/retrieving-entities.md:43 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md001.md
Multiple consecutive blank lines: docs/active-entities/retrieving-entities.md#L76
docs/active-entities/retrieving-entities.md:76 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md
Multiple consecutive blank lines: docs/active-entities/retrieving-entities.md#L77
docs/active-entities/retrieving-entities.md:77 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md
Multiple consecutive blank lines: docs/active-entities/retrieving-entities.md#L78
docs/active-entities/retrieving-entities.md:78 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 4] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md
Heading levels should only increment by one level at a time: docs/active-queries/query-classes.md#L7
docs/active-queries/query-classes.md:7 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md001.md
PossiblyUnusedProperty: src/Query/ActiveQuery.php#L23
src/Query/ActiveQuery.php:23:56: PossiblyUnusedProperty: Cannot find any references to property Cycle\ActiveRecord\Query\ActiveQuery::$class (see https://psalm.dev/149)
static-analysis (ubuntu-latest, 8.2, locked)
Process completed with exit code 2.
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L68
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * * @throws Throwable */ - public final function save(bool $cascade = true) : StateInterface + public final function save(bool $cascade = false) : StateInterface { /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager();
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L74
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager(); $entityManager->persist($this, $cascade); - return $entityManager->run(throwException: false); + return $entityManager->run(throwException: true); } /** * Persists the current entity and throws an exception if an error occurs.
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L82
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * * @throws Throwable */ - public final function saveOrFail(bool $cascade = true) : StateInterface + public final function saveOrFail(bool $cascade = false) : StateInterface { /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager();
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L91
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ $entityManager->persist($this, $cascade); return $entityManager->run(); } - public final function persist(bool $cascade = true) : EntityManagerInterface + public final function persist(bool $cascade = false) : EntityManagerInterface { return Facade::getEntityManager()->persist($this, $cascade); }
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L99
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ /** * @throws Throwable */ - public final function delete(bool $cascade = true) : StateInterface + public final function delete(bool $cascade = false) : StateInterface { /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager();
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L105
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager(); $entityManager->delete($this, $cascade); - return $entityManager->run(throwException: false); + return $entityManager->run(throwException: true); } /** * @throws Throwable
mutation-testing (ubuntu-latest, 8.2, locked): src/ActiveRecord.php#L123
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ /** * Prepares the current entity for deletion. */ - public final function remove(bool $cascade = true) : EntityManagerInterface + public final function remove(bool $cascade = false) : EntityManagerInterface { /** @var EntityManager $entityManager */ $entityManager = Facade::getEntityManager();
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Spiral/Bootloader/ActiveRecordBootloader.php#L21
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { return [CycleOrmBootloader::class]; } - public function init(ContainerInterface $container) : void + protected function init(ContainerInterface $container) : void { Facade::setContainer($container); } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Facade.php#L41
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ */ public static function getOrm() : ORMInterface { - return self::$orm ??= self::getFromContainer(ORMInterface::class); + return self::$orm = self::getFromContainer(ORMInterface::class); } public static function getEntityManager() : EntityManagerInterface {
mutation-testing (ubuntu-latest, 8.2, locked): src/Facade.php#L71
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ private static function getFromContainer(string $class) : object { // Check if container is set - null === self::$container and throw new ConfigurationException(sprintf('Container has not been set. Please set the container first using %s method.', self::class . '::setContainer()')); + null === self::$container and throw new ConfigurationException(sprintf('Container has not been set. Please set the container first using %s method.', '::setContainer()' . self::class)); // Pull service from container try { return self::$container->get($class);