Passed
Push — master ( 119e27...c32e95 )
by Gaetano
08:58
created
doc/build/convert.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 $target = $_SERVER['argv'][3];
17 17
 
18 18
 if (!file_exists($doc))
19
-  error("KO: file $doc cannot be found");
19
+    error("KO: file $doc cannot be found");
20 20
 if (!file_exists($xss))
21
-  error("KO: file $xss cannot be found");
21
+    error("KO: file $xss cannot be found");
22 22
 
23 23
 info("Starting xsl conversion process...");
24 24
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  * @todo rename to something akin to xsltproc
8 8
  */
9 9
 
10
-if ($_SERVER['argc'] < 4) {
10
+if ($_SERVER['argc']<4) {
11 11
     error("Usage: php convert.php docbook.xml stylesheet.xsl output-dir|output_file");
12 12
 }
13 13
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,12 @@
 block discarded – undo
15 15
 $xss = $_SERVER['argv'][2];
16 16
 $target = $_SERVER['argv'][3];
17 17
 
18
-if (!file_exists($doc))
18
+if (!file_exists($doc)) {
19 19
   error("KO: file $doc cannot be found");
20
-if (!file_exists($xss))
20
+}
21
+if (!file_exists($xss)) {
21 22
   error("KO: file $xss cannot be found");
23
+}
22 24
 
23 25
 info("Starting xsl conversion process...");
24 26
 
Please login to merge, or discard this patch.