mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix data provider.
This commit is contained in:
parent
10a284848b
commit
73104aae1f
@ -35,13 +35,13 @@ class BillObserver
|
|||||||
{
|
{
|
||||||
public function created(Bill $bill): void
|
public function created(Bill $bill): void
|
||||||
{
|
{
|
||||||
Log::debug('Observe "created" of a bill.');
|
// Log::debug('Observe "created" of a bill.');
|
||||||
$this->updateNativeAmount($bill);
|
$this->updateNativeAmount($bill);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deleting(Bill $bill): void
|
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) {
|
foreach ($bill->attachments()->get() as $attachment) {
|
||||||
$attachment->delete();
|
$attachment->delete();
|
||||||
}
|
}
|
||||||
@ -50,7 +50,7 @@ class BillObserver
|
|||||||
|
|
||||||
public function updated(Bill $bill): void
|
public function updated(Bill $bill): void
|
||||||
{
|
{
|
||||||
Log::debug('Observe "updated" of a bill.');
|
// Log::debug('Observe "updated" of a bill.');
|
||||||
$this->updateNativeAmount($bill);
|
$this->updateNativeAmount($bill);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ class Navigation
|
|||||||
{
|
{
|
||||||
$format = 'Y-m-d';
|
$format = 'Y-m-d';
|
||||||
$diff = $start->diffInMonths($end, true);
|
$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) {
|
if ($diff >= 1.001) {
|
||||||
// Log::debug(sprintf('Return Y-m because %s', $diff));
|
// Log::debug(sprintf('Return Y-m because %s', $diff));
|
||||||
$format = 'Y-m';
|
$format = 'Y-m';
|
||||||
|
@ -15,7 +15,7 @@ abstract class AbstractQueryParserInterfaceParseQueryTest extends TestCase
|
|||||||
{
|
{
|
||||||
abstract protected function createParser(): QueryParserInterface;
|
abstract protected function createParser(): QueryParserInterface;
|
||||||
|
|
||||||
public function queryDataProvider(): array
|
public static function queryDataProvider(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'empty query' => [
|
'empty query' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user