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

@@ -36,7 +36,7 @@ class AccountController extends Controller
*
* @return \Illuminate\View\View
*/
public function create($what = 'asset')
public function create(string $what = 'asset')
{
@@ -148,7 +148,7 @@ class AccountController extends Controller
*
* @return \Illuminate\View\View
*/
public function index(ARI $repository, $what)
public function index(ARI $repository, string $what)
{
$subTitle = trans('firefly.' . $what . '_accounts');
$subTitleIcon = Config::get('firefly.subIconsByIdentifier.' . $what);
@@ -275,11 +275,11 @@ class AccountController extends Controller
/**
* @param array $array
* @param $entryId
* @param int $entryId
*
* @return null|mixed
*/
protected function isInArray(array $array, $entryId)
protected function isInArray(array $array, int $entryId)
{
if (isset($array[$entryId])) {
return $array[$entryId];