Skip to content

Commit

Permalink
Fixing phpcs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer committed Jul 18, 2024
1 parent dfbd7f7 commit 9b5f18d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<ruleset name="Phauthentic">
<arg name="tab-width" value="4"/>
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="Squiz.WhiteSpace.OperatorSpacing.SpacingAfter"/>
<exclude name="Generic.Files.LineLength.TooLong"/>
</rule>
<file>./src</file>
<file>./tests</file>
Expand Down
7 changes: 3 additions & 4 deletions src/Store/PdoSqlSnapshotStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ protected function pdoErrorCheck(PDOStatement $statement)
/**
* Stores an aggregate snapshot
*
* @phpstan-ignore Generic.Files.LineLength.TooLong
* @param \Phauthentic\SnapshotStore\SnapshotInterface $snapshot Snapshot
* @param SnapshotInterface $snapshot Snapshot
* @return void
*/
public function store(SnapshotInterface $snapshot): void
Expand Down Expand Up @@ -115,7 +114,7 @@ protected function mapSnapshotToArray(SnapshotInterface $snapshot): array
* Gets an aggregate snapshot if one exist
*
* @param string $aggregateId Aggregate Id
* @return null|\Phauthentic\SnapshotStore\SnapshotInterface
* @return null|SnapshotInterface
*/
public function get(string $aggregateId): ?SnapshotInterface
{
Expand Down Expand Up @@ -144,7 +143,7 @@ public function get(string $aggregateId): ?SnapshotInterface
* Turns the data array from PDO into a snapshot DTO
*
* @param array<string, mixed> $data Data
* @return \Phauthentic\SnapshotStore\SnapshotInterface
* @return SnapshotInterface
*/
protected function toSnapshot(array $data): SnapshotInterface
{
Expand Down

0 comments on commit 9b5f18d

Please sign in to comment.