Add newlines [skip ci]

This commit is contained in:
James Cole
2017-07-07 08:09:42 +02:00
parent dd508dbc49
commit 71a41bc00d
58 changed files with 94 additions and 96 deletions

View File

@@ -296,4 +296,4 @@ class ImportAccount
}
}
}

View File

@@ -225,4 +225,4 @@ class ImportBill
return true;
}
}
}

View File

@@ -226,4 +226,4 @@ class ImportBudget
}
}
}

View File

@@ -30,33 +30,17 @@ class ImportCategory
private $repository;
/** @var User */
private $user;
/**
* @param array $id
*/
public function setId(array $id)
{
$this->id = $id;
}
/**
* ImportCategory constructor.
*/
public function __construct()
{
$this->category = new Category();
$this->category = new Category();
$this->repository = app(CategoryRepositoryInterface::class);
Log::debug('Created ImportCategory.');
}
/**
* @param array $name
*/
public function setName(array $name)
{
$this->name = $name;
}
/**
* @return Category
*/
@@ -68,6 +52,23 @@ class ImportCategory
return $this->category;
}
/**
* @param array $id
*/
public function setId(array $id)
{
$this->id = $id;
}
/**
* @param array $name
*/
public function setName(array $name)
{
$this->name = $name;
}
/**
* @param User $user
*/
@@ -100,7 +101,7 @@ class ImportCategory
if (count($this->name) === 3) {
/** @var Collection $categories */
$categories = $this->repository->getCategories();
$name = $this->name['value'];
$name = $this->name['value'];
Log::debug(sprintf('Finding category with name %s', $name));
$filtered = $categories->filter(
function (Category $category) use ($name) {
@@ -219,4 +220,4 @@ class ImportCategory
}
}
}

View File

@@ -53,7 +53,7 @@ class ImportCurrency
}
Log::debug('In createCurrency()');
// check if any of them is mapped:
$mapped = $this->findMappedObject();
$mapped = $this->findMappedObject();
if (!is_null($mapped->id)) {
@@ -215,4 +215,4 @@ class ImportCurrency
}
}
}

View File

@@ -272,4 +272,4 @@ class ImportJournal
break;
}
}
}
}

View File

@@ -154,4 +154,4 @@ class ImportTransaction
return round(floatval($value), 12);
}
}
}