Fix data provider.

This commit is contained in:
James Cole 2025-01-05 07:52:23 +01:00
parent 10a284848b
commit 73104aae1f
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
3 changed files with 5 additions and 5 deletions

View File

@ -35,13 +35,13 @@ class BillObserver
{
public function created(Bill $bill): void
{
Log::debug('Observe "created" of a bill.');
// Log::debug('Observe "created" of a bill.');
$this->updateNativeAmount($bill);
}
public function deleting(Bill $bill): void
{
app('log')->debug('Observe "deleting" of a bill.');
// app('log')->debug('Observe "deleting" of a bill.');
foreach ($bill->attachments()->get() as $attachment) {
$attachment->delete();
}
@ -50,7 +50,7 @@ class BillObserver
public function updated(Bill $bill): void
{
Log::debug('Observe "updated" of a bill.');
// Log::debug('Observe "updated" of a bill.');
$this->updateNativeAmount($bill);
}

View File

@ -505,7 +505,7 @@ class Navigation
{
$format = 'Y-m-d';
$diff = $start->diffInMonths($end, true);
Log::debug(sprintf('preferredCarbonFormat(%s, %s) = %f', $start->format('Y-m-d'), $end->format('Y-m-d'), $diff));
//Log::debug(sprintf('preferredCarbonFormat(%s, %s) = %f', $start->format('Y-m-d'), $end->format('Y-m-d'), $diff));
if ($diff >= 1.001) {
// Log::debug(sprintf('Return Y-m because %s', $diff));
$format = 'Y-m';

View File

@ -15,7 +15,7 @@ abstract class AbstractQueryParserInterfaceParseQueryTest extends TestCase
{
abstract protected function createParser(): QueryParserInterface;
public function queryDataProvider(): array
public static function queryDataProvider(): array
{
return [
'empty query' => [