Skip to content

Commit ca3d19d

Browse files
committed
fix: clean code
1 parent 511c6b0 commit ca3d19d

File tree

1 file changed

+20
-28
lines changed

1 file changed

+20
-28
lines changed

src/main/kotlin/com/github/xepozz/php_dump/CompositeWindowFactory.kt

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,29 @@ open class CompositeWindowFactory : ToolWindowFactory, DumbAware {
2121
val tokenTreeLayout = TokenTreePanel(project)
2222

2323
contentFactory.apply {
24-
this.createContent(opcodesTerminalLayout, "Opcodes", false).apply {
25-
contentManager.addContent(
26-
this.apply {
27-
this.isPinnable = true
28-
this.isCloseable = false
29-
}
30-
)
24+
createContent(opcodesTerminalLayout, "Opcodes", false).apply {
25+
isPinnable = true
26+
isCloseable = false
27+
28+
contentManager.addContent(this)
3129
}
32-
this.createContent(opcodesSettingsLayout, "Opcache", false).apply {
33-
contentManager.addContent(
34-
this.apply {
35-
this.isPinnable = true
36-
this.isCloseable = false
37-
}
38-
)
30+
createContent(opcodesSettingsLayout, "Opcache", false).apply {
31+
isPinnable = true
32+
isCloseable = false
33+
34+
contentManager.addContent(this)
3935
}
40-
this.createContent(tokensTerminalLayout, "Plain Tokens", false).apply {
41-
contentManager.addContent(
42-
this.apply {
43-
this.isPinnable = true
44-
this.isCloseable = false
45-
}
46-
)
36+
createContent(tokensTerminalLayout, "Plain Tokens", false).apply {
37+
isPinnable = true
38+
isCloseable = false
39+
40+
contentManager.addContent(this)
4741
}
48-
this.createContent(tokenTreeLayout.component, "Tokens Tree", false).apply {
49-
contentManager.addContent(
50-
this.apply {
51-
this.isPinnable = true
52-
this.isCloseable = false
53-
}
54-
)
42+
createContent(tokenTreeLayout.component, "Tokens Tree", false).apply {
43+
isPinnable = true
44+
isCloseable = false
45+
46+
contentManager.addContent(this)
5547
}
5648
}
5749
}

0 commit comments

Comments
 (0)