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

ProgressControl::progressControl()   B

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
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
}