Skip to content

Commit

Permalink
Merge pull request #43 from edersoares/pint
Browse files Browse the repository at this point in the history
Format code
  • Loading branch information
edersoares authored Mar 28, 2023
2 parents 08ad5a8 + f6bfa35 commit dbfaf4a
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 12 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"require-dev": {
"composer/composer": "^2.3.0",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^9.5",
"laravel/pint": "^1.7"
},
"autoload": {
"psr-4": {
Expand All @@ -33,11 +34,13 @@
"class": "Dex\\Composer\\PlugAndPlay\\PlugAndPlayPlugin"
},
"scripts": {
"format": "vendor/bin/pint",
"test": "vendor/bin/phpunit tests --colors",
"test:coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --colors --coverage-html=.build/coverage",
"test:coverage:open": "open .build/coverage/index.html"
},
"scripts-descriptions": {
"format": "Format code",
"test": "Runs package tests",
"test:coverage": "Runs coverage",
"test:coverage:open": "Open coverage report"
Expand Down
6 changes: 6 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"preset": "psr12",
"rules": {
"concat_space": false
}
}
3 changes: 2 additions & 1 deletion src/Commands/AddCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

class AddCommand extends BaseCommand
{
use ComposerCreator, CommandNaming;
use ComposerCreator;
use CommandNaming;

protected function configure(): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Commands/DumpAutoloadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

class DumpAutoloadCommand extends ComposerDumpAutoloadCommand
{
use ComposerCreator, CommandNaming;
use ComposerCreator;
use CommandNaming;

protected function configure(): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Commands/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

class InitCommand extends BaseCommand
{
use ComposerCreator, CommandNaming;
use ComposerCreator;
use CommandNaming;

protected function configure(): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

class InstallCommand extends ComposerInstallCommand
{
use ComposerCreator, CommandNaming;
use ComposerCreator;
use CommandNaming;

protected function configure(): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Commands/PlugAndPlayCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

class PlugAndPlayCommand extends BaseCommand
{
use ComposerCreator, CommandNaming;
use ComposerCreator;
use CommandNaming;

protected function configure(): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Commands/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

class UpdateCommand extends ComposerUpdateCommand
{
use ComposerCreator, CommandNaming;
use ComposerCreator;
use CommandNaming;

protected function configure(): void
{
Expand Down
8 changes: 4 additions & 4 deletions src/PlugAndPlayInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

interface PlugAndPlayInterface
{
const FILENAME = 'packages/plug-and-play.json';
public const FILENAME = 'packages/plug-and-play.json';

const PACKAGES_FILE = 'packages/composer.json';
public const PACKAGES_FILE = 'packages/composer.json';

const PACKAGES_PATH = 'packages';
public const PACKAGES_PATH = 'packages';

const PATH = 'packages/*/*/composer.json';
public const PATH = 'packages/*/*/composer.json';
}
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@

abstract class TestCase extends PHPUnitTestCase
{

}

0 comments on commit dbfaf4a

Please sign in to comment.