Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
4 changed files with 11 additions and 12 deletions
Showing only changes of commit f205ba8cff - Show all commits

View File

@ -71,7 +71,7 @@ class ElseOnNewLineSniff implements Sniff
$previous_non_blank_token = $tokens[$previous_non_blank_token_ptr]; $previous_non_blank_token = $tokens[$previous_non_blank_token_ptr];
if ($previous_non_blank_token['line'] === $else_token['line']) { if ($previous_non_blank_token['line'] === $else_token['line']) {
$error = '"' . $else_token['content'] . '" should be on a new line.'; $error = '"' . $else_token['content'] . '" should be on a new line.';
$phpcsFile->addError($error, $stackPtr); $phpcsFile->addError($error, $stackPtr, 123423);
} }
}//end process() }//end process()

View File

@ -41,9 +41,9 @@
"robmorgan/phinx": "^0.9.1", "robmorgan/phinx": "^0.9.1",
"sebastian/phpcpd": "^3.0", "sebastian/phpcpd": "^3.0",
"spatie/phpunit-snapshot-assertions": "^1.2.0", "spatie/phpunit-snapshot-assertions": "^1.2.0",
"squizlabs/php_codesniffer": "^3.0.0@beta", "squizlabs/php_codesniffer": "^3.2.2",
"symfony/var-dumper": "^4.0.1", "symfony/var-dumper": "^4.0.1",
"theseer/phpdox": "^0.10.1", "theseer/phpdox": "^0.11.0",
"filp/whoops": "^2.1" "filp/whoops": "^2.1"
}, },
"scripts": { "scripts": {

View File

@ -12,7 +12,7 @@
</transformations> </transformations>
<files> <files>
<directory>src</directory> <directory>src</directory>
<!-- <directory>vendor/aviat/ion/src</directory> <directory>vendor/aviat/ion/src</directory>
<directory>vendor/container-interop/container-interop/src</directory> --> <directory>vendor/container-interop/container-interop/src</directory>
</files> </files>
</phpdoc> </phpdoc>

View File

@ -50,7 +50,7 @@ class SyncKitsuWithMal extends BaseCommand {
protected $malModel; protected $malModel;
/** /**
* Run the image conversion script * Run the Kitsu <=> MAL sync script
* *
* @param array $args * @param array $args
* @param array $options * @param array $options
@ -121,7 +121,6 @@ class SyncKitsuWithMal extends BaseCommand {
if ( ! empty($data['updateKitsu'])) if ( ! empty($data['updateKitsu']))
{ {
// print_r($data['updateKitsu']);
$count = count($data['updateKitsu']); $count = count($data['updateKitsu']);
$this->echoBox("Updating {$count} outdated Kitsu {$type} list items"); $this->echoBox("Updating {$count} outdated Kitsu {$type} list items");
$this->updateKitsuListItems($data['updateKitsu'], 'update', $type); $this->updateKitsuListItems($data['updateKitsu'], 'update', $type);
@ -483,17 +482,17 @@ class SyncKitsuWithMal extends BaseCommand {
foreach($responses as $key => $response) foreach($responses as $key => $response)
{ {
$id = $itemsToUpdate[$key]['id']; $responseData = Json::decode($response);
$responseObject = Json::decode($response); $id = $itemsToUpdate[$key]['mal_id'];
if ( ! array_key_exists('errors', $responseObject)) if ( ! array_key_exists('errors', $responseData));
{ {
$verb = ($action === 'update') ? 'updated' : 'created'; $verb = ($action === 'update') ? 'updated' : 'created';
$this->echoBox("Successfully {$verb} Kitsu {$type} list item with id: {$id}"); $this->echoBox("Successfully {$verb} Kitsu {$type} list item with id: {$id}");
} }
else else
{ {
dump($responseObject); dump($responseData);
$verb = ($action === 'update') ? 'update' : 'create'; $verb = ($action === 'update') ? 'update' : 'create';
$this->echoBox("Failed to {$verb} Kitsu {$type} list item with id: {$id}"); $this->echoBox("Failed to {$verb} Kitsu {$type} list item with id: {$id}");
} }
@ -539,4 +538,4 @@ class SyncKitsuWithMal extends BaseCommand {
} }
} }
} }
} }