smrealms /
smr
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php declare(strict_types=1); |
||
| 2 | |||
| 3 | require_once('../bootstrap.php'); |
||
| 4 | |||
| 5 | $db = Smr\Database::getInstance(); |
||
| 6 | |||
| 7 | //$dbResult = $db->read('SELECT * FROM combat_logs WHERE type=\'PLAYER\' ORDER BY OCTET_LENGTH(result) DESC LIMIT 1'); |
||
| 8 | //if ($dbResult->hasRecord()) |
||
| 9 | //{ |
||
| 10 | // $x = $dbResult->record()->getField('result'); |
||
| 11 | // $y = gzuncompress($x); |
||
| 12 | // var_dump($y); |
||
| 13 | // |
||
| 14 | // $z = serialize(unserialize($y)); |
||
| 15 | // var_dump($z); |
||
| 16 | // |
||
| 17 | // var_dump(strlen($x)); |
||
| 18 | // var_dump(strlen(gzcompress($z))); |
||
| 19 | // var_dump(strlen(bzcompress($z))); |
||
| 20 | //} |
||
| 21 | |||
| 22 | $dbResult = $db->read('SELECT result,log_id FROM combat_logs'); |
||
| 23 | foreach ($dbResult->records() as $dbRecord) { |
||
| 24 | $db2->write('UPDATE combat_logs SET result=' . $db->escapeObject($db->getObject('result', true), true) . ' WHERE log_id=' . $dbRecord->getField('log_id')); |
||
|
0 ignored issues
–
show
|
|||
| 25 | } |
||
| 26 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.