]> git.mxchange.org Git - friendica.git/commitdiff
Rewrite:
authorRoland Häder <roland@mxchange.org>
Mon, 12 Sep 2022 21:12:11 +0000 (23:12 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 17 Jan 2024 00:03:01 +0000 (01:03 +0100)
- moved constants GRAVITY_* from boot.php to Friendica\Model\Item
- also rewrote some array initialization:

From:
````
<?php
$arr = [];
$arr['foo'] = "FOO";
````

To:
````
<?php
$arr['foo'] = "FOO";
````
- added a few type-hints

src/Database/Database.php

index 7e0d56e0929038e15992c470d1dab339a600bccd..07cfe7242c1ee514d2205a78dd44f0648248bfcb 100644 (file)
@@ -725,7 +725,6 @@ class Database
                                $duration  = round($duration, 3);
                                $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
 
-<<<<<<< HEAD
                                @file_put_contents(
                                        $this->config->get('system', 'db_log'),
                                        DateTimeFormat::utcNow() . "\t" . $duration . "\t" .
@@ -734,12 +733,6 @@ class Database
                                        substr($this->replaceParameters($sql, $args), 0, 4000) . "\n",
                                        FILE_APPEND
                                );
-=======
-                               @file_put_contents($this->configCache->get('system', 'db_log'), DateTimeFormat::utcNow() . "\t" . $duration . "\t" .
-                                                                                               basename($backtrace[1]['file']) . "\t" .
-                                                                                               $backtrace[1]['line'] . "\t" . $backtrace[2]['function'] . "\t" .
-                                                                                               substr($this->replaceParameters($sql, $args), 0, 4000) . "\n", FILE_APPEND);
->>>>>>> 82391ca61 (Changes:)
                        }
                }
                return $retval;