浏览代码

apply StyleCI recommendation

El RIDO 2 年之前
父节点
当前提交
3c6df4573e
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      tst/Bootstrap.php

+ 1 - 1
tst/Bootstrap.php

@@ -388,7 +388,7 @@ class Helper
             '#\'js/([a-z0-9.-]+.js)(\' +)=\> \'[^\']*\',#',
             '#\'js/([a-z0-9.-]+.js)(\' +)=\> \'[^\']*\',#',
             function ($matches) use (&$counter) {
             function ($matches) use (&$counter) {
                 if (array_key_exists($matches[1], Helper::$hashes)) {
                 if (array_key_exists($matches[1], Helper::$hashes)) {
-                    $counter++;
+                    ++$counter;
                     return '\'js/' . $matches[1] . $matches[2] .
                     return '\'js/' . $matches[1] . $matches[2] .
                         '=> \'sha512-' . Helper::$hashes[$matches[1]] . '\',';
                         '=> \'sha512-' . Helper::$hashes[$matches[1]] . '\',';
                 } else {
                 } else {