Skip to content

Commit

Permalink
Merge pull request #34 from renoki-co/analysis-a6Gvmx
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
rennokki authored Oct 2, 2023
2 parents a75f926 + 55e8624 commit 2390b09
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/CloudflareRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace RenokiCo\L1;

use Saloon\Http\Request;
use Saloon\Contracts\Connector;
use Saloon\Http\Request;

abstract class CloudflareRequest extends Request
{
Expand Down
2 changes: 1 addition & 1 deletion src/D1/D1Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace RenokiCo\L1\D1;

use Illuminate\Database\SQLiteConnection;
use RenokiCo\L1\D1\Pdo\D1Pdo;
use RenokiCo\L1\CloudflareD1Connector;
use RenokiCo\L1\D1\Pdo\D1Pdo;

class D1Connection extends SQLiteConnection
{
Expand Down
2 changes: 1 addition & 1 deletion src/D1/D1SchemaGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace RenokiCo\L1\D1;

use Illuminate\Support\Str;
use Illuminate\Database\Schema\Grammars\SQLiteGrammar;
use Illuminate\Support\Str;

class D1SchemaGrammar extends SQLiteGrammar
{
Expand Down
1 change: 0 additions & 1 deletion src/D1/Pdo/D1Pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use PDO;
use PDOStatement;
use RenokiCo\L1\D1\Pdo\D1PdoStatement;
use RenokiCo\L1\CloudflareD1Connector;

class D1Pdo extends PDO
Expand Down
3 changes: 1 addition & 2 deletions src/D1/Pdo/D1PdoStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class D1PdoStatement extends PDOStatement
protected array $bindings = [];
protected array $responses = [];


public function __construct(
protected D1Pdo &$pdo,
protected string $query,
Expand Down Expand Up @@ -51,7 +50,7 @@ public function execute($params = []): bool
$this->bindings,
);

if ($response->failed() || !$response->json('success')) {
if ($response->failed() || ! $response->json('success')) {
throw new PDOException(
(string) $response->json('errors.0.message'),
(int) $response->json('errors.0.code'),
Expand Down
2 changes: 1 addition & 1 deletion src/D1/Requests/D1QueryRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace RenokiCo\L1\D1\Requests;

use Saloon\Enums\Method;
use RenokiCo\L1\CloudflareRequest;
use Saloon\Contracts\Body\HasBody;
use Saloon\Enums\Method;
use Saloon\Traits\Body\HasJsonBody;

class D1QueryRequest extends CloudflareRequest implements HasBody
Expand Down
2 changes: 0 additions & 2 deletions src/L1ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace RenokiCo\L1;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\ServiceProvider;
use RenokiCo\L1\CloudflareD1Connector;
use RenokiCo\L1\D1\D1Connection;

class L1ServiceProvider extends ServiceProvider
Expand Down

0 comments on commit 2390b09

Please sign in to comment.