From 1f9f247d68e874eebc5e30bc64ab8f463919c0ff Mon Sep 17 00:00:00 2001 From: Irfan Date: Sat, 17 Aug 2019 13:43:28 +0500 Subject: [PATCH] phpcs --- composer.json | 1 - src/Parser/User/Profile/UserProfileParser.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b2dc0e3e..6924f3cd 100755 --- a/composer.json +++ b/composer.json @@ -32,7 +32,6 @@ "brianium/paratest": "1.*", "doctrine/collections": "^1.5", "jakub-onderka/php-parallel-lint": "^1.0", - "jikan-me/jikan": "^2.8", "jikan-me/jikan-fixtures": "dev-master", "php-vcr/php-vcr": "~1.3.2", "php-vcr/phpunit-testlistener-vcr": "^3.0", diff --git a/src/Parser/User/Profile/UserProfileParser.php b/src/Parser/User/Profile/UserProfileParser.php index 8c2d5c2a..ea9e8aad 100644 --- a/src/Parser/User/Profile/UserProfileParser.php +++ b/src/Parser/User/Profile/UserProfileParser.php @@ -94,7 +94,8 @@ public function getLastOnline(): ?\DateTimeImmutable { try { return new \DateTimeImmutable( - $this->crawler->filterXPath('//span[contains(text(), \'Last Online\')]/following-sibling::span')->text(), + $this->crawler->filterXPath('//span[contains(text(), \'Last Online\')]/following-sibling::span') + ->text(), new \DateTimeZone('UTC') ); } catch (\Exception $e) {