-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from fruitl00p/feature/L11-strict-standards
Feature/l11 strict standards
- Loading branch information
Showing
21 changed files
with
392 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: PHP Linting (Pint) | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- 'dependabot/npm_and_yarn/*' | ||
jobs: | ||
phplint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- name: "laravel-pint" | ||
uses: aglipanci/[email protected] | ||
with: | ||
preset: psr12 | ||
verboseMode: true | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: PHP Linting (Pint) | ||
skip_fetch: true |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
|
||
/* | ||
|
@@ -28,7 +30,7 @@ | |
| api_key: Optional, but required to use the New Relic deployments feature. | ||
| | ||
*/ | ||
'app_name' => ini_get('newrelic.appname') ?: env('APP_NAME', 'laravel'), | ||
'app_name' => ini_get('newrelic.appname') ?: env('APP_NAME', 'laravel'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
|
@@ -49,7 +51,7 @@ | |
'environments' => [ | ||
'production', | ||
], | ||
'loggable' => [ | ||
'loggable' => [ | ||
'local', | ||
], | ||
|
||
|
@@ -88,17 +90,17 @@ | |
| ignore: Set which HTTP requests should be ignored by New Relic. | ||
| | ||
*/ | ||
'http' => [ | ||
'http' => [ | ||
'middleware' => \JackWH\LaravelNewRelic\Middleware\NewRelicMiddleware::class, | ||
|
||
'visitors' => [ | ||
'record_user_id' => true, | ||
'record_user_id' => true, | ||
'record_ip_address' => false, | ||
'guest_label' => 'Guest', | ||
'guest_label' => 'Guest', | ||
], | ||
|
||
'rewrite' => [ | ||
'/livewire/livewire.js' => 'livewire.js', | ||
'/livewire/livewire.js' => 'livewire.js', | ||
'/livewire/livewire.js.map' => 'livewire.js.map', | ||
], | ||
|
||
|
@@ -128,7 +130,7 @@ | |
| runtime stats for background, noisy, or long-running processes. | ||
| | ||
*/ | ||
'artisan' => [ | ||
'artisan' => [ | ||
'prefix' => '', | ||
|
||
'ignore' => [ | ||
|
@@ -164,13 +166,13 @@ | |
| connections, queue names, or job classes, enter them here. | ||
| | ||
*/ | ||
'queue' => [ | ||
'queue' => [ | ||
'prefix' => '', | ||
|
||
'ignore' => [ | ||
'connections' => ['sync'], | ||
'queues' => [], | ||
'jobs' => [], | ||
'queues' => [], | ||
'jobs' => [], | ||
], | ||
], | ||
|
||
|
@@ -196,7 +198,7 @@ | |
| ignored in the Artisan or Queue configuration sections. | ||
| | ||
*/ | ||
'scheduler' => [ | ||
'scheduler' => [ | ||
'prefix' => '', | ||
|
||
'ignore' => [ | ||
|
@@ -220,12 +222,12 @@ | |
| detect_hash: If true, and no git commit hash is passed to the command, | ||
| the package will attempt to auto-detect the revision. | ||
*/ | ||
'deployments' => [ | ||
'api_key' => env('NEW_RELIC_API_KEY'), | ||
'app_id' => env('NEW_RELIC_APP_ID'), | ||
'deployments' => [ | ||
'api_key' => env('NEW_RELIC_API_KEY'), | ||
'app_id' => env('NEW_RELIC_APP_ID'), | ||
'endpoint' => env('NEW_RELIC_API_ENDPOINT', 'https://api.newrelic.com/v2/'), | ||
|
||
'user' => '[email protected]', | ||
'user' => '[email protected]', | ||
|
||
'detect_hash' => true, | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ includes: | |
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: 4 | ||
level: 6 | ||
paths: | ||
- src | ||
- config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"preset": "psr12" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector; | ||
|
||
return RectorConfig::configure() | ||
->withPaths([ | ||
__DIR__.'/config', | ||
__DIR__.'/src', | ||
__DIR__.'/tests', | ||
]) | ||
// uncomment to reach your current PHP version | ||
->withPreparedSets( | ||
deadCode: true, | ||
codeQuality: true, | ||
codingStyle: true, | ||
typeDeclarations: true, | ||
privatization: true, | ||
naming: true, | ||
instanceOf: true, | ||
earlyReturn: true, | ||
strictBooleans: true | ||
) | ||
->withPhpSets(php81: true) | ||
->withRules([ | ||
\Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector::class, | ||
AddVoidReturnTypeWhereNoReturnRector::class, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace JackWH\LaravelNewRelic\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.