mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 15:18:41 +00:00
fix tests
This commit is contained in:
parent
94b293e1df
commit
c224fe74d5
|
|
@ -58,7 +58,6 @@ final class Stripe extends PaymentAbstract
|
||||||
*/
|
*/
|
||||||
public function addPaymentMethod(int $customer, mixed $paymentMethod) : void
|
public function addPaymentMethod(int $customer, mixed $paymentMethod) : void
|
||||||
{
|
{
|
||||||
$this->con->paymentMethods->attach();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,9 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper
|
||||||
}
|
}
|
||||||
|
|
||||||
$columns = \count($titles);
|
$columns = \count($titles);
|
||||||
|
if ($columns === 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// insert data
|
// insert data
|
||||||
$query = new Builder($this->con);
|
$query = new Builder($this->con);
|
||||||
|
|
@ -208,10 +211,13 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper
|
||||||
}
|
}
|
||||||
|
|
||||||
$columns = \count($titles);
|
$columns = \count($titles);
|
||||||
|
if ($columns === 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// update data
|
// update data
|
||||||
$line = 2;
|
$line = 2;
|
||||||
while (!empty($row = $workSheet->getCell('A' . $line)->getCalculatedValue())) {
|
while (!empty($workSheet->getCell('A' . $line)->getCalculatedValue())) {
|
||||||
$query = new Builder($this->con);
|
$query = new Builder($this->con);
|
||||||
$query->update($table)->into($table);
|
$query->update($table)->into($table);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user