Some optimisations.

This commit is contained in:
James Cole 2015-05-26 20:28:18 +02:00
parent f733216fcb
commit 9ad8b1a980
5 changed files with 6 additions and 5 deletions

View File

@ -36,7 +36,7 @@ class Category extends Model
* @param array $fields
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*
* @return Account|null
* @return Category
*/
public static function firstOrCreateEncrypted(array $fields)
{

View File

@ -146,7 +146,7 @@ class BudgetRepository implements BudgetRepositoryInterface
* @param LimitRepetition $repetition
* @param int $take
*
* @return \Illuminate\Pagination\Paginator
* @return LengthAwarePaginator
*/
public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50)
{

View File

@ -5,6 +5,7 @@ namespace FireflyIII\Repositories\Budget;
use Carbon\Carbon;
use FireflyIII\Models\Budget;
use FireflyIII\Models\LimitRepetition;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
/**
@ -89,7 +90,7 @@ interface BudgetRepositoryInterface
* @param LimitRepetition $repetition
* @param int $take
*
* @return \Illuminate\Pagination\Paginator
* @return LengthAwarePaginator
*/
public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50);

View File

@ -62,7 +62,7 @@ class CategoryRepository implements CategoryRepositoryInterface
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
* @return array
*/
public function getCategoriesAndExpensesCorrected($start, $end)
{

View File

@ -38,7 +38,7 @@ interface CategoryRepositoryInterface
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
* @return array
*/
public function getCategoriesAndExpensesCorrected($start, $end);