Various code cleanup.

This commit is contained in:
James Cole 2017-11-18 05:46:19 +01:00
parent 573e72f7fb
commit 0812901745
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
7 changed files with 15 additions and 3 deletions

View File

@ -85,6 +85,8 @@ class Handler extends ExceptionHandler
* @SuppressWarnings(PHPMD.CyclomaticComplexity) // it's five its fine.
*
* @param \Exception $exception
*
* @return mixed|void
*/
public function report(Exception $exception)
{

View File

@ -74,6 +74,9 @@ class LoginController extends Controller
/**
* Show the application's login form.
*
* @param Request $request
* @param CookieJar $cookieJar
*
* @return \Illuminate\Http\Response
*/
public function showLoginForm(Request $request, CookieJar $cookieJar)

View File

@ -33,6 +33,8 @@ use Response;
class FrontpageController extends Controller
{
/**
* @param PiggyBankRepositoryInterface $repository
*
* @return \Illuminate\Http\JsonResponse
*/
public function piggyBanks(PiggyBankRepositoryInterface $repository)

View File

@ -70,8 +70,10 @@ class NewUserController extends Controller
}
/**
* @param NewUserFormRequest $request
* @param AccountRepositoryInterface $repository
* @param NewUserFormRequest $request
* @param AccountRepositoryInterface $repository
*
* @param CurrencyRepositoryInterface $currencyRepository
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
*/

View File

@ -260,6 +260,7 @@ class ProfileController extends Controller
* @param string $token
* @param string $hash
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
* @throws FireflyException
*/
public function undoEmailChange(string $token, string $hash)

View File

@ -126,7 +126,8 @@ class TransactionController extends Controller
}
/**
* @param Request $request
* @param Request $request
* @param JournalRepositoryInterface $repository
*/
public function reconcile(Request $request, JournalRepositoryInterface $repository)
{

View File

@ -264,6 +264,7 @@ class JournalRepository implements JournalRepositoryInterface
$this->storeBudgetWithJournal($journal, $data['budget_id']);
// store two transactions:
$one = [
'journal' => $journal,
'account' => $accounts['source'],