for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of MobileDetectServiceProvider.
*
* (c) Lhassan Baazzi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eccube\ServiceProvider;
use Pimple\ServiceProviderInterface;
use Pimple\Container;
/**
* @see https://github.com/jbinfo/MobileDetectServiceProvider/pull/4
class MobileDetectServiceProvider implements ServiceProviderInterface
{
public function register(Container $container)
$container['mobile_detect'] = function($c) {
$c
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new \Mobile_Detect();
};
}