for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Soleo\UrlShortener;
class FakeConnection implements ConnectionInterface
{
private $fakeDB;
public function __construct($config = null)
$config
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->fakeDB = [
'A9A' => 'https://example.com'
];
}
public function lookup($slug, $update)
return $this->fakeDB[$slug];
public function reverseLookup($longUrl)
$reversedArray = array_flip($this->fakeDB);
return $reversedArray[$longUrl];
public function addNewRecord($longUrl, $slug)
return true;
public function getIncrementUid()
return 1;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.