Completed
Branch master (9776d3)
by Jeroen
02:22
created
Modules/MediaLibraryImporter/Domain/MediaItemImport/MediaItemImport.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     protected $errorMessage;
113 113
 
114 114
     /**
115
-     * @param MediaGroup $mediaGroup
115
+     * @param MediaGroup|null $mediaGroup
116 116
      * @param string $path
117 117
      * @param int $sequence
118 118
      * @param Method $method
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     }
169 169
 
170 170
     /**
171
-     * @param MediaItem $mediaItem
171
+     * @param MediaItem|null $mediaItem
172 172
      */
173 173
     public function changeStatusToExisting(MediaItem $mediaItem)
174 174
     {
Please login to merge, or discard this patch.
src/Backend/Modules/MediaLibraryImporter/Component/ImportResults.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,17 +51,17 @@
 block discarded – undo
51 51
 
52 52
     public function bumpNumberOfErrorImports()
53 53
     {
54
-        $this->numberOfErrorImports ++;
54
+        $this->numberOfErrorImports++;
55 55
     }
56 56
 
57 57
     public function bumpNumberOfImportedItems()
58 58
     {
59
-        $this->numberOfImportedItems ++;
59
+        $this->numberOfImportedItems++;
60 60
     }
61 61
 
62 62
     public function bumpNumberOfSuccessfulImports()
63 63
     {
64
-        $this->numberOfSuccessfulImports ++;
64
+        $this->numberOfSuccessfulImports++;
65 65
     }
66 66
 
67 67
     /**
Please login to merge, or discard this patch.
src/Backend/Modules/MediaLibraryImporter/Component/MediaGroupToUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
         // When status == "existing", but sequence of MediaGroupMediaItem has changed
81 81
         if ($mediaItemImport->getStatus()->isExisting()) {
82
-            $arrayWithChanges = $this->mediaGroup->getConnectedItems()->filter(function (MediaGroupMediaItem $connectedItem) use ($mediaItemImport) {
82
+            $arrayWithChanges = $this->mediaGroup->getConnectedItems()->filter(function(MediaGroupMediaItem $connectedItem) use ($mediaItemImport) {
83 83
                 if ($connectedItem->getItem()->getId() !== $mediaItemImport->getMediaItem()->getId()) {
84 84
                     return false;
85 85
                 }
Please login to merge, or discard this patch.