Completed
Branch master (013938)
by Thierry
03:54
created
src/JQuery/Dom/Element.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
         $sSelector = trim($sSelector, " \t");
53 53
         $sContext = trim($sContext, " \t");
54 54
         $this->aCalls = array();
55
-        if(!$sSelector)
55
+        if (!$sSelector)
56 56
         {
57 57
             $this->sSelector = "$(this)"; // If an empty selector is given, use javascript "this" instead
58 58
         }
59
-        else if(($sContext))
59
+        else if (($sContext))
60 60
         {
61 61
             $this->sSelector = "$('" . $sSelector . "', $('" . $sContext . "'))";
62 62
         }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function getScript()
114 114
     {
115
-        if(count($this->aCalls) == 0)
115
+        if (count($this->aCalls) == 0)
116 116
         {
117 117
             return $this->sSelector;
118 118
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,12 +55,10 @@
 block discarded – undo
55 55
         if(!$sSelector)
56 56
         {
57 57
             $this->sSelector = "$(this)"; // If an empty selector is given, use javascript "this" instead
58
-        }
59
-        else if(($sContext))
58
+        } else if(($sContext))
60 59
         {
61 60
             $this->sSelector = "$('" . $sSelector . "', $('" . $sContext . "'))";
62
-        }
63
-        else
61
+        } else
64 62
         {
65 63
             $this->sSelector = "$('" . $sSelector . "')";
66 64
         }
Please login to merge, or discard this patch.
src/Response/Manager.php 2 patches
Spacing   +5 added lines, -5 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
                 $this->xResponse->appendResponse($xResponse);
82 82
         }
83 83
         else
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function send()
110 110
     {
111
-        if(($this->xResponse))
111
+        if (($this->xResponse))
112 112
         {
113
-            foreach($this->aDebugMessages as $sMessage)
113
+            foreach ($this->aDebugMessages as $sMessage)
114 114
             {
115 115
                 $this->xResponse->debug($sMessage);
116 116
             }
Please login to merge, or discard this patch.
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,13 +74,12 @@
 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
-            if($this->xResponse != $xResponse)
81
-                $this->xResponse->appendResponse($xResponse);
82
-        }
83
-        else
79
+            if($this->xResponse != $xResponse) {
80
+                            $this->xResponse->appendResponse($xResponse);
81
+            }
82
+        } else
84 83
         {
85 84
             $this->debug($this->trans('errors.mismatch.types', array('class' => get_class($xResponse))));
86 85
         }
Please login to merge, or discard this patch.
src/start.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
  */
62 62
 function rq($classname = null)
63 63
 {
64
-    if(($classname))
64
+    if (($classname))
65 65
     {
66 66
         return jaxon()->sentry()->request($classname);
67 67
     }
Please login to merge, or discard this patch.
src/Plugin/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,11 +80,11 @@
 block discarded – undo
80 80
     protected function includeAssets()
81 81
     {
82 82
         $sPluginOptionName = 'assets.include.' . $this->getName();
83
-        if($this->hasOption($sPluginOptionName) && !$this->getOption($sPluginOptionName))
83
+        if ($this->hasOption($sPluginOptionName) && !$this->getOption($sPluginOptionName))
84 84
         {
85 85
             return false;
86 86
         }
87
-        if($this->hasOption('assets.include.all') && !$this->getOption('assets.include.all'))
87
+        if ($this->hasOption('assets.include.all') && !$this->getOption('assets.include.all'))
88 88
         {
89 89
             return false;
90 90
         }
Please login to merge, or discard this patch.
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.