Issues (119)

src/LaravelH5p/Helpers/H5pHelper.php (1 issue)

1
<?php
2
3
/*
4
 *
5
 * @Project        Expression project.displayName is undefined on line 5, column 35 in Templates/Licenses/license-default.txt.
6
 * @Copyright      Djoudi
7
 * @Created        2017-02-20
8
 * @Filename       H5pHelper.php
9
 * @Description
10
 *
11
 */
12
13
namespace Djoudi\LaravelH5p\Helpers;
14
15
class H5pHelper
16
{
17
    //put your code here
18
19
    public static function current_user_can($permission)
0 ignored issues
show
The parameter $permission is not used and could be removed. ( Ignorable by Annotation )

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

19
    public static function current_user_can(/** @scrutinizer ignore-unused */ $permission)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    {
21
        return true;
22
    }
23
24
    public static function nonce($token)
25
    {
26
        return bin2hex($token);
27
    }
28
}
29