Passed
Push — develop ( ed7ad9...b0a6b3 )
by Andrew
03:36
created
src/services/Beacons.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -140,16 +140,16 @@
 block discarded – undo
140 140
         $sample = new DataSample([
141 141
             'requestId' => Webperf::$requestUuid,
142 142
             'url' => Webperf::$requestUrl ?? DataSample::PLACEHOLDER_URL,
143
-            'craftTotalMs' => (int)($stats['database']['duration']
143
+            'craftTotalMs' => (int) ($stats['database']['duration']
144 144
                 + $stats['twig']['duration']
145 145
                 + $stats['other']['duration']),
146
-            'craftDbMs' => (int)$stats['database']['duration'],
147
-            'craftDbCnt' => (int)$stats['database']['count'],
148
-            'craftTwigMs' => (int)$stats['twig']['duration'],
149
-            'craftTwigCnt' => (int)$stats['twig']['count'],
150
-            'craftOtherMs' => (int)$stats['other']['duration'],
151
-            'craftOtherCnt' => (int)$stats['other']['count'],
152
-            'craftTotalMemory' => (int)($stats['database']['memory']
146
+            'craftDbMs' => (int) $stats['database']['duration'],
147
+            'craftDbCnt' => (int) $stats['database']['count'],
148
+            'craftTwigMs' => (int) $stats['twig']['duration'],
149
+            'craftTwigCnt' => (int) $stats['twig']['count'],
150
+            'craftOtherMs' => (int) $stats['other']['duration'],
151
+            'craftOtherCnt' => (int) $stats['other']['count'],
152
+            'craftTotalMemory' => (int) ($stats['database']['memory']
153 153
                 + $stats['twig']['memory']
154 154
                 + $stats['other']['memory']),
155 155
         ]);
Please login to merge, or discard this patch.
src/helpers/PluginTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
         // Render the template with our vars passed in
75 75
         try {
76
-            $htmlText = Craft::$app->view->renderTemplate('webperf/' . $templatePath, $params);
76
+            $htmlText = Craft::$app->view->renderTemplate('webperf/'.$templatePath, $params);
77 77
             if ($minifier) {
78 78
                 // If SEOmatic is installed, get the title from it
79 79
                 $minify = Craft::$app->getPlugins()->getPlugin(self::MINIFY_PLUGIN_HANDLE);
Please login to merge, or discard this patch.