Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Mar 30, 2020
1 parent fd831bd commit 29ac80d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Exceptions/UnableToBuildHttpQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
*/
class UnableToBuildHttpQuery extends RuntimeException implements HttpQueryBuilderException
{

}
2 changes: 1 addition & 1 deletion src/Requests/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ protected function addRawWhere(string $expression, array $bindings = []): QueryB
self::FIELD => $expression,
self::OPERATOR => null,
self::VALUE => null
], $bindings,self::WHERE_TYPE_RAW);
], $bindings, self::WHERE_TYPE_RAW);
}

/**
Expand Down
10 changes: 5 additions & 5 deletions src/Requests/Query/Grammars/BaseGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ protected function compileRegularWhere(array $where): string

// Compile as an array, when value matches an associative array and
// equals operator is used.
if(is_array($value) && Arr::isAssoc($value) && $operator === '='){
if (is_array($value) && Arr::isAssoc($value) && $operator === '=') {
return $this->compileArray([ $field => $value ]);
}

// When no equals operator has been provided, then we append the
// operator.
if(is_array($value) && Arr::isAssoc($value)){
if (is_array($value) && Arr::isAssoc($value)) {
return $this->compileArray([ $field => [ $operator => $value ] ]);
}

Expand All @@ -283,7 +283,7 @@ protected function compileRegularWhere(array $where): string
}

// Omit operator if it matches equals sign
if($operator === '='){
if ($operator === '=') {
return "{$field}={$value}";
}

Expand All @@ -302,11 +302,11 @@ protected function compileRawWhere(array $where): string
{
$expression = $where[self::FIELD];

if(is_string($expression)){
if (is_string($expression)) {
return $this->compileExpression($expression, $where[self::BINDINGS]);
}

if(is_array($expression)){
if (is_array($expression)) {
return $this->compileArray($expression);
}

Expand Down

0 comments on commit 29ac80d

Please sign in to comment.