Skip to content

Commit 6faa6a9

Browse files
author
Marcin Kurczewski
committed
Improved indentation
1 parent 7756a04 commit 6faa6a9

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

index.php

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,55 +7,55 @@
77
88
<body>
99
10-
<h1><img src="./html/images/Logo_phpcheckstyle.png"/>&nbsp;PHPCheckstyle</h1>
10+
<h1><img src="./html/images/Logo_phpcheckstyle.png"/>&nbsp;PHPCheckstyle</h1>
1111
12-
<form name="myform" action="runFromWeb.php" method="POST">
12+
<form name="myform" action="runFromWeb.php" method="POST">
1313
14-
<table>
14+
<table>
1515
16-
<tr>
17-
<td>File(s) to analyse <span style="color:red">*</span></td>
18-
<td><input type="text" id="sourceDir" name="sourceDir" value="./test"></input></td>
19-
</tr>
16+
<tr>
17+
<td>File(s) to analyse <span style="color:red">*</span></td>
18+
<td><input type="text" id="sourceDir" name="sourceDir" value="./test"></input></td>
19+
</tr>
2020
21-
<tr>
22-
<td>Destination directory</td>
23-
<td><input type="text" id="resultDir" name ="resultDir" value="./checkstyle_result"></input></td>
24-
</tr>
21+
<tr>
22+
<td>Destination directory</td>
23+
<td><input type="text" id="resultDir" name ="resultDir" value="./checkstyle_result"></input></td>
24+
</tr>
2525
26-
<tr>
27-
<td>Configuration file</td>
28-
<td><input type="text" id="configFile" name ="configFile" value="default.cfg.xml"></input></td>
29-
</tr>
26+
<tr>
27+
<td>Configuration file</td>
28+
<td><input type="text" id="configFile" name ="configFile" value="default.cfg.xml"></input></td>
29+
</tr>
3030
31-
<tr>
32-
<td>Exclude Files or Directories <span style="color:red">*</span></td>
33-
<td><input type="text" id="excludeFile" name ="excludeFile" value=""></input></td>
34-
</tr>
31+
<tr>
32+
<td>Exclude Files or Directories <span style="color:red">*</span></td>
33+
<td><input type="text" id="excludeFile" name ="excludeFile" value=""></input></td>
34+
</tr>
3535
36-
<tr>
37-
<td>Language</td>
38-
<td>
39-
<input type="select" id="lang" name ="lang">
40-
<option value="en-us">English</option>
41-
<option value="fr-fr">Français</option>
42-
</input>
43-
</td>
44-
</tr>
36+
<tr>
37+
<td>Language</td>
38+
<td>
39+
<input type="select" id="lang" name ="lang">
40+
<option value="en-us">English</option>
41+
<option value="fr-fr">Français</option>
42+
</input>
43+
</td>
44+
</tr>
4545
46-
</table>
46+
</table>
4747
48-
<br/>
49-
<br/>
48+
<br/>
49+
<br/>
5050
51-
<input type="submit" value="Run"></input>
51+
<input type="submit" value="Run"></input>
5252
53-
<br/>
54-
<br/>
53+
<br/>
54+
<br/>
5555
56-
</form>
56+
</form>
5757
58-
<i><span style="color:red">*</span> Multiple filenames or directory names can be added, comma separated.</i>
58+
<i><span style="color:red">*</span> Multiple filenames or directory names can be added, comma separated.</i>
5959
6060
</body>
6161

run.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ function usage() {
1818
echo " --debug [Optional] Add some debug logs (warning, very verbose)'.\n";
1919
echo " --linecount [Optional] Generate a report on the number of lines of code (JavaNCSS format)'.\n";
2020
echo " --progress [Optional] Prints a message noting the file and every line that is covered by PHPCheckStyle.\n";
21-
echo " --lang [Optional] Language file to use for the result (en-us by default).\n";
22-
echo " --quiet [Optional] Quiet mode.\n";
21+
echo " --lang [Optional] Language file to use for the result (en-us by default).\n";
22+
echo " --quiet [Optional] Quiet mode.\n";
2323
echo " --help Display this usage information.\n";
2424
exit();
2525
}

src/PHPCheckstyle/PHPCheckstyle.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ class PHPCheckstyle {
7878
private $_isLineStart = true; // Start of a line (just after a return)
7979

8080
// Indicate if we are in a control statement declaration (for, if, while, ...)
81-
// The control statement starts just after the statement token
82-
// and stops at the closing of the parenthesis or the new line if no parenthesis is used
81+
// The control statement starts just after the statement token
82+
// and stops at the closing of the parenthesis or the new line if no parenthesis is used
8383
private $_inControlStatement = false;
8484

8585
private $_inString = false; // We are inside a string (only happens with T_ENCAPSED_AND_WHITESPACE)
@@ -1085,7 +1085,7 @@ private function _processMinus($token) {
10851085
$this->_checkWhiteSpaceBefore($token->text);
10861086
}
10871087
// We allow some '-' signs to skip the the space afterwards for negative numbers
1088-
if (!($this->tokenizer->checkNextToken(T_LNUMBER) || // float number
1088+
if (!($this->tokenizer->checkNextToken(T_LNUMBER) || // float number
10891089
$this->tokenizer->checkNextToken(T_DNUMBER))) {
10901090
// integer
10911091
$this->_checkWhiteSpaceAfter($token->text);

0 commit comments

Comments
 (0)