Skip to content

Commit 44f206c

Browse files
committed
ACP2E-3712: fix file formatting
1 parent 25dfefe commit 44f206c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

setup/src/Magento/Setup/Test/Unit/Model/UninstallCollectorTest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,34 @@ class FunctionOverrides
131131
* @var bool
132132
*/
133133
private static bool $enabled = false;
134+
135+
/**
136+
* Check if the function overrides are enabled
137+
*
138+
* @return void
139+
*/
134140
public static function enable(): void
135141
{
136142
self::$enabled = true;
137143
}
144+
145+
/**
146+
* Check if the function overrides are disabled
147+
*
148+
* @return void
149+
*/
138150
public static function disable(): void
139151
{
140152
self::$enabled = false;
141153
}
154+
155+
/**
156+
* Check if the object is a subclass of the given class name
157+
*
158+
* @param $obj
159+
* @param $className
160+
* @return bool
161+
*/
142162
public static function is_subclass_of($obj, $className): bool
143163
{
144164
if (!self::$enabled) {
@@ -152,6 +172,13 @@ public static function is_subclass_of($obj, $className): bool
152172
}
153173
return false;
154174
}
175+
176+
/**
177+
* Check if the class exists of the given class name
178+
*
179+
* @param $className
180+
* @return bool
181+
*/
155182
public static function class_exists($className): bool
156183
{
157184
if (!self::$enabled) {

0 commit comments

Comments
 (0)