Skip to content

Commit

Permalink
Merge 1750612bd8668a78162de2c7850a8450b52cb6d5 into e98019daa7e813f2d…
Browse files Browse the repository at this point in the history
…6597fb23cf881a4a226f3cb
  • Loading branch information
aedart committed Jan 13, 2023
1 parent 5beecdc commit f3a6f8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Aedart\Http\Clients;

use Aedart\Contracts\Http\Clients\Client;
use Aedart\Contracts\Http\Clients\Exceptions\ProfileNotFoundException;
use Aedart\Contracts\Http\Clients\Manager as HttpClientsManager;
use Aedart\Contracts\Support\Helpers\Config\ConfigAware;
use Aedart\Contracts\Support\Helpers\Container\ContainerAware;
Expand Down
3 changes: 1 addition & 2 deletions src/Requests/Builders/Concerns/Attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ public function attachFile(
string $path,
array $headers = [],
string|null $filename = null
): static
{
): static {
$attachment = $this->makeAttachment([
'name' => $name,
'headers' => $headers,
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Builders/Concerns/RequestCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @see Builder
* @see Builder::applyCriteria
*
*
* @author Alin Eugen Deac <aedart@gmail.com>
* @package Aedart\Http\Clients\Requests\Builders\Concerns
*/
Expand Down
14 changes: 5 additions & 9 deletions src/Requests/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use Aedart\Http\Clients\Traits\GrammarTrait;
use Aedart\Support\Helpers\Container\ContainerTrait;
use Aedart\Utils\Arr;
use Illuminate\Contracts\Container\Container;
use DateTimeInterface;
use Illuminate\Contracts\Container\Container;
use Stringable;

/**
Expand Down Expand Up @@ -576,8 +576,7 @@ protected function addMultipleWhereForField(
string $field,
array $operatorsAndValues,
string $conjunction = self::AND_CONJUNCTION
): static
{
): static {
foreach ($operatorsAndValues as $operator => $value) {
$this->addRegularWhere($field, $operator, $value, $conjunction);
}
Expand Down Expand Up @@ -621,8 +620,7 @@ protected function addRawWhere(
string $expression,
array $bindings = [],
string $conjunction = self::AND_CONJUNCTION
): static
{
): static {
return $this->appendWhereCondition([
self::FIELD => $expression,
self::OPERATOR => null,
Expand All @@ -645,8 +643,7 @@ protected function appendWhereCondition(
array $bindings = [],
string $type = self::WHERE_TYPE_REGULAR,
string $conjunction = self::AND_CONJUNCTION
): static
{
): static {
// Add bindings, type, ...etc to where condition
$where[self::BINDINGS] = $bindings;
$where[self::TYPE] = $type;
Expand Down Expand Up @@ -675,8 +672,7 @@ protected function addWhereDateExpression(
mixed $operator = null,
mixed $value = null,
string $conjunction = self::AND_CONJUNCTION
): static
{
): static {
// Resolve arguments
if (!isset($value)) {
$value = $operator;
Expand Down

0 comments on commit f3a6f8d

Please sign in to comment.