mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-02 21:30:16 +09:00
Apply PHP Code Styling & Quality Changes (#3351)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
This commit is contained in:
1 parent
b093b84924
commit
34e8a10787
4 files changed
+5
-6
No files matched your search
@@ -335,7 +335,7 @@ class Tools
|
||||
error_log(sprintf(
|
||||
'Error fetching external IP from "%s" (%s): %s',
|
||||
$service,
|
||||
get_class($e),
|
||||
$e::class,
|
||||
$e->getMessage()
|
||||
));
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use FOSSBilling\InjectionAwareInterface;
|
||||
|
||||
class ServiceTransaction implements InjectionAwareInterface
|
||||
{
|
||||
private const PROCESSING_RECOVERY_TIMEOUT = 300;
|
||||
private const int PROCESSING_RECOVERY_TIMEOUT = 300;
|
||||
|
||||
protected ?\Pimple\Container $di = null;
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ final class ServiceTransactionTest extends \BBTestCase
|
||||
$this->assertSame(\Model_Transaction::STATUS_RECEIVED, $params['received_status']);
|
||||
$this->assertSame(\Model_Transaction::STATUS_PROCESSING, $params['processing_status']);
|
||||
|
||||
$retryAfter = strtotime($params['processing_retry_after']);
|
||||
$retryAfter = strtotime((string) $params['processing_retry_after']);
|
||||
$this->assertNotFalse($retryAfter);
|
||||
|
||||
$now = time();
|
||||
@@ -110,8 +110,8 @@ final class ServiceTransactionTest extends \BBTestCase
|
||||
$this->assertSame(\Model_Transaction::STATUS_PROCESSED, $params[4]);
|
||||
$this->assertSame(\Model_Transaction::STATUS_PROCESSING, $params[5]);
|
||||
|
||||
$claimedAt = strtotime($params[1]);
|
||||
$retryAfter = strtotime($params[6]);
|
||||
$claimedAt = strtotime((string) $params[1]);
|
||||
$retryAfter = strtotime((string) $params[6]);
|
||||
$this->assertNotFalse($claimedAt);
|
||||
$this->assertNotFalse($retryAfter);
|
||||
$this->assertGreaterThanOrEqual(295, $claimedAt - $retryAfter);
|
||||
|
||||
@@ -223,7 +223,6 @@ final class ServiceTest extends \BBTestCase
|
||||
private function invokeValidateFileUpload(\Symfony\Component\HttpFoundation\File\UploadedFile $file): void
|
||||
{
|
||||
$reflection = new \ReflectionMethod(Service::class, 'validateFileUpload');
|
||||
$reflection->setAccessible(true);
|
||||
$reflection->invoke($this->service, $file);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user