Skip to content

Use proper use imports. #1025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2021
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
3 changes: 2 additions & 1 deletion src/Task/ApiGen/ApiGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Robo\Exception\TaskException;
use Robo\Task\BaseTask;
use Traversable;
use Robo\Common\ExecOneCommand;

/**
* Executes ApiGen command to generate documentation
Expand All @@ -23,7 +24,7 @@
*/
class ApiGen extends BaseTask implements CommandInterface
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

const BOOL_NO = 'no';
const BOOL_YES = 'yes';
Expand Down
6 changes: 4 additions & 2 deletions src/Task/Base/Exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
use Robo\Task\BaseTask;
use Symfony\Component\Process\Process;
use Robo\Result;
use Robo\Common\CommandReceiver;
use Robo\Common\ExecOneCommand;

/**
* Executes shell script. Closes it when running in background mode.
Expand All @@ -30,8 +32,8 @@
*/
class Exec extends BaseTask implements CommandInterface, PrintedInterface, SimulatedInterface
{
use \Robo\Common\CommandReceiver;
use \Robo\Common\ExecOneCommand;
use CommandReceiver;
use ExecOneCommand;

/**
* @var static[]
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Base/ParallelExec.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Robo\Task\BaseTask;
use Symfony\Component\Process\Exception\ProcessTimedOutException;
use Symfony\Component\Process\Process;
use Robo\Common\CommandReceiver;

/**
* Class ParallelExecTask
Expand All @@ -24,7 +25,7 @@
*/
class ParallelExec extends BaseTask implements CommandInterface, PrintedInterface
{
use \Robo\Common\CommandReceiver;
use CommandReceiver;

/**
* @var Process[]
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Bower/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

use Robo\Task\BaseTask;
use Robo\Exception\TaskException;
use Robo\Common\ExecOneCommand;

abstract class Base extends BaseTask
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var array
Expand Down
3 changes: 2 additions & 1 deletion src/Task/CommandStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
use Robo\Result;
use Robo\Contract\CommandInterface;
use Robo\Exception\TaskException;
use Robo\Common\CommandReceiver;

abstract class CommandStack extends BaseTask implements CommandInterface, PrintedInterface
{
use ExecCommand;
use \Robo\Common\CommandReceiver;
use CommandReceiver;

/**
* @var string
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Composer/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
use Robo\Contract\CommandInterface;
use Robo\Exception\TaskException;
use Robo\Task\BaseTask;
use Robo\Common\ExecOneCommand;

abstract class Base extends BaseTask implements CommandInterface
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Gulp/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
use Robo\Task\BaseTask;
use Robo\Exception\TaskException;
use Robo\Common\ProcessUtils;
use Robo\Common\ExecOneCommand;

abstract class Base extends BaseTask
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Npm/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

use Robo\Task\BaseTask;
use Robo\Exception\TaskException;
use Robo\Common\ExecOneCommand;

abstract class Base extends BaseTask
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Remote/Rsync.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Robo\Contract\CommandInterface;
use Robo\Task\BaseTask;
use Robo\Exception\TaskException;
use Robo\Common\ExecOneCommand;

/**
* Executes rsync in a flexible manner.
Expand Down Expand Up @@ -47,7 +48,7 @@
*/
class Rsync extends BaseTask implements CommandInterface
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down
6 changes: 4 additions & 2 deletions src/Task/Remote/Ssh.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use Robo\Exception\TaskException;
use Robo\Task\BaseTask;
use Robo\Contract\SimulatedInterface;
use Robo\Common\CommandReceiver;
use Robo\Common\ExecOneCommand;

/**
* Runs multiple commands on a remote server.
Expand Down Expand Up @@ -43,8 +45,8 @@
*/
class Ssh extends BaseTask implements CommandInterface, SimulatedInterface
{
use \Robo\Common\CommandReceiver;
use \Robo\Common\ExecOneCommand;
use CommandReceiver;
use ExecOneCommand;

/**
* @var null|string
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Testing/Atoum.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Robo\Contract\CommandInterface;
use Robo\Contract\PrintedInterface;
use Robo\Task\BaseTask;
use Robo\Common\ExecOneCommand;

/**
* Runs [atoum](http://atoum.org/) tests
Expand All @@ -21,7 +22,7 @@
*/
class Atoum extends BaseTask implements CommandInterface, PrintedInterface
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Testing/Behat.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Robo\Contract\CommandInterface;
use Robo\Contract\PrintedInterface;
use Robo\Task\BaseTask;
use Robo\Common\ExecOneCommand;

/**
* Executes Behat tests
Expand All @@ -21,7 +22,7 @@
*/
class Behat extends BaseTask implements CommandInterface, PrintedInterface
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down
4 changes: 2 additions & 2 deletions src/Task/Testing/Codecept.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Robo\Exception\TaskException;
use Robo\Task\BaseTask;
use Robo\Contract\CommandInterface;
use Symfony\Component\Process\Process;
use Robo\Common\ExecOneCommand;

/**
* Executes Codeception tests
Expand All @@ -28,7 +28,7 @@
*/
class Codecept extends BaseTask implements CommandInterface, PrintedInterface
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Testing/PHPUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Robo\Contract\CommandInterface;
use Robo\Contract\PrintedInterface;
use Robo\Task\BaseTask;
use Robo\Common\ExecOneCommand;

/**
* Runs PHPUnit tests
Expand All @@ -21,7 +22,7 @@
*/
class PHPUnit extends BaseTask implements CommandInterface, PrintedInterface
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down
3 changes: 2 additions & 1 deletion src/Task/Testing/Phpspec.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Robo\Contract\PrintedInterface;
use Robo\Task\BaseTask;
use Robo\Contract\CommandInterface;
use Robo\Common\ExecOneCommand;

/**
* Executes Phpspec tests
Expand All @@ -21,7 +22,7 @@
*/
class Phpspec extends BaseTask implements CommandInterface, PrintedInterface
{
use \Robo\Common\ExecOneCommand;
use ExecOneCommand;

/**
* @var string
Expand Down