Completed
Push — master ( 04c9ff...5dea00 )
by Alex
03:36
created

ProgressControl   A

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
class ProgressControl
17
{
18
19
    /**
20
     * @param $i
21
     */
22
    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...
23
    {
24
        switch($i){
25
            case 0:
26
                echo "0%\n";
27
                break;
28
            case 24:
29
                echo "25%\n";
30
                break;
31
            case 49:
32
                echo "50%\n";
33
                break;
34
            case 74:
35
                echo "75%\n";
36
        }
37
    }
38
39
40
}