Skip to content

Commit 5edebd7

Browse files
author
Robert He
committed
MAGETWO-89659: Address comments / feedback from review
- fix bugs and stylings
1 parent abca375 commit 5edebd7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

app/code/Magento/Ui/Model/ColorPicker/ColorModesProvider.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,8 @@ public function getModes(): array
5858
*/
5959
private function createModeProvider(string $instance): ModeInterface
6060
{
61-
if (!is_subclass_of(
62-
$instance,
63-
ModeInterface::class
64-
)
65-
) {
66-
throw new \InvalidArgumentException(
67-
$instance .
68-
' does not implement ' .
69-
ModeInterface::class
70-
);
61+
if (!is_subclass_of($instance, ModeInterface::class)) {
62+
throw new \InvalidArgumentException($instance . ' does not implement ' . ModeInterface::class);
7163
}
7264
return $this->objectManager->create($instance);
7365
}

0 commit comments

Comments
 (0)