Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jul 25, 2023
1 parent 9ef1242 commit 0d82b78
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/Inspector/InspectorInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

namespace Chevere\Xr\Inspector;

use function Chevere\Message\message;
use Chevere\Throwable\Exceptions\LogicException;
use Chevere\Xr\Interfaces\InspectorInterface;
use function Chevere\Message\message;

/**
* @codeCoverageIgnore
Expand All @@ -31,7 +31,7 @@ public function __construct(InspectorInterface $xrInspector)

public static function get(): InspectorInterface
{
if (!isset(self::$instance)) {
if (! isset(self::$instance)) {
throw new LogicException(
message('No xr inspector instance present')
);
Expand Down
3 changes: 1 addition & 2 deletions src/Traits/ClientTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace Chevere\Xr\Traits;

use function Chevere\Message\message;

use Chevere\Http\Interfaces\MethodInterface;
use Chevere\Http\Methods\GetMethod;
use Chevere\Http\Methods\PostMethod;
Expand All @@ -23,6 +21,7 @@
use Chevere\Xr\Interfaces\CurlInterface;
use Chevere\Xr\Interfaces\MessageInterface;
use phpseclib3\Crypt\EC\PrivateKey;
use function Chevere\Message\message;

trait ClientTrait
{
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/CurlTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

namespace Chevere\Xr\Traits;

use function Chevere\Message\message;
use Chevere\Throwable\Exceptions\RuntimeException;
use CurlHandle;
use function Chevere\Message\message;

trait CurlTrait
{
Expand Down
4 changes: 2 additions & 2 deletions src/WriterInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

namespace Chevere\Xr;

use function Chevere\Message\message;
use Chevere\Throwable\Exceptions\LogicException;
use Chevere\Writer\Interfaces\WriterInterface;
use function Chevere\Message\message;

/**
* @codeCoverageIgnore
Expand All @@ -31,7 +31,7 @@ public function __construct(WriterInterface $writer)

public static function get(): WriterInterface
{
if (!isset(self::$instance)) {
if (! isset(self::$instance)) {
throw new LogicException(
message('No writer instance present')
);
Expand Down
2 changes: 1 addition & 1 deletion src/Xr.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

namespace Chevere\Xr;

use function Chevere\Filesystem\filePhpReturnForPath;
use Chevere\Filesystem\Interfaces\DirectoryInterface;
use Chevere\Xr\Interfaces\ClientInterface;
use Chevere\Xr\Interfaces\CurlInterface;
use Chevere\Xr\Interfaces\XrInterface;
use phpseclib3\Crypt\EC\PrivateKey;
use phpseclib3\Crypt\PublicKeyLoader;
use Throwable;
use function Chevere\Filesystem\filePhpReturnForPath;

final class Xr implements XrInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/XrInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

namespace Chevere\Xr;

use function Chevere\Message\message;
use Chevere\Throwable\Exceptions\LogicException;
use Chevere\Xr\Interfaces\XrInterface;
use function Chevere\Message\message;

/**
* @codeCoverageIgnore
Expand Down
12 changes: 6 additions & 6 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
declare(strict_types=1);

namespace Chevere\Xr {
use function Chevere\Filesystem\directoryForPath;
use Chevere\Writer\Interfaces\WriterInterface;
use function Chevere\Writer\streamTemp;
use Chevere\Writer\StreamWriter;
use Chevere\Xr\Interfaces\XrInterface;
use LogicException;
use function Safe\getcwd;
use Throwable;
use function Chevere\Filesystem\directoryForPath;
use function Chevere\Writer\streamTemp;
use function Safe\getcwd;

/**
* @codeCoverageIgnore
Expand Down Expand Up @@ -56,7 +56,7 @@ function getXrFailover(): ?XrInterface
{
try {
return getXr();
} catch(Throwable $e) {
} catch (Throwable $e) {
$caller = debug_backtrace(0, 2)[1];
$file = $caller['file'] ?? '@unknown';
$line = strval($caller['line'] ?? 0);
Expand Down Expand Up @@ -126,13 +126,13 @@ function throwableHandler(Throwable $throwable, string $extra = ''): void
}

namespace {
use function Chevere\Xr\getWriter;
use function Chevere\Xr\getXrFailover;
use Chevere\Xr\Inspector\Inspector;
use Chevere\Xr\Inspector\InspectorInstance;
use Chevere\Xr\Inspector\InspectorNull;
use Chevere\Xr\Interfaces\InspectorInterface;
use Chevere\Xr\Message;
use function Chevere\Xr\getWriter;
use function Chevere\Xr\getXrFailover;

// @codeCoverageIgnoreStart
if (! defined('XR_BACKTRACE')) {
Expand Down

0 comments on commit 0d82b78

Please sign in to comment.