1 | <?php |
||
5 | class ProgressBar |
||
6 | { |
||
7 | |||
8 | private static $finished = 0; |
||
9 | private static $progressBar; |
||
10 | |||
11 | private $max = 0; |
||
12 | |||
13 | private $progress = 0; |
||
14 | |||
15 | private $progresslength = 0; |
||
16 | |||
17 | private function __construct (){ } |
||
18 | |||
19 | /** |
||
20 | * @return \Classes\Update\ProgressBar |
||
21 | */ |
||
22 | public static function getInstance () |
||
31 | |||
32 | public function setMaxByte ( $bytesMax ) |
||
38 | |||
39 | public function setProgress ( $progress ) |
||
46 | |||
47 | public function getProgress () |
||
51 | |||
52 | public function calcule () |
||
60 | |||
61 | public function finish () |
||
70 | |||
71 | public function render () |
||
88 | |||
89 | public function clear () |
||
96 | } |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.