Skip to content

Commit

Permalink
Update StyleCI config (#94)
Browse files Browse the repository at this point in the history
* Update StyleCI config

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
vjik and StyleCIBot authored Mar 31, 2023
1 parent 9c4d348 commit 7bde8d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
preset: psr12
risky: true

version: 8
version: 8.1

finder:
exclude:
- docs
- vendor
- resources
- views
- public
- templates
not-name:
- UnionCar.php
- TimerUnionTypes.php
- schema1.php

enabled:
- alpha_ordered_traits
Expand Down Expand Up @@ -64,7 +56,6 @@ enabled:
- phpdoc_order
- phpdoc_property
- phpdoc_scalar
- phpdoc_separation
- phpdoc_singular_inheritdoc
- phpdoc_trim
- phpdoc_trim_consecutive_blank_line_separation
Expand All @@ -86,3 +77,9 @@ enabled:
- trailing_comma_in_multiline_array
- unalign_double_arrow
- unalign_equals
- empty_loop_body_braces
- integer_literal_case
- union_type_without_spaces

disabled:
- function_declaration
2 changes: 1 addition & 1 deletion src/Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private function filterMessages(array $messages): void
throw new InvalidArgumentException('You must provide an instance of \Yiisoft\Log\Message.');
}

if ((!empty($this->levels) && !in_array(($message->level()), $this->levels, true))) {
if (!empty($this->levels) && !in_array($message->level(), $this->levels, true)) {
unset($messages[$i]);
continue;
}
Expand Down

0 comments on commit 7bde8d7

Please sign in to comment.