Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Failed Conditions
Pull Request — master (#1094)
by Dan
05:37
created

src/tools/reserializeCombatLogs.php (1 issue)

Labels
Severity
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
The method getObject() does not exist on Smr\Database. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
	$db2->write('UPDATE combat_logs SET result=' . $db->escapeObject($db->/** @scrutinizer ignore-call */ getObject('result', true), true) . ' WHERE log_id=' . $dbRecord->getField('log_id'));

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.

Loading history...
25
}
26