ProgressControl::progressControl()   B
last analyzed

Complexity

Conditions 5
Paths 5

Size

Total Lines 16
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 16
rs 8.8571
cc 5
eloc 13
nc 5
nop 1
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
}