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