Minor php cs fixes
This commit is contained in:
@@ -3,4 +3,3 @@
|
||||
// empty file for add and remove test
|
||||
|
||||
// __END__
|
||||
|
||||
|
||||
@@ -675,9 +675,9 @@ class DateTime
|
||||
foreach ($period as $dt) {
|
||||
$curr = $dt->format('D');
|
||||
if ($curr == 'Sat' || $curr == 'Sun') {
|
||||
$days[2] ++;
|
||||
$days[2]++;
|
||||
} else {
|
||||
$days[1] ++;
|
||||
$days[1]++;
|
||||
}
|
||||
}
|
||||
if ($return_named === true) {
|
||||
|
||||
@@ -1302,7 +1302,7 @@ class IO
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->cursor_ext[$query_hash]['pos'] ++;
|
||||
$this->cursor_ext[$query_hash]['pos']++;
|
||||
return $return;
|
||||
}
|
||||
|
||||
@@ -1519,7 +1519,7 @@ class IO
|
||||
]);
|
||||
return false;
|
||||
}
|
||||
$this->query_called[$query_hash] ++;
|
||||
$this->query_called[$query_hash]++;
|
||||
// return hash
|
||||
return $query_hash;
|
||||
}
|
||||
@@ -2469,7 +2469,7 @@ class IO
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
$this->cursor_ext[$query_hash]['log_pos'] ++;
|
||||
$this->cursor_ext[$query_hash]['log_pos']++;
|
||||
}
|
||||
// reset log for each read
|
||||
$this->cursor_ext[$query_hash]['log'] = [];
|
||||
@@ -2668,8 +2668,8 @@ class IO
|
||||
if ($return) {
|
||||
$this->cursor_ext[$query_hash]['log'][] = 'Return Data';
|
||||
// internal position counter
|
||||
$this->cursor_ext[$query_hash]['pos'] ++;
|
||||
$this->cursor_ext[$query_hash]['read_rows'] ++;
|
||||
$this->cursor_ext[$query_hash]['pos']++;
|
||||
$this->cursor_ext[$query_hash]['read_rows']++;
|
||||
// read is finished
|
||||
if (
|
||||
$this->cursor_ext[$query_hash]['read_rows'] ==
|
||||
|
||||
@@ -156,7 +156,7 @@ class ProgressBar
|
||||
{
|
||||
// avoid divison through 0
|
||||
if ($this->max - $this->min == 0) {
|
||||
$this->max ++;
|
||||
$this->max++;
|
||||
}
|
||||
$percent = round(($step - $this->min) / ($this->max - $this->min) * 100);
|
||||
if ($percent > 100) {
|
||||
@@ -186,7 +186,7 @@ class ProgressBar
|
||||
}
|
||||
// avoid divison through 0
|
||||
if ($this->max - $this->min == 0) {
|
||||
$this->max ++;
|
||||
$this->max++;
|
||||
}
|
||||
$pixel = round(($step - $this->min) * ($bar - ($this->pedding * 2)) / ($this->max - $this->min));
|
||||
if ($step <= $this->min) {
|
||||
|
||||
Reference in New Issue
Block a user