Skip to content

Commit

Permalink
moved tools to contracts.
Browse files Browse the repository at this point in the history
  • Loading branch information
msamgan committed Oct 1, 2024
1 parent bf96432 commit 05aa096
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Actions/Clean.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Actions;

use App\Support\Tool;
use App\Contracts\Tool;
use Illuminate\Console\Command;

class Clean
Expand Down
2 changes: 1 addition & 1 deletion app/Concerns/GetsCleaner.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace App\Concerns;

use App\Actions\Clean;
use App\Contracts\Tool;
use App\Support\DusterConfig;
use App\Support\PhpCodeSniffer;
use App\Support\PhpCsFixer;
use App\Support\Pint;
use App\Support\TLint;
use App\Support\Tool;
use App\Support\UserScript;

trait GetsCleaner
Expand Down
3 changes: 2 additions & 1 deletion app/Support/Tool.php → app/Contracts/Tool.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

namespace App\Support;
namespace App\Contracts;

use App\Concerns\CommandHelpers;
use App\Support\DusterConfig;

abstract class Tool
{
Expand Down
1 change: 1 addition & 0 deletions app/Support/PhpCodeSniffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Support;

use App\Contracts\Tool;
use App\Project;
use PHP_CodeSniffer\Config;
use PHP_CodeSniffer\Runner;
Expand Down
2 changes: 1 addition & 1 deletion app/Support/PhpCsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace App\Support;

use App\Actions\ElaborateSummary;
use App\Contracts\Tool;
use App\Project;
use ArrayIterator;
use PhpCsFixer\Config;
use PhpCsFixer\ConfigInterface;
use PhpCsFixer\ConfigurationException\InvalidConfigurationException;
use PhpCsFixer\Console\ConfigurationResolver;
Expand Down
1 change: 1 addition & 0 deletions app/Support/Pint.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Actions\ElaborateSummary;
use App\Actions\FixCode;
use App\Commands\DefaultCommand;
use App\Contracts\Tool;

class Pint extends Tool
{
Expand Down
1 change: 1 addition & 0 deletions app/Support/TLint.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Support;

use App\Contracts\Tool;
use Illuminate\Console\Command;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
1 change: 1 addition & 0 deletions app/Support/UserScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Support;

use App\Contracts\Tool;
use Illuminate\Console\Command;
use JsonException;
use Psr\Container\ContainerExceptionInterface;
Expand Down

0 comments on commit 05aa096

Please sign in to comment.