Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Console/TinkerServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace BeyondCode\LaravelTinkerServer\Console;

use Psy\Shell;
use Psy\Configuration;
use BeyondCode\LaravelTinkerServer\Server;
use Illuminate\Console\Command;
use Laravel\Tinker\ClassAliasAutoloader;
use BeyondCode\LaravelTinkerServer\Server;
use Symfony\Component\Console\Output\BufferedOutput;
use Psy\Configuration;
use Psy\Shell;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
use Symfony\Component\Console\Output\BufferedOutput;

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

namespace BeyondCode\LaravelTinkerServer;

use Illuminate\Support\ServiceProvider;
use BeyondCode\LaravelTinkerServer\Console\TinkerServerCommand;
use Illuminate\Support\ServiceProvider;

class LaravelTinkerServerServiceProvider extends ServiceProvider
{
Expand Down
4 changes: 2 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace BeyondCode\LaravelTinkerServer;

use Psy\Shell;
use BeyondCode\LaravelTinkerServer\Shell\ExecutionClosure;
use Clue\React\Stdio\Stdio;
use Psy\Shell;
use React\EventLoop\Factory;
use React\EventLoop\LoopInterface;
use React\Socket\ConnectionInterface;
use React\Socket\Server as SocketServer;
use Symfony\Component\Console\Output\BufferedOutput;
use BeyondCode\LaravelTinkerServer\Shell\ExecutionClosure;

class Server
{
Expand Down
6 changes: 3 additions & 3 deletions src/Shell/ExecutionClosure.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace BeyondCode\LaravelTinkerServer\Shell;

use Psy\Shell;
use Psy\CodeCleaner\NoReturnValue;
use Psy\Exception\BreakException;
use Psy\Exception\ErrorException;
use Psy\CodeCleaner\NoReturnValue;
use Psy\Exception\ThrowUpException;
use Psy\Exception\TypeErrorException;
use Psy\ExecutionClosure as BaseExecutionClosure;
use Psy\Shell;

class ExecutionClosure extends BaseExecutionClosure
{
Expand All @@ -28,7 +28,7 @@ public function __construct(Shell $__psysh__, $__line__)
\set_error_handler([$__psysh__, 'handleError']);

// Evaluate the current code buffer
$_ = eval($__psysh__->onExecute($__psysh__->flushCode() ?: ExecutionClosure::NOOP_INPUT));
$_ = eval($__psysh__->onExecute($__psysh__->flushCode() ?: self::NOOP_INPUT));
} catch (\Throwable $_e) {
// Clean up on our way out.
\restore_error_handler();
Expand Down
6 changes: 3 additions & 3 deletions tests/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace BeyondCode\LaravelTinkerServer\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\PhpProcess;
use BeyondCode\LaravelTinkerServer\Connection;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Process\Exception\ProcessTimedOutException;
use Symfony\Component\Process\PhpProcess;
use Symfony\Component\Process\Process;

class ConnectionTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/server.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Psy\Configuration;
use BeyondCode\LaravelTinkerServer\Server;
use BeyondCode\LaravelTinkerServer\Tests\EchoStream;
use Psy\Configuration;
use Symfony\Component\Console\Output\BufferedOutput;

$componentRoot = $_SERVER['COMPONENT_ROOT'] ?? __DIR__.'/../..';
Expand Down