Skip to content

Commit fa3cee8

Browse files
committed
Fixed var name to be camel case
1 parent e7844ab commit fa3cee8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/rascal/lang/php/util/Config.rsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module lang::php::util::Config
1616
public bool usePhpParserJar = false;
1717

1818
@doc{The location of the PHP executable}
19-
public loc phploc = |file:///usr/local/php5/bin/php|;
19+
public loc phpLoc = |file:///usr/local/php5/bin/php|;
2020

2121
@doc{The base install location for the PHP-Parser project}
2222
public loc parserLoc = |file:///Users/yourid/PHPAnalysis/PHP-Parser|;

src/main/rascal/lang/php/util/Utils.rsc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import lang::php::pp::PrettyPrinter;
3939

4040

4141
public str executePHP(list[str] opts, loc cwd) {
42-
str phpBinLoc = usePhpParserJar ? "php" : phploc.path;
42+
str phpBinLoc = usePhpParserJar ? "php" : phpLoc.path;
4343

4444
PID pid = createProcess(phpBinLoc, args=opts, workingDir=cwd);
4545
str phcOutput = readEntireStream(pid);
@@ -369,16 +369,16 @@ public void checkConfiguration() {
369369
println("astToRascal appears to be fine");
370370
}
371371
372-
println("phploc should contain the location of the php executable");
372+
println("phpLoc should contain the location of the php executable");
373373
374-
if (!exists(phploc)) {
375-
println("Path <phploc> does not exist");
374+
if (!exists(phpLoc)) {
375+
println("Path <phpLoc> does not exist");
376376
checkParse = false;
377-
} else if (exists(phploc) && !isFile(phploc)) {
378-
println("Path <phploc> exists, but is not a file");
377+
} else if (exists(phpLoc) && !isFile(phpLoc)) {
378+
println("Path <phpLoc> exists, but is not a file");
379379
checkParse = false;
380380
} else {
381-
println("phploc appears to be fine");
381+
println("phpLoc appears to be fine");
382382
}
383383
384384
if (checkParse) {

0 commit comments

Comments
 (0)