mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Add newlines [skip ci]
This commit is contained in:
@@ -296,4 +296,4 @@ class ImportAccount
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -225,4 +225,4 @@ class ImportBill
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -226,4 +226,4 @@ class ImportBudget
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -272,4 +272,4 @@ class ImportJournal
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -154,4 +154,4 @@ class ImportTransaction
|
||||
return round(floatval($value), 12);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user