Completed
Pull Request — master (#75)
by
unknown
02:49 queued 01:15
created
src/Observers/ClearCategoryObserver.php 3 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Observers/ClearUrlRewriteObserver.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Repositories/CategoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.