for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace RicardoFiorani\Container\Factory;
use RicardoFiorani\Container\ServicesContainer;
class ServicesContainerFactory
{
public function __invoke(): ServicesContainer
$configFile = require __DIR__.'/../../../config/config.php';
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
$servicesContainer = new ServicesContainer($configFile);
return $servicesContainer;
}
public static function createNewServiceMatcher(): ServicesContainer
$factory = new self();
return $factory();
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.