Video   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 29
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A description() 0 6 1
A stepZero() 0 8 1
A stepOne() 0 5 1
1
<?php
2
3
namespace Gamer\Pointable\Mapeamento;
4
5
use Gamer\Pointable\Pointable;
6
7
class Video extends Pointable
8
{
9
    public static $POINTS = 1;
10
    public static $STEPS = 2;
11
12
    public static function description()
13
    {
14
        return [
15
            'Assista videos e ganhe 1 ponto por pergunta respondida!'
16
        ];
17
    }
18
19
    public static function stepZero()
20
    {
21
        // Procura por Video não Potuado
22
        $video = Video::rand();
0 ignored issues
show
Bug introduced by
The method rand() does not seem to exist on object<Gamer\Pointable\Mapeamento\Video>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
23
24
        // Assista o VIdeo e Clique em Assisti.
25
        $video->url;
26
    }
27
28
29
    public static function stepOne()
30
    {
31
32
33
    }
34
    
35
}