Merge "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
[lhc/web/wiklou.git] / includes / profiler / output / ProfilerOutputDb.php
index 5efb3ab..264ec0c 100644 (file)
@@ -41,7 +41,7 @@ class ProfilerOutputDb extends ProfilerOutput {
        }
 
        public function canUse() {
-               # Do not log anything if database is readonly (bug 5375)
+               # Do not log anything if database is readonly (T7375)
                return !wfReadOnly();
        }
 
@@ -66,19 +66,19 @@ class ProfilerOutputDb extends ProfilerOutput {
                                $memorySum = $memorySum >= 0 ? $memorySum : 0;
 
                                $dbw->upsert( 'profiling',
-                                       array(
+                                       [
                                                'pf_name' => $name,
                                                'pf_count' => $eventCount,
                                                'pf_time' => $timeSum,
                                                'pf_memory' => $memorySum,
                                                'pf_server' => $pfhost
-                                       ),
-                                       array( array( 'pf_name', 'pf_server' ) ),
-                                       array(
+                                       ],
+                                       [ [ 'pf_name', 'pf_server' ] ],
+                                       [
                                                "pf_count=pf_count+{$eventCount}",
                                                "pf_time=pf_time+{$timeSum}",
                                                "pf_memory=pf_memory+{$memorySum}",
-                                       ),
+                                       ],
                                        __METHOD__
                                );
                        }