Skip to content

Commit

Permalink
Merge pull request #58 from tighten/adc/fix-pint-project
Browse files Browse the repository at this point in the history
Fix Pint Project
  • Loading branch information
driftingly authored Jan 10, 2023
2 parents 6ad46bf + e3b3531 commit 264ce04
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/Providers/DusterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

use App\Actions\Clean;
use App\Commands\DusterCommand;
use App\Project;
use App\Support\DusterConfig;
use App\Support\PhpCodeSniffer;
use App\Support\PhpCsFixer;
use App\Support\Pint;
use App\Support\Project;
use App\Support\TLint;
use App\Support\Tool;
use App\Support\UserScript;
use Illuminate\Support\ServiceProvider;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -40,7 +41,7 @@ public function register()
: ['tlint', 'phpcs', 'php-cs-fixer', 'pint', ...array_keys($this->getDusterConfig()['scripts'][$mode] ?? [])];

$tools = collect($using)
->map(fn ($using) => match (trim($using)) {
->map(fn ($using): Tool => match (trim($using)) {
'tlint' => resolve(TLint::class),
'phpcs', 'phpcodesniffer', 'php-code-sniffer' => resolve(PhpCodeSniffer::class),
'php-cs-fixer', 'phpcsfixer' => resolve(PhpCsFixer::class),
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/PintServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use App\Contracts\PintInputInterface;
use App\Output\ProgressOutput;
use App\Output\SummaryOutput;
use App\Project;
use App\Repositories\ConfigurationJsonRepository;
use App\Repositories\PintConfigurationJsonRepository;
use App\Support\DusterConfig;
use App\Support\Project;
use Illuminate\Support\ServiceProvider;
use PhpCsFixer\Error\ErrorsManager;
use Symfony\Component\Console\Input\ArrayInput;
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\Project;
use PHP_CodeSniffer\Config;
use PHP_CodeSniffer\Runner;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down
1 change: 1 addition & 0 deletions app/Support/PhpCsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Support;

use App\Actions\ElaborateSummary;
use App\Project;
use ArrayIterator;
use PhpCsFixer\Config;
use PhpCsFixer\ConfigInterface;
Expand Down
Binary file modified builds/duster
Binary file not shown.
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
|
*/

'version' => '0.5.1',
'version' => '0.5.2',

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 264ce04

Please sign in to comment.