Passed
Push — v4.x ( 3cfa56...f3dffc )
by Thierry
11:17
created
templates/callables/object.js.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 <?php
3 3
 // An exported PHP class can have the same name as a subdir in the same parent dir.
4 4
 // So, we must make sure that embedded js objects do not already exist, before we create them.
5
-if(strpos($sJsClass, '.') !== false): ?>
5
+if (strpos($sJsClass, '.') !== false): ?>
6 6
 if(<?php echo $sJsClass ?> === undefined) {
7 7
     <?php echo $sJsClass ?> = {};
8 8
 }
9 9
 <?php else: ?>
10 10
 <?php echo $sJsClass ?> = {};
11 11
 <?php endif ?>
12
-<?php foreach($this->aMethods as $aMethod): ?>
12
+<?php foreach ($this->aMethods as $aMethod): ?>
13 13
 <?php echo $sJsClass ?>.<?php echo $aMethod['name'] ?> = function() {
14 14
     return jaxon.request({ jxncls: '<?php echo $this->sClass ?>', jxnmthd: '<?php
15 15
         echo $aMethod['name'] ?>' }, { parameters: arguments<?php
16
-        foreach($aMethod['config'] as $sKey => $sValue): ?>, <?php
16
+        foreach ($aMethod['config'] as $sKey => $sValue): ?>, <?php
17 17
         echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> });
18 18
 };
19 19
 <?php endforeach;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,8 @@  discard block
 block discarded – undo
6 6
 if(<?php echo $sJsClass ?> === undefined) {
7 7
     <?php echo $sJsClass ?> = {};
8 8
 }
9
-<?php else: ?>
9
+<?php else {
10
+    : ?>
10 11
 <?php echo $sJsClass ?> = {};
11 12
 <?php endif ?>
12 13
 <?php foreach($this->aMethods as $aMethod): ?>
@@ -17,3 +18,4 @@  discard block
 block discarded – undo
17 18
         echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> });
18 19
 };
19 20
 <?php endforeach;
21
+}
Please login to merge, or discard this patch.