Skip to content

Commit

Permalink
Merge pull request #51 from Dukecity/feature/fix-phpcs-warnings
Browse files Browse the repository at this point in the history
Feature/fix phpcs warnings
  • Loading branch information
Chris53897 committed Nov 20, 2023
2 parents 81b80a3 + b06cbb9 commit ab395b9
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'comment_to_phpdoc' => true,
'compact_nullable_typehint' => true,
'compact_nullable_type_declaration' => true,
'explicit_indirect_variable' => true,
'explicit_string_variable' => false,
'fully_qualified_strict_types' => true,
'function_typehint_space' => true,
'type_declaration_spaces' => true,
'heredoc_to_nowdoc' => true,
'include' => true,
'lowercase_cast' => true,
'method_chaining_indentation' => true,
'multiline_comment_opening_closing' => true,
'native_function_casing' => true,
'new_with_braces' => true,
'new_with_parentheses' => true,
'no_alias_functions' => true,
'no_alternative_syntax' => true,
'no_blank_lines_after_class_opening' => true,
Expand All @@ -50,7 +50,7 @@
'no_superfluous_elseif' => true,
'no_trailing_comma_in_singleline' => true,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_braces' => true,
'no_unneeded_final_method' => true,
'no_unreachable_default_argument_value' => true,
'no_unused_imports' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/Inet6Aton.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getSql(SqlWalker $sqlWalker): string
{
return 'INET6_ATON('
. (
$this->valueExpression instanceof Node
$this->valueExpression instanceof Node
? $this->valueExpression->dispatch($sqlWalker)
: "'" . $this->valueExpression . "'"
)
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/Inet6Ntoa.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getSql(SqlWalker $sqlWalker): string
{
return 'INET6_NTOA('
. (
$this->valueExpression instanceof Node
$this->valueExpression instanceof Node
? $this->valueExpression->dispatch($sqlWalker)
: "'" . $this->valueExpression . "'"
)
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/InetAton.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getSql(SqlWalker $sqlWalker): string
{
return 'INET_ATON('
. (
$this->valueExpression instanceof Node
$this->valueExpression instanceof Node
? $this->valueExpression->dispatch($sqlWalker)
: "'" . $this->valueExpression . "'"
)
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/InetNtoa.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getSql(SqlWalker $sqlWalker): string
{
return 'INET_NTOA('
. (
$this->valueExpression instanceof Node
$this->valueExpression instanceof Node
? $this->valueExpression->dispatch($sqlWalker)
: "'" . $this->valueExpression . "'"
)
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/IsIpv4.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getSql(SqlWalker $sqlWalker): string
{
return 'IS_IPV4('
. (
$this->valueExpression instanceof Node
$this->valueExpression instanceof Node
? $this->valueExpression->dispatch($sqlWalker)
: "'" . $this->valueExpression . "'"
)
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/IsIpv4Compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getSql(SqlWalker $sqlWalker): string
{
return 'IS_IPV4_COMPAT('
. (
$this->valueExpression instanceof Node
$this->valueExpression instanceof Node
? $this->valueExpression->dispatch($sqlWalker)
: "'" . $this->valueExpression . "'"
)
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/IsIpv4Mapped.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getSql(SqlWalker $sqlWalker): string
{
return 'IS_IPV4_MAPPED('
. (
$this->valueExpression instanceof Node
$this->valueExpression instanceof Node
? $this->valueExpression->dispatch($sqlWalker)
: "'" . $this->valueExpression . "'"
)
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/IsIpv6.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getSql(SqlWalker $sqlWalker): string
{
return 'IS_IPV6('
. (
$this->valueExpression instanceof Node
$this->valueExpression instanceof Node
? $this->valueExpression->dispatch($sqlWalker)
: "'" . $this->valueExpression . "'"
)
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/TimeToSec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace DoctrineExtensions\Query\Mysql;

use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\TokenType;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
use Doctrine\ORM\Query\TokenType;

/**
* @example SELECT TIME_TO_SEC('22:23:00');
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Mysql/Unhex.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace DoctrineExtensions\Query\Mysql;

use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\TokenType;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
use Doctrine\ORM\Query\TokenType;

class Unhex extends FunctionNode
{
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Sqlite/Round.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace DoctrineExtensions\Query\Sqlite;

use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\TokenType;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
use Doctrine\ORM\Query\TokenType;

/**
* @author winkbrace <winkbrace@gmail.com>
Expand Down

0 comments on commit ab395b9

Please sign in to comment.