@@ -245,7 +245,7 @@ public function revertDataPatches($moduleName = null)
245
245
'\\' . $ dataPatch ,
246
246
['moduleDataSetup ' => $ this ->moduleDataSetup ]
247
247
);
248
- if ($ dataPatch instanceof PatchRevertableInterface && $ this -> isApplied ( $ dataPatch ) ) {
248
+ if ($ dataPatch instanceof PatchRevertableInterface) {
249
249
try {
250
250
$ adapter ->beginTransaction ();
251
251
/** @var PatchRevertableInterface|DataPatchInterface $dataPatch */
@@ -269,7 +269,7 @@ public function revertDataPatches($moduleName = null)
269
269
* @param string $patchType
270
270
* @return PatchRegistry
271
271
*/
272
- private function prepareRegistry ($ moduleName , $ patchType )
272
+ private function prepareRegistry (string $ moduleName , string $ patchType ): PatchRegistry
273
273
{
274
274
$ reader = $ patchType === self ::DATA_PATCH ? $ this ->dataPatchReader : $ this ->schemaPatchReader ;
275
275
$ registry = $ this ->patchRegistryFactory ->create ();
@@ -293,6 +293,8 @@ private function prepareRegistry($moduleName, $patchType)
293
293
294
294
/**
295
295
* Apply the given patch. The patch is and its aliases are added to the history.
296
+ *
297
+ * @param PatchInterface $patch
296
298
*/
297
299
private function applyPatch (PatchInterface $ patch ): void
298
300
{
@@ -307,6 +309,8 @@ private function applyPatch(PatchInterface $patch): void
307
309
308
310
/**
309
311
* Check wether the given patch or any of its aliases are already applied or not.
312
+ *
313
+ * @param PatchInterface $patch
310
314
*/
311
315
private function isApplied (PatchInterface $ patch ): bool
312
316
{
0 commit comments