diff --git a/build/CodeIgniter/Sniffs/WhiteSpace/ElseOnNewLineSniff.php b/build/CodeIgniter/Sniffs/WhiteSpace/ElseOnNewLineSniff.php index 03687d7d..8071f31e 100644 --- a/build/CodeIgniter/Sniffs/WhiteSpace/ElseOnNewLineSniff.php +++ b/build/CodeIgniter/Sniffs/WhiteSpace/ElseOnNewLineSniff.php @@ -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() diff --git a/composer.json b/composer.json index 7f13f0ca..4192c657 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml index c909515f..6dc2f5aa 100644 --- a/phpdoc.dist.xml +++ b/phpdoc.dist.xml @@ -12,7 +12,7 @@ src - + vendor/aviat/ion/src + vendor/container-interop/container-interop/src \ No newline at end of file diff --git a/src/Command/SyncKitsuWithMal.php b/src/Command/SyncKitsuWithMal.php index f7f361b6..1f7d9887 100644 --- a/src/Command/SyncKitsuWithMal.php +++ b/src/Command/SyncKitsuWithMal.php @@ -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 { } } } -} \ No newline at end of file +}