We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class BaseTestClass extends TestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Setup the test environment. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | protected function setUp(): void |
||
| 28 | } |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | protected function getPackageProviders($app) |
||
|
|
|||
| 33 | { |
||
| 34 | return [ |
||
| 35 | BassetServiceProvider::class, |
||
| 36 | BackpackServiceProvider::class, |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | |||
| 40 | // allow us to run crud panel private/protected methods like `inferFieldTypeFromDbColumnType` |
||
| 41 | public function invokeMethod(&$object, $methodName, array $parameters = []) |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.