Issues (6)

app/Helpers/FormatHelper.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace App\Helper;
4
5
/**
6
 * Class FormatHelper
7
 * @package App\Helper
8
 * @author Lars <[email protected]> Riße
9
 */
10
class FormatHelper
11
{
12
    public static function formatData($data, $success = true, $status = 200)
13
    {
14
        $content = array("success" => $success, "data" => $data);
15
16
        return response($content, $status);
0 ignored issues
show
$content of type array is incompatible with the type string expected by parameter $content of response(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

16
        return response(/** @scrutinizer ignore-type */ $content, $status);
Loading history...
17
    }
18
}