for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Helper;
/**
* Class FormatHelper
* @package App\Helper
* @author Lars <[email protected]> Riße
*/
class FormatHelper
{
public static function formatData($data, $success = true, $status = 200)
$content = array("success" => $success, "data" => $data);
return response($content, $status);
$content
array
string
response()
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
return response(/** @scrutinizer ignore-type */ $content, $status);
}