ProgressControl   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B progressControl() 0 16 5
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: alumne
5
 * Date: 31/05/16
6
 * Time: 15:44
7
 */
8
9
namespace App\Console\AuxiliaryClasses;
10
11
12
/**
13
 * Class ProgressControl
14
 * @package App\Console\AuxiliaryClasses
15
 */
16
/**
17
 * Class ProgressControl
18
 * @package App\Console\AuxiliaryClasses
19
 */
20
class ProgressControl
21
{
22
23
    /**
24
     * @param $i
25
     */
26
    public function progressControl($i)
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
27
    {
28
        switch($i){
29
            case 0:
30
                echo "0%\n";
31
                break;
32
            case 24:
33
                echo "25%\n";
34
                break;
35
            case 49:
36
                echo "50%\n";
37
                break;
38
            case 74:
39
                echo "75%\n";
40
        }
41
    }
42
43
44
}