Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
f205ba8cff
@ -71,7 +71,7 @@ class ElseOnNewLineSniff implements Sniff
|
||||
$previous_non_blank_token = $tokens[$previous_non_blank_token_ptr];
|
||||
if ($previous_non_blank_token['line'] === $else_token['line']) {
|
||||
$error = '"' . $else_token['content'] . '" should be on a new line.';
|
||||
$phpcsFile->addError($error, $stackPtr);
|
||||
$phpcsFile->addError($error, $stackPtr, 123423);
|
||||
}
|
||||
|
||||
}//end process()
|
||||
|
@ -41,9 +41,9 @@
|
||||
"robmorgan/phinx": "^0.9.1",
|
||||
"sebastian/phpcpd": "^3.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",
|
||||
"theseer/phpdox": "^0.10.1",
|
||||
"theseer/phpdox": "^0.11.0",
|
||||
"filp/whoops": "^2.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -12,7 +12,7 @@
|
||||
</transformations>
|
||||
<files>
|
||||
<directory>src</directory>
|
||||
<!-- <directory>vendor/aviat/ion/src</directory>
|
||||
<directory>vendor/container-interop/container-interop/src</directory> -->
|
||||
<directory>vendor/aviat/ion/src</directory>
|
||||
<directory>vendor/container-interop/container-interop/src</directory>
|
||||
</files>
|
||||
</phpdoc>
|
@ -50,7 +50,7 @@ class SyncKitsuWithMal extends BaseCommand {
|
||||
protected $malModel;
|
||||
|
||||
/**
|
||||
* Run the image conversion script
|
||||
* Run the Kitsu <=> MAL sync script
|
||||
*
|
||||
* @param array $args
|
||||
* @param array $options
|
||||
@ -121,7 +121,6 @@ class SyncKitsuWithMal extends BaseCommand {
|
||||
|
||||
if ( ! empty($data['updateKitsu']))
|
||||
{
|
||||
// print_r($data['updateKitsu']);
|
||||
$count = count($data['updateKitsu']);
|
||||
$this->echoBox("Updating {$count} outdated Kitsu {$type} list items");
|
||||
$this->updateKitsuListItems($data['updateKitsu'], 'update', $type);
|
||||
@ -483,17 +482,17 @@ class SyncKitsuWithMal extends BaseCommand {
|
||||
|
||||
foreach($responses as $key => $response)
|
||||
{
|
||||
$id = $itemsToUpdate[$key]['id'];
|
||||
$responseData = Json::decode($response);
|
||||
|
||||
$responseObject = Json::decode($response);
|
||||
if ( ! array_key_exists('errors', $responseObject))
|
||||
$id = $itemsToUpdate[$key]['mal_id'];
|
||||
if ( ! array_key_exists('errors', $responseData));
|
||||
{
|
||||
$verb = ($action === 'update') ? 'updated' : 'created';
|
||||
$this->echoBox("Successfully {$verb} Kitsu {$type} list item with id: {$id}");
|
||||
}
|
||||
else
|
||||
{
|
||||
dump($responseObject);
|
||||
dump($responseData);
|
||||
$verb = ($action === 'update') ? 'update' : 'create';
|
||||
$this->echoBox("Failed to {$verb} Kitsu {$type} list item with id: {$id}");
|
||||
}
|
||||
@ -539,4 +538,4 @@ class SyncKitsuWithMal extends BaseCommand {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user