Skip to content

Commit

Permalink
Merge pull request #26 from Wulfheart/revert-16-feature/github-actions
Browse files Browse the repository at this point in the history
Revert "added github actions to check phpcsfixer and phpunit tests"
  • Loading branch information
Wulfheart authored May 2, 2021
2 parents fbf9753 + c17ded1 commit dda2cfe
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 dda2cfe

Please sign in to comment.