Passed
Pull Request — master (#329)
by Mirko
07:45
created
htdocs/src/Oc/SmartyPlugins/function.repeat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  *
8 8
  * @return string
9 9
  */
10
-function smarty_function_repeat(array $params, \OcSmarty &$smarty)
10
+function smarty_function_repeat(array $params, \OcSmarty & $smarty)
11 11
 {
12 12
     return str_repeat($params['string'], $params['count']);
13 13
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/function.season.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  *
9 9
  * @return string
10 10
  */
11
-function smarty_function_season(array $params, \OcSmarty &$smarty)
11
+function smarty_function_season(array $params, \OcSmarty & $smarty)
12 12
 {
13 13
     $seasons = [];
14 14
 
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/outputfilter.session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  *
19 19
  * @return string
20 20
  */
21
-function smarty_outputfilter_session($tpl_output, \OcSmarty &$smarty)
21
+function smarty_outputfilter_session($tpl_output, \OcSmarty & $smarty)
22 22
 {
23 23
     return html_insert_sid($tpl_output);
24 24
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/function.array_search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  *
10 10
  * @return string
11 11
  */
12
-function smarty_function_array_search(array $params, \OcSmarty &$smarty)
12
+function smarty_function_array_search(array $params, \OcSmarty & $smarty)
13 13
 {
14 14
     if (!is_array($params['haystack'])) {
15 15
         $smarty->assign($params['var'], false);
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/block.nocache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
  *
24 24
  * @return string
25 25
  */
26
-function smarty_block_nocache(array $param, $content, \OcSmarty &$smarty, &$repeat)
26
+function smarty_block_nocache(array $param, $content, \OcSmarty & $smarty, &$repeat)
27 27
 {
28 28
     static $counter = [];
29 29
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         if (!isset($counter[$name])) {
39 39
             $counter[$name] = 0;
40 40
         }
41
-        $counter[$name] ++;
41
+        $counter[$name]++;
42 42
 
43 43
         if ($smarty->_cache_including) {
44 44
             $param = isset($smarty->_cache_info['cached_vars'][$name][$counter[$name]]) ? $smarty->_cache_info['cached_vars'][$name][$counter[$name]] : [];
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/function.count.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  *
10 10
  * @return int
11 11
  */
12
-function smarty_function_count(array $params, \OcSmarty &$smarty)
12
+function smarty_function_count(array $params, \OcSmarty & $smarty)
13 13
 {
14 14
     return count($params['array']);
15 15
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/function.nccacheid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  *
10 10
  * @return int
11 11
  */
12
-function smarty_function_nccacheid(array $params, \OcSmarty &$smarty)
12
+function smarty_function_nccacheid(array $params, \OcSmarty & $smarty)
13 13
 {
14 14
     return hexdec(mb_substr($params['wp'], 1));
15 15
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/function.coordinput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  *
10 10
  * @return string
11 11
  */
12
-function smarty_function_coordinput(array $params, \OcSmarty &$smarty)
12
+function smarty_function_coordinput(array $params, \OcSmarty & $smarty)
13 13
 {
14 14
     $prefix = $params['prefix'];
15 15
     $lat = $params['lat'] + 0;
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/function.instr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  *
10 10
  * @return bool
11 11
  */
12
-function smarty_function_instr(array $params, \OcSmarty &$smarty)
12
+function smarty_function_instr(array $params, \OcSmarty & $smarty)
13 13
 {
14 14
     return strpos($params['haystack'], $params['needle']) !== false;
15 15
 }
Please login to merge, or discard this patch.