for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
use Rinvex\Country\CountryLoader;
use Rinvex\Country\CurrencyLoader;
if (! function_exists('country')) {
/**
* Get the country by it's ISO 3166-1 alpha-2.
*
* @param string $code
* @param bool $hydrate
* @return \Rinvex\Country\Country|array
*/
function country($code, $hydrate = true)
{
return CountryLoader::country($code, $hydrate);
}
if (! function_exists('countries')) {
* Get all countries short-listed.
* @param bool $longlist
* @return array
function countries($longlist = false, $hydrate = false)
return CountryLoader::countries($longlist, $hydrate);
if (! function_exists('currencies')) {
$hydrate
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
function currencies($longlist = false)
return CurrencyLoader::currencies($longlist);
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.