Some small fixes.

This commit is contained in:
James Cole
2015-06-28 08:42:06 +02:00
parent cbe52b5089
commit c15c45f765
5 changed files with 25 additions and 24 deletions

View File

@@ -81,6 +81,7 @@ class GoogleCategoryChartGenerator implements CategoryChartGenerator
} }
/** /**
* @param Collection $categories
* @param Collection $entries * @param Collection $entries
* *
* @return array * @return array

View File

@@ -104,7 +104,8 @@ class FireflyServiceProvider extends ServiceProvider
//$this->app->bind('FireflyIII\Generator\Chart\Category\CategoryChartGenerator', 'FireflyIII\Generator\Chart\Category\GoogleCategoryChartGenerator'); //$this->app->bind('FireflyIII\Generator\Chart\Category\CategoryChartGenerator', 'FireflyIII\Generator\Chart\Category\GoogleCategoryChartGenerator');
$this->app->bind('FireflyIII\Generator\Chart\Category\CategoryChartGenerator', 'FireflyIII\Generator\Chart\Category\ChartJsCategoryChartGenerator'); $this->app->bind('FireflyIII\Generator\Chart\Category\CategoryChartGenerator', 'FireflyIII\Generator\Chart\Category\ChartJsCategoryChartGenerator');
//$this->app->bind('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator', 'FireflyIII\Generator\Chart\PiggyBank\GooglePiggyBankChartGenerator'); //$this->app->bind('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator',
// 'FireflyIII\Generator\Chart\PiggyBank\GooglePiggyBankChartGenerator');
$this->app->bind('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator', 'FireflyIII\Generator\Chart\PiggyBank\ChartJsPiggyBankChartGenerator'); $this->app->bind('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator', 'FireflyIII\Generator\Chart\PiggyBank\ChartJsPiggyBankChartGenerator');
//$this->app->bind('FireflyIII\Generator\Chart\Report\ReportChartGenerator', 'FireflyIII\Generator\Chart\Report\GoogleReportChartGenerator'); //$this->app->bind('FireflyIII\Generator\Chart\Report\ReportChartGenerator', 'FireflyIII\Generator\Chart\Report\GoogleReportChartGenerator');

View File

@@ -528,9 +528,10 @@ class TestDataSeeder extends Seeder
} }
/** /**
* @param $tag * @param $tagName
* *
* @return Tag|null * @return Tag|null
* @internal param $tag
*/ */
protected function findTag($tagName) protected function findTag($tagName)
{ {

View File

@@ -3,7 +3,6 @@
use Carbon\Carbon; use Carbon\Carbon;
use FireflyIII\Helpers\Report\ReportQuery; use FireflyIII\Helpers\Report\ReportQuery;
use FireflyIII\Models\AccountMeta; use FireflyIII\Models\AccountMeta;
use FireflyIII\Models\Transaction;
use League\FactoryMuffin\Facade as FactoryMuffin; use League\FactoryMuffin\Facade as FactoryMuffin;
/** /**
@@ -95,8 +94,6 @@ class ReportQueryTest extends TestCase
$journal->transactions[1]->save(); $journal->transactions[1]->save();
} }
$this->be($user); $this->be($user);

View File

@@ -81,6 +81,7 @@ class JournalRepositoryTest extends TestCase
// create five journals with incrementing dates: // create five journals with incrementing dates:
$today = new Carbon('2015-01-01'); $today = new Carbon('2015-01-01');
$journal = null;
for ($i = 0; $i < 5; $i++) { for ($i = 0; $i < 5; $i++) {
// create journal: // create journal:
$journal = FactoryMuffin::create('FireflyIII\Models\TransactionJournal'); $journal = FactoryMuffin::create('FireflyIII\Models\TransactionJournal');