@@ -22,7 +22,6 @@ |
||
22 | 22 | |
23 | 23 | use TechDivision\Import\Category\Utils\ColumnKeys; |
24 | 24 | use TechDivision\Import\Category\Utils\MemberNames; |
25 | -use TechDivision\Import\Category\Utils\SqlStatementKeys; |
|
26 | 25 | use TechDivision\Import\Category\Services\CategoryBunchProcessorInterface; |
27 | 26 | |
28 | 27 | /** |
@@ -123,7 +123,7 @@ |
||
123 | 123 | public function findAllByPath($path) |
124 | 124 | { |
125 | 125 | // load and return the categories with the passed path |
126 | - $this->categoryByPathChildrenStmt->execute(array(MemberNames::PATH => $path.'/%')); |
|
126 | + $this->categoryByPathChildrenStmt->execute(array(MemberNames::PATH => $path . '/%')); |
|
127 | 127 | $result = $this->categoryByPathChildrenStmt->fetchAll(\PDO::FETCH_ASSOC); |
128 | 128 | return $result ? $result : []; |
129 | 129 | } |
@@ -176,7 +176,7 @@ |
||
176 | 176 | $this->prepareStoreViewCode(); |
177 | 177 | |
178 | 178 | // explode the path into the category names |
179 | - if ($categories = $this->getValue(ColumnKeys::PATH, array(), function ($value) { |
|
179 | + if ($categories = $this->getValue(ColumnKeys::PATH, array(), function($value) { |
|
180 | 180 | return $this->serializer->explode($value); |
181 | 181 | })) { |
182 | 182 | // initialize the flag to query whether or not the category is a leaf |
@@ -94,7 +94,7 @@ |
||
94 | 94 | */ |
95 | 95 | protected function process() |
96 | 96 | { |
97 | - $this->setValue(ColumnKeys::PATH, $this->getValue(ColumnKeys::PATH, null, function ($value) { |
|
97 | + $this->setValue(ColumnKeys::PATH, $this->getValue(ColumnKeys::PATH, null, function($value) { |
|
98 | 98 | return $this->serializer->normalize($value); |
99 | 99 | })); |
100 | 100 | } |