Passed
Pull Request — master (#329)
by Mirko
07:20
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/prefilter.t.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
  *
54 54
  * @return string
55 55
  */
56
-function smarty_prefilter_t($source, \OcSmarty &$smarty)
56
+function smarty_prefilter_t($source, \OcSmarty & $smarty)
57 57
 {
58 58
     $output = '';
59 59
     $output_start = 0;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
  *
96 96
  * @return string
97 97
  */
98
-function smarty_prefilter_t_process_block($block, $message, \OcSmarty &$smarty, $line)
98
+function smarty_prefilter_t_process_block($block, $message, \OcSmarty & $smarty, $line)
99 99
 {
100 100
     if ($message != '') {
101 101
         $start_attr = mb_strpos($block, ' ');
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
  *
156 156
  * @return array
157 157
  */
158
-function smarty_prefilter_t_parse_attrs($tag_args, \OcSmarty &$smarty)
158
+function smarty_prefilter_t_parse_attrs($tag_args, \OcSmarty & $smarty)
159 159
 {
160 160
 
161 161
     /* Tokenize tag attributes. */
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
  *
301 301
  * @return string
302 302
  */
303
-function smarty_prefilter_t_gettext($message, array $attrs, \OcSmarty &$smarty, $line)
303
+function smarty_prefilter_t_gettext($message, array $attrs, \OcSmarty & $smarty, $line)
304 304
 {
305 305
     global $opt, $translate;
306 306
 
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.