Skip to content

Commit

Permalink
Merge pull request #17 from arifszn/16-lint
Browse files Browse the repository at this point in the history
Setup code style fixer
  • Loading branch information
arifszn authored Aug 29, 2022
2 parents d954394 + 52c344f commit f8514cd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/Http/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Authenticate extends Middleware
*/
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
if (!$request->expectsJson()) {
return route('login');
}
}
Expand Down
28 changes: 22 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "laravel/laravel",
"name": "arifszn/pandora",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"description": "REST API starter kit built with Laravel, OpenAPI, Sanctum.",
"license": "MIT",
"homepage": "https://github.com/arifszn/pandora",
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
Expand All @@ -13,7 +13,7 @@
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/pint": "^1.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
Expand Down Expand Up @@ -45,7 +45,9 @@
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
],
"lint": "./vendor/bin/pint",
"lint:test": "./vendor/bin/pint --test"
},
"extra": {
"laravel": {
Expand All @@ -61,5 +63,19 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"keywords": [
"framework",
"laravel",
"php",
"REST API",
"Laravel API",
"Laravel backend",
"API starter kit",
"API Boilerplate",
"Laravel API Boilerplate",
"Laravel Sanctum",
"Laravel REST API",
"Pandora"
]
}
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"preset": "laravel",
"rules": {
"not_operator_with_successor_space": false
}
}

0 comments on commit f8514cd

Please sign in to comment.