H5pHelper::current_user_can()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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
Unused Code introduced by
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