for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: 5729906803
* Date: 9/13/2020
* Time: 1:04 PM
*/
namespace Hsy\SimotelConnect;
class SmartApi
{
public function callApi($apiData)
$appName = $apiData['app_name'];
$apiMethodsRepositoryClassPath = config("simotel.smartApi.methodsRepositoryClass");
config
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$apiMethodsRepositoryClassPath = /** @scrutinizer ignore-call */ config("simotel.smartApi.methodsRepositoryClass");
$apiMethodsRepository = new $apiMethodsRepositoryClassPath;
if (!method_exists($apiMethodsRepository, $appName))
return false;
$apiResponse = $apiMethodsRepository->$appName($apiData);
if (!is_array($apiResponse))
return $apiResponse;
}