Skip to content

Commit

Permalink
Revert "added github actions to check phpcsfixer and phpunit tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulfheart authored May 2, 2021
1 parent fbf9753 commit c17ded1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 70 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/php-cs-fixer.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/php-unit.yml

This file was deleted.

1 change: 0 additions & 1 deletion src/Commands/PrettyRoutesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ protected function displayRoutes(array $routes)
'PATCH' => 'yellow',
'DELETE' => 'red',
][$m] ?? 'white';

return sprintf("<fg=%s>%s</>", $color, $m);
}, explode('|', $method)));

Expand Down
1 change: 1 addition & 0 deletions tests/SnapshotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Wulfheart\PrettyRoutes\Tests;


use Illuminate\Support\Facades\Artisan;
use Spatie\Snapshots\MatchesSnapshots;

Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public function defineRoutes($router): void
return view('welcome');
});

$router->get('admin', fn () => true);
$router->get('admin', fn() => true);

$router->resource('test', Controller::class);

$router->get('/{one?}/{two}/some/{three?}', fn () => true);
$router->post('some/thing/{one?}/{two}/some/{three?}', fn () => true);
$router->get('/{one?}/{two}/some/{three?}', fn() => true);
$router->post('some/thing/{one?}/{two}/some/{three?}', fn() => true);
}
}

0 comments on commit c17ded1

Please sign in to comment.