for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: zhanglingyu
* Date: 2019-03-06
* Time: 10:55
*/
if (!function_exists('identity')) {
* Get Identity value
*
* @param int $limit
* @return mixed
function identity($limit = 1)
{
if ($limit == 1) {
return app('identity_faker')->one();
app
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return /** @scrutinizer ignore-call */ app('identity_faker')->one();
}
return app('identity_faker')->limit($limit)->get();
if(!function_exists('identity_verity')) {
* check chinese id number
* @param null $idNumer
$idNumer
null
* @return bool
function identity_verity($idNumer = null)
if (is_null($idNumer)) {
is_null($idNumer)
true
return false;
return \ArcherZdip\Identity\VerityChineseIDNumber::isValid($idNumer);