Skip to content
Snippets Groups Projects
Commit 7bc09549 authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes.

parent 1d01cda4
No related merge requests found
......@@ -341,7 +341,8 @@ class Generator
$im,
'...',
5,
$this->settings->topPadding + $this->settings->maxLines * $lineHeight,
$this->settings->topPadding
+ $this->settings->maxLines * $lineHeight,
$this->settings->titleFont,
$this->settings->fontSize + 1,
$this->black,
......@@ -495,7 +496,9 @@ class Generator
$v = $k / 2 < 1 ? $box : -$box;
for ($i = 0;$i < 16;$i++) {
if ($bc[$i] == "1") {
imagefilledrectangle($im, $x, $y, $x + $box - 1, $y + $box - 1, $color);
imagefilledrectangle(
$im, $x, $y, $x + $box - 1, $y + $box - 1, $color
);
}
$x += $u;
if ($x >= $this->settings->size || $x < 0) {
......
......@@ -256,7 +256,8 @@ class PICA extends DAIA
if ($position_state !== null
&& substr($postit, $position_state + 24, 8) !== 'bestellt'
) {
$reservations[] = substr($postit, $position_reservations + 24, 1);
$reservations[]
= substr($postit, $position_reservations + 24, 1);
$expiration[] = substr($postit, $position_expire + 24, 10);
$renewals[] = $this->getRenewals($completeValue);
$closing_title = strpos($postit, '</td>', $position_title);
......@@ -437,7 +438,8 @@ class PICA extends DAIA
// first class=plain => description
// length = position of next </td> - startposition
$nextClosingTd = strpos($postit, '</td>', $pos);
$description[$i] = substr($postit, $pos + 18, ($nextClosingTd - $pos - 18));
$description[$i]
= substr($postit, $pos + 18, ($nextClosingTd - $pos - 18));
$position = $pos + 1;
// next class=plain => date of fee creation
$pos = strpos($postit, '<td class="plain"', $position);
......@@ -567,7 +569,9 @@ class PICA extends DAIA
$position = strpos(
$postit_lol, '<td class="value-small">bestellt</td>', $position + 1
);
$pos = strpos($postit_lol, '<td class="value-small">', ($position - 100));
$pos = strpos(
$postit_lol, '<td class="value-small">', ($position - 100)
);
$nextClosingTd = strpos($postit_lol, '</td>', $pos);
$value = substr($postit_lol, $pos + 27, ($nextClosingTd - $pos - 27));
$ppns[] = $this->getPpnByBarcode($value);
......
......@@ -99,7 +99,8 @@ class Record extends AbstractBase
'source' => $source
];
// Insert sort (limit to listLength)
for ($i = 0;$i < $listLength - 1 && $i < count($reference);$i++) {
$refCount = count($reference);
for ($i = 0; $i < $listLength - 1 && $i < $refCount; $i++) {
if ($count > $reference[$i]['count']) {
// Insert in order
array_splice($reference, $i, 0, [$newRecord]);
......
......@@ -113,7 +113,8 @@ class Search extends AbstractBase
'source' => $source
];
// Insert sort (limit to listLength)
for ($i = 0;$i < $listLength - 1 && $i < count($reference);$i++) {
$refCount = count($reference);
for ($i = 0; $i < $listLength - 1 && $i < $refCount; $i++) {
if ($count > $reference[$i]['count']) {
// Insert in order
array_splice($reference, $i, 0, [$newRecord]);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment