Skip to content

Commit 866e22b

Browse files
committed
Split custom parameters with whitespace #35
1 parent 89213cb commit 866e22b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/org/netbeans/modules/php/phpcsfixer/options/PhpCsFixerOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public List<String> getAllOptions() {
252252
}
253253
}
254254
if (useCustom() && !getCustom().isEmpty()) {
255-
all.add(getCustom());
255+
all.addAll(StringUtils.explode(getCustom(), " ")); // NOI18N
256256
}
257257

258258
return all;

src/org/netbeans/modules/php/phpcsfixer/preferences/PhpCsFixerPreferences.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.util.List;
2020
import java.util.prefs.Preferences;
2121
import org.netbeans.modules.php.api.phpmodule.PhpModule;
22+
import org.netbeans.modules.php.api.util.StringUtils;
2223
import org.netbeans.modules.php.phpcsfixer.commands.PhpCsFixer;
2324
import static org.netbeans.modules.php.phpcsfixer.options.PhpCsFixerOptions.LATEST_VERSION;
2425

@@ -213,7 +214,7 @@ public static List<String> getAllOptions(PhpModule phpModule) {
213214
}
214215
}
215216
if (useCustom(phpModule) && !getCustom(phpModule).isEmpty()) {
216-
all.add(getCustom(phpModule));
217+
all.addAll(StringUtils.explode(getCustom(phpModule), " ")); // NOI18N
217218
}
218219
return all;
219220
}

0 commit comments

Comments
 (0)