Completed
Push — master ( c61dd9...791f1f )
by Thierry
01:36
created
src/Response/Plugin/JQuery/Dom/Element.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
         $this->aCalls = [];
59 59
 
60 60
         $jQueryNs = jaxon()->getOption('core.jquery.no_conflict', false) ? 'jQuery' : '$';
61
-        if(!$sSelector)
61
+        if (!$sSelector)
62 62
         {
63 63
             $this->sSelector = "$jQueryNs(this)"; // If an empty selector is given, use javascript "this" instead
64 64
         }
65
-        elseif(($sContext))
65
+        elseif (($sContext))
66 66
         {
67 67
             $this->sSelector = "$jQueryNs('" . $sSelector . "', $jQueryNs('" . $sContext . "'))";
68 68
         }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function getScript()
120 120
     {
121
-        if(count($this->aCalls) == 0)
121
+        if (count($this->aCalls) == 0)
122 122
         {
123 123
             return $this->sSelector;
124 124
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,12 +57,10 @@
 block discarded – undo
57 57
         if(!$sSelector)
58 58
         {
59 59
             $this->sSelector = "$jQueryNs(this)"; // If an empty selector is given, use javascript "this" instead
60
-        }
61
-        elseif(($sContext))
60
+        } elseif(($sContext))
62 61
         {
63 62
             $this->sSelector = "$jQueryNs('" . $sSelector . "', $jQueryNs('" . $sContext . "'))";
64
-        }
65
-        else
63
+        } else
66 64
         {
67 65
             $this->sSelector = "$jQueryNs('" . $sSelector . "')";
68 66
         }
Please login to merge, or discard this patch.
src/Utils/Template/Renderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function render($sPath, array $aVars = [])
28 28
     {
29 29
         // Make the template vars available as attributes
30
-        foreach($aVars as $sName => $xValue)
30
+        foreach ($aVars as $sName => $xValue)
31 31
         {
32 32
             $sName = (string)$sName;
33 33
             $this->$sName = $xValue;
Please login to merge, or discard this patch.
src/Utils/Config/Config.php 1 patch
Spacing   +9 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
         $sPrefix = trim((string)$sPrefix);
51 51
         $nDepth = intval($nDepth);
52 52
         // Check the max depth
53
-        if($nDepth < 0 || $nDepth > 9)
53
+        if ($nDepth < 0 || $nDepth > 9)
54 54
         {
55 55
             throw new \Jaxon\Exception\Config\Data(jaxon_trans('config.errors.data.depth',
56 56
                 array('key' => $sPrefix, 'depth' => $nDepth)));
57 57
         }
58
-        foreach($aOptions as $sName => $xOption)
58
+        foreach ($aOptions as $sName => $xOption)
59 59
         {
60
-            if(is_int($sName))
60
+            if (is_int($sName))
61 61
             {
62 62
                 continue;
63 63
             }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             // Save the value of this option
68 68
             $this->aOptions[$sFullName] = $xOption;
69 69
             // Save the values of its sub-options
70
-            if(is_array($xOption))
70
+            if (is_array($xOption))
71 71
             {
72 72
                 // Recursively read the options in the array
73 73
                 $this->_setOptions($xOption, $sFullName, $nDepth + 1);
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
         $aKeys = explode('.', (string)$sKeys);
90 90
         foreach ($aKeys as $sKey)
91 91
         {
92
-            if(($sKey))
92
+            if (($sKey))
93 93
             {
94
-                if(!array_key_exists($sKey, $aOptions) || !is_array($aOptions[$sKey]))
94
+                if (!array_key_exists($sKey, $aOptions) || !is_array($aOptions[$sKey]))
95 95
                 {
96 96
                     return;
97 97
                 }
@@ -139,13 +139,12 @@  discard block
 block discarded – undo
139 139
         $sPrefix = rtrim($sPrefix, '.') . '.';
140 140
         $sPrefixLen = strlen($sPrefix);
141 141
         $aOptions = [];
142
-        foreach($this->aOptions as $sName => $xValue)
142
+        foreach ($this->aOptions as $sName => $xValue)
143 143
         {
144
-            if(substr($sName, 0, $sPrefixLen) == $sPrefix)
144
+            if (substr($sName, 0, $sPrefixLen) == $sPrefix)
145 145
             {
146 146
                 $iNextDotPos = strpos($sName, '.', $sPrefixLen);
147
-                $sOptionName = $iNextDotPos === false ? substr($sName, $sPrefixLen) :
148
-                    substr($sName, $sPrefixLen, $iNextDotPos - $sPrefixLen);
147
+                $sOptionName = $iNextDotPos === false ? substr($sName, $sPrefixLen) : substr($sName, $sPrefixLen, $iNextDotPos - $sPrefixLen);
149 148
                 $aOptions[$sOptionName] = $sPrefix . $sOptionName;
150 149
             }
151 150
         }
Please login to merge, or discard this patch.