Skip to content

Commit

Permalink
Code Coverage and update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
kdebisschop committed Jul 11, 2023
1 parent e79b333 commit 1df7371
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,18 @@
$psr12Rules = [
'@PSR2' => true,
'blank_line_after_opening_tag' => true,
'braces' => ['allow_single_line_closure' => true],
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => ['space' => 'none'],
'function_typehint_space' => true,
'type_declaration_spaces' => true,
'new_with_braces' => true,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'no_empty_statement' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_whitespace_in_blank_line' => true,
'return_type_declaration' => ['space_before' => 'none'],
'single_space_after_construct' => false,
'single_space_around_construct' => false,
'single_trait_insert_per_statement' => true,
];

Expand Down
2 changes: 1 addition & 1 deletion tests/Extractors/GoogleAnalyticsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function defaultOptions(): void
$i = 0;
/** @var \Wizaplace\Etl\Row $row */
foreach ($this->extractor->extract() as $row) {
static::assertEquals($expected[$i++], ($row->toArray()));
static::assertEquals($expected[$i++], $row->toArray());
}
static::assertEquals(3, $i);
}
Expand Down
3 changes: 3 additions & 0 deletions tests/Extractors/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class RequestTest extends TestCase
{
/**
* @test
*
* @covers ::metrics
*/
public function testMetrics(): void
Expand All @@ -42,6 +43,7 @@ public function testMetrics(): void

/**
* @test
*
* @covers ::dateRange()
*/
public function testDateRange(): void
Expand All @@ -53,6 +55,7 @@ public function testDateRange(): void

/**
* @test
*
* @covers ::dimensions
*/
public function testDimensions(): void
Expand Down

0 comments on commit 1df7371

Please sign in to comment.