Complexity cleanup [skip ci]

This commit is contained in:
James Cole
2014-12-31 16:45:12 +01:00
parent 8ec8042045
commit 6fa73ee28d
10 changed files with 92 additions and 104 deletions

View File

@@ -1,6 +1,7 @@
<?php
namespace FireflyIII\Shared\Toolkit;
use Illuminate\Support\Collection;
/**
@@ -13,12 +14,12 @@ class Form
/**
* Takes any collection and tries to make a sensible select list compatible array of it.
*
* @param \Illuminate\Support\Collection $set
* @param bool $addEmpty
* @param Collection $set
* @param bool $addEmpty
*
* @return mixed
*/
public function makeSelectList(\Illuminate\Support\Collection $set, $addEmpty = false)
public function makeSelectList(Collection $set, $addEmpty = false)
{
$selectList = [];
if ($addEmpty) {