mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58: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
|
||||
{
|
||||
$this->con->paymentMethods->attach();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -92,6 +92,9 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper
|
|||
}
|
||||
|
||||
$columns = \count($titles);
|
||||
if ($columns === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// insert data
|
||||
$query = new Builder($this->con);
|
||||
|
|
@ -208,10 +211,13 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper
|
|||
}
|
||||
|
||||
$columns = \count($titles);
|
||||
if ($columns === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// update data
|
||||
$line = 2;
|
||||
while (!empty($row = $workSheet->getCell('A' . $line)->getCalculatedValue())) {
|
||||
while (!empty($workSheet->getCell('A' . $line)->getCalculatedValue())) {
|
||||
$query = new Builder($this->con);
|
||||
$query->update($table)->into($table);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user