Skip to content

Commit dfaf819

Browse files
author
Bohdan Korablov
committed
MAGETWO-38857: Decrease crap
1 parent b2e6eb6 commit dfaf819

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ public function __construct(
185185
}
186186

187187
/**
188+
* Create sub directories if DB storage is used
189+
*
188190
* @param string $path
189191
* @return void
190192
*/
@@ -202,6 +204,8 @@ protected function createSubDirectories($path)
202204
}
203205

204206
/**
207+
* Prepare and get conditions for exclude directories
208+
*
205209
* @return array
206210
*/
207211
protected function getConditionsForExcludeDirs()
@@ -225,6 +229,8 @@ protected function getConditionsForExcludeDirs()
225229
}
226230

227231
/**
232+
* Remove excluded directories from collection
233+
*
228234
* @param \Magento\Framework\Data\Collection\Filesystem $collection
229235
* @param array $conditions
230236
* @return \Magento\Framework\Data\Collection\Filesystem

app/code/Magento/Cms/Test/Unit/Model/Wysiwyg/Images/StorageTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ public function dirsCollectionDataProvider()
415415
}
416416

417417
/**
418+
* General conditions for testGetDirsCollection tests
419+
*
418420
* @param string $path
419421
* @param array $collectionArray
420422
* @param array $expectedRemoveKeys

0 commit comments

Comments
 (0)