F9/Application/AppFactory.php
Avoid too many return
statements within this method. Open
Open
return $app;
Avoid too many return
statements within this method. Open
Open
$app['flashbag'] = $app->factory(function () use ($app) { return $app['session']->getFlashBag(); });
Avoid unused private methods such as 'makeApplication'. Open
Open
private function makeApplication(array $paths) : Application
{
// this is the Illuminate Container
$container = Forge::getInstance();
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
The variable $global_scope is not named in camelCase. Open
Open
private function makeApplication(array $paths) : Application
{
// this is the Illuminate Container
$container = Forge::getInstance();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $global_scope is not named in camelCase. Open
Open
private function makeApplication(array $paths) : Application
{
// this is the Illuminate Container
$container = Forge::getInstance();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $global_scope is not named in camelCase. Open
Open
private function makeApplication(array $paths) : Application
{
// this is the Illuminate Container
$container = Forge::getInstance();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}