Completed
Push — master ( f0db75...7c3232 )
by Thierry
01:47
created
templates/pagination/wrapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <ul class="pagination">
2 2
 <?php
3
-    if(($this->prev))
3
+    if (($this->prev))
4 4
     {
5 5
         echo $this->prev;
6 6
     }
7 7
     echo $this->links;
8
-    if(($this->next))
8
+    if (($this->next))
9 9
     {
10 10
         echo $this->next;
11 11
     }
Please login to merge, or discard this patch.
templates/support/function.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php echo $this->sPrefix ?><?php echo $this->sAlias ?> = function() {
2 2
     return jaxon.request(
3 3
         { jxnfun: '<?php echo $this->sFunction ?>' },
4
-        { parameters: arguments<?php foreach($this->aConfig as $sKey => $sValue): ?>, <?php echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> }
4
+        { parameters: arguments<?php foreach ($this->aConfig as $sKey => $sValue): ?>, <?php echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> }
5 5
     );
6 6
 };
Please login to merge, or discard this patch.
templates/support/object.js.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php echo $this->sPrefix ?><?php echo $this->sClass ?> = {};
2
-<?php foreach($this->aMethods as $aMethod): ?>
2
+<?php foreach ($this->aMethods as $aMethod): ?>
3 3
 <?php echo $this->sPrefix ?><?php echo $this->sClass ?>.<?php echo $aMethod['name'] ?> = function() {
4 4
     return jaxon.request(
5 5
         { jxncls: '<?php echo $this->sClass ?>', jxnmthd: '<?php echo $aMethod['name'] ?>' },
6
-        { parameters: arguments<?php foreach($aMethod['config'] as $sKey => $sValue): ?>, <?php echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> }
6
+        { parameters: arguments<?php foreach ($aMethod['config'] as $sKey => $sValue): ?>, <?php echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> }
7 7
     );
8 8
 };
9 9
 <?php endforeach ?>
Please login to merge, or discard this patch.
templates/support/event.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php echo $this->sPrefix ?><?php echo $this->sEvent ?> = function() {
2 2
     return jaxon.request(
3 3
         { jxnevt: '<?php echo $this->sEvent ?>' },
4
-        { parameters: arguments<?php if(($this->sMode)): ?>, mode: '<?php echo $this->sMode ?>'<?php endif ?><?php if(($this->sMethod)): ?>, method: '<?php echo $this->sMethod ?>'<?php endif ?> }
4
+        { parameters: arguments<?php if (($this->sMode)): ?>, mode: '<?php echo $this->sMode ?>'<?php endif ?><?php if (($this->sMethod)): ?>, method: '<?php echo $this->sMethod ?>'<?php endif ?> }
5 5
     );
6 6
 };
Please login to merge, or discard this patch.
templates/plugins/includes.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1
-<?php foreach($this->aUrls as $sUrl): ?>
1
+<?php foreach ($this->aUrls as $sUrl): ?>
2 2
 <script type="text/javascript" src="<?php echo $sUrl ?>" <?php echo $this->sJsOptions ?> charset="UTF-8"></script>
3 3
 <?php endforeach ?>
Please login to merge, or discard this patch.
templates/plugins/config.js.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
 jaxon.config.defaultMode = "<?php echo $this->sDefaultMode ?>";
15 15
 jaxon.config.defaultMethod = "<?php echo $this->sDefaultMethod ?>";
16 16
 jaxon.config.responseType = "<?php echo $this->sResponseType ?>";
17
-<?php if($this->nResponseQueueSize > 0): ?>
17
+<?php if ($this->nResponseQueueSize > 0): ?>
18 18
 jaxon.config.responseQueueSize = <?php echo $this->nResponseQueueSize ?>;
19 19
 <?php endif ?>
20
-<?php if(($this->bDebug) && ($this->sDebugOutputID)): ?>
20
+<?php if (($this->bDebug) && ($this->sDebugOutputID)): ?>
21 21
 jaxon.debug = {};
22 22
 jaxon.debug.outputID = "<?php echo $this->sDebugOutputID ?>";
23 23
 <?php endif ?>
24
-<?php if(($this->sCsrfMetaName)): ?>
24
+<?php if (($this->sCsrfMetaName)): ?>
25 25
 metaTags = document.getElementsByTagName('meta');
26 26
 for(i = 0; i < metaTags.length; i++)
27 27
 {
Please login to merge, or discard this patch.
templates/plugins/ready.js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 jaxon.dom.ready(function() {
2 2
     jaxon.command.handler.register('cc', jaxon.confirm.commands);
3 3
 
4
-<?php if($this->sPluginScript): ?>
4
+<?php if ($this->sPluginScript): ?>
5 5
 <?php echo $this->sPluginScript ?>
6 6
 <?php endif ?>
7 7
 });
Please login to merge, or discard this patch.
src/Request/Factory.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@  discard block
 block discarded – undo
23 23
      * Return the javascript call to a Jaxon function or object method
24 24
      *
25 25
      * @param string            $sName              The function or method (with class) name
26
-     * @param ...               $xParams            The parameters of the function or method
27 26
      *
28 27
      * @return \Jaxon\Request\Request
29 28
      */
@@ -46,7 +45,6 @@  discard block
 block discarded – undo
46 45
      * Return the javascript call to a generic function
47 46
      *
48 47
      * @param string            $sName              The function or method (with class) name
49
-     * @param ...               $xParams            The parameters of the function or method
50 48
      *
51 49
      * @return \Jaxon\Request\Request
52 50
      */
@@ -70,7 +68,6 @@  discard block
 block discarded – undo
70 68
      * @param integer       $nItemsPerPage          The number of items per page page
71 69
      * @param integer       $nCurrentPage           The current page
72 70
      * @param string        $sMethod                The name of function or a method prepended with its class name
73
-     * @param ...           $xParams                The parameters of the function or method
74 71
      *
75 72
      * @return string the pagination links
76 73
      */
Please login to merge, or discard this patch.
src/Response/Manager.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -71,13 +71,13 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function append(Response $xResponse)
73 73
     {
74
-        if(!$this->xResponse)
74
+        if (!$this->xResponse)
75 75
         {
76 76
             $this->xResponse = $xResponse;
77 77
         }
78
-        else if(get_class($this->xResponse) == get_class($xResponse))
78
+        else if (get_class($this->xResponse) == get_class($xResponse))
79 79
         {
80
-            if($this->xResponse != $xResponse)
80
+            if ($this->xResponse != $xResponse)
81 81
             {
82 82
                 $this->xResponse->appendResponse($xResponse);
83 83
             }
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function printDebug()
112 112
     {
113
-        if(($this->xResponse))
113
+        if (($this->xResponse))
114 114
         {
115
-            foreach($this->aDebugMessages as $sMessage)
115
+            foreach ($this->aDebugMessages as $sMessage)
116 116
             {
117 117
                 $this->xResponse->debug($sMessage);
118 118
             }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function sendHeaders()
129 129
     {
130
-        if(($this->xResponse))
130
+        if (($this->xResponse))
131 131
         {
132 132
             $this->xResponse->sendHeaders();
133 133
         }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function getOutput()
142 142
     {
143
-        if(($this->xResponse))
143
+        if (($this->xResponse))
144 144
         {
145 145
             return $this->xResponse->getOutput();
146 146
         }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function sendOutput()
156 156
     {
157
-        if(($this->xResponse))
157
+        if (($this->xResponse))
158 158
         {
159 159
             $this->xResponse->sendHeaders();
160 160
             $this->xResponse->printOutput();
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,15 +74,13 @@
 block discarded – undo
74 74
         if(!$this->xResponse)
75 75
         {
76 76
             $this->xResponse = $xResponse;
77
-        }
78
-        else if(get_class($this->xResponse) == get_class($xResponse))
77
+        } else if(get_class($this->xResponse) == get_class($xResponse))
79 78
         {
80 79
             if($this->xResponse != $xResponse)
81 80
             {
82 81
                 $this->xResponse->appendResponse($xResponse);
83 82
             }
84
-        }
85
-        else
83
+        } else
86 84
         {
87 85
             $this->debug($this->trans('errors.mismatch.types', array('class' => get_class($xResponse))));
88 86
         }
Please login to merge, or discard this patch.