Added PHP7 return type statements.

This commit is contained in:
James Cole
2016-02-06 10:11:06 +01:00
parent c9b56efaaa
commit 466067bd95
12 changed files with 169 additions and 108 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class AccountList implements BinderInterface
*
* @return Collection
*/
public static function routeBinder($value, $route)
public static function routeBinder($value, $route): Collection
{
if (Auth::check()) {
+2 -1
View File
@@ -12,6 +12,7 @@ namespace FireflyIII\Support\Binder;
use Auth;
use FireflyIII\Models\Budget;
use Illuminate\Support\Collection;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -29,7 +30,7 @@ class BudgetList implements BinderInterface
*
* @return mixed
*/
public static function routeBinder($value, $route)
public static function routeBinder($value, $route): Collection
{
if (Auth::check()) {
$ids = explode(',', $value);
+2 -1
View File
@@ -12,6 +12,7 @@ namespace FireflyIII\Support\Binder;
use Auth;
use FireflyIII\Models\Category;
use Illuminate\Support\Collection;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
@@ -28,7 +29,7 @@ class CategoryList implements BinderInterface
*
* @return mixed
*/
public static function routeBinder($value, $route)
public static function routeBinder($value, $route): Collection
{
if (Auth::check()) {
$ids = explode(',', $value);
+1 -1
View File
@@ -32,7 +32,7 @@ class Date implements BinderInterface
*
* @return mixed
*/
public static function routeBinder($value, $route)
public static function routeBinder($value, $route): Carbon
{
$fiscalHelper = new FiscalHelper;