Changed a lot of parameters.

This commit is contained in:
James Cole
2016-02-05 09:25:15 +01:00
parent 554640c345
commit 78bcd3e1bb
64 changed files with 539 additions and 572 deletions

View File

@@ -49,7 +49,7 @@ class TransactionController extends Controller
*
* @return \Illuminate\View\View
*/
public function create(ARI $repository, $what = TransactionType::DEPOSIT)
public function create(ARI $repository, string $what = TransactionType::DEPOSIT)
{
$what = strtolower($what);
$maxFileSize = Steam::phpBytes(ini_get('upload_max_filesize'));
@@ -211,7 +211,7 @@ class TransactionController extends Controller
*
* @return \Illuminate\View\View
*/
public function index(JournalRepositoryInterface $repository, $what)
public function index(JournalRepositoryInterface $repository, string $what)
{
$subTitleIcon = Config::get('firefly.transactionIconsByWhat.' . $what);
$types = Config::get('firefly.transactionTypesByWhat.' . $what);