Completed
Push — 17.x ( 4bb219...e476be )
by Tim
01:50
created
src/Plugins/ChildrenCountPlugin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
     /**
143 143
      * Return's the configured processor instance.
144 144
      *
145
-     * @return object The processor instance
145
+     * @return CategoryProcessorInterface The processor instance
146 146
      * @throws \Exception Is thrown, if no processor factory has been configured
147 147
      */
148 148
     protected function getProcessor()
Please login to merge, or discard this patch.
src/Observers/ClearImageObserver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      *
117 117
      * @param string $attributeCode The attribute code
118 118
      *
119
-     * @return array The array with the EAV attribute
119
+     * @return integer The array with the EAV attribute
120 120
      * @throws \Exception Is thrown if the attribute with the passed code is not available
121 121
      */
122 122
     protected function getEavAttributeByAttributeCode($attributeCode)
Please login to merge, or discard this patch.
src/Services/CategoryBunchProcessor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@
 block discarded – undo
290 290
      * Commits a transaction, returning the database connection to autocommit mode until the next call to
291 291
      * ProductProcessor::beginTransaction() starts a new transaction.
292 292
      *
293
-     * @return boolean Returns TRUE on success or FALSE on failure
293
+     * @return boolean|null Returns TRUE on success or FALSE on failure
294 294
      * @link http://php.net/manual/en/pdo.commit.php
295 295
      */
296 296
     public function commit()
Please login to merge, or discard this patch.
src/Subjects/BunchSubject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
     {
198 198
 
199 199
         // explode the path of the root category
200
-        list ($rootCategoryPath, ) = explode('/', $path);
200
+        list ($rootCategoryPath,) = explode('/', $path);
201 201
 
202 202
         // query whether or not a root category with the given path exists
203 203
         if ($rootCategory = $this->getCategoryByPath($rootCategoryPath)) {
Please login to merge, or discard this patch.
src/Subjects/AbstractCategorySubject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -303,7 +303,7 @@
 block discarded – undo
303 303
 
304 304
         // load the global data we've prepared initially
305 305
         $this->taxClasses = $status[RegistryKeys::GLOBAL_DATA][RegistryKeys::TAX_CLASSES];
306
-        $this->storeWebsites =  $status[RegistryKeys::GLOBAL_DATA][RegistryKeys::STORE_WEBSITES];
306
+        $this->storeWebsites = $status[RegistryKeys::GLOBAL_DATA][RegistryKeys::STORE_WEBSITES];
307 307
 
308 308
         // load the categories for the admin store view from the global data
309 309
         $this->categories = $status[RegistryKeys::GLOBAL_DATA][RegistryKeys::CATEGORIES][StoreViewCodes::ADMIN];
Please login to merge, or discard this patch.
RoboFile.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -18,10 +18,6 @@
 block discarded – undo
18 18
  * @link      http://www.techdivision.com
19 19
  */
20 20
 
21
-use Lurker\Event\FilesystemEvent;
22
-
23
-use Symfony\Component\Finder\Finder;
24
-
25 21
 /**
26 22
  * Defines the available build tasks.
27 23
  *
Please login to merge, or discard this patch.
src/Listeners/SortCategoryListener.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,10 +76,9 @@
 block discarded – undo
76 76
             $categories = array_shift($artefacts[CopyCategoryObserver::ARTEFACT_TYPE]);
77 77
 
78 78
             // sort them by the path + store_view_code
79
-            usort($categories, function ($a, $b) {
79
+            usort($categories, function($a, $b) {
80 80
                 return
81
-                    strcmp($a[ColumnKeys::PATH], $b[ColumnKeys::PATH]) ?:
82
-                    strcmp($a[ColumnKeys::STORE_VIEW_CODE], $b[ColumnKeys::STORE_VIEW_CODE]);
81
+                    strcmp($a[ColumnKeys::PATH], $b[ColumnKeys::PATH]) ?: strcmp($a[ColumnKeys::STORE_VIEW_CODE], $b[ColumnKeys::STORE_VIEW_CODE]);
83 82
             });
84 83
 
85 84
             // replace the artefacts to be exported later
Please login to merge, or discard this patch.