for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EasyWeChat\OpenWork\Provider;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
class ServiceProvider implements ServiceProviderInterface
{
protected $app;
/**
* @param Container $app
*/
public function register(Container $app)
$this->app = $app;
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.
isset($app['provider']) || $app['provider'] = function ($app) {
return new Client($app);
};
}
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.