@@ -184,7 +184,6 @@ |
||
| 184 | 184 | /** |
| 185 | 185 | * Return's the category with the passed ID. |
| 186 | 186 | * |
| 187 | - * @param string $id The ID of the category to return |
|
| 188 | 187 | * |
| 189 | 188 | * @return array The category |
| 190 | 189 | */ |
@@ -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 | /** |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $categories = $this->loadCategoriesByPath($category[MemberNames::PATH]); |
| 88 | 88 | |
| 89 | 89 | // First delete category children |
| 90 | - foreach($categories as $categoryChild) { |
|
| 90 | + foreach ($categories as $categoryChild) { |
|
| 91 | 91 | $this->deleteSingleCategory($categoryChild); |
| 92 | 92 | } |
| 93 | 93 | |
@@ -136,7 +136,6 @@ |
||
| 136 | 136 | /** |
| 137 | 137 | * Return's the category with the passed ID. |
| 138 | 138 | * |
| 139 | - * @param string $id The ID of the category to return |
|
| 140 | 139 | * |
| 141 | 140 | * @return array The category |
| 142 | 141 | */ |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use TechDivision\Import\Category\Utils\MemberNames; |
| 25 | 25 | use TechDivision\Import\Category\Utils\SqlStatementKeys; |
| 26 | 26 | use TechDivision\Import\Category\Services\CategoryUrlRewriteProcessorInterface; |
| 27 | -use TechDivision\Import\Exceptions\WrappedColumnException; |
|
| 28 | 27 | |
| 29 | 28 | /** |
| 30 | 29 | * Observer that removes the URL rewrite for the category with the path found in the CSV file. |
@@ -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 | } |