Completed
Branch develop (9c1dc5)
by Timothy
07:15
created
src/Model/Anime.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
 	 * @param string|null $malId
195 195
 	 * @return bool
196 196
 	 */
197
-	public function deleteLibraryItem(string $id, string $malId = null): bool
197
+	public function deleteLibraryItem(string $id, string $malId = NULL): bool
198 198
 	{
199 199
 		$requests = [];
200 200
 
Please login to merge, or discard this patch.
src/API/Kitsu/KitsuTrait.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 			->get('session')
66 66
 			->getSegment(SESSION_SEGMENT);
67 67
 
68
-		if ($sessionSegment->get('auth_token') !== null && $url !== K::AUTH_URL)
68
+		if ($sessionSegment->get('auth_token') !== NULL && $url !== K::AUTH_URL)
69 69
 		{
70 70
 			$token = $sessionSegment->get('auth_token');
71 71
 			$request = $request->setAuth('bearer', $token);
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 */
127 127
 	private function request(string $type, string $url, array $options = []): array
128 128
 	{
129
-		$logger = null;
129
+		$logger = NULL;
130 130
 		if ($this->getContainer())
131 131
 		{
132 132
 			$logger = $this->container->getLogger('kitsu-request');
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 	 */
176 176
 	protected function postRequest(...$args): array
177 177
 	{
178
-		$logger = null;
178
+		$logger = NULL;
179 179
 		if ($this->getContainer())
180 180
 		{
181 181
 			$logger = $this->container->getLogger('kitsu-request');
Please login to merge, or discard this patch.
src/API/Kitsu/Transformer/AnimeListTransformer.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 			'rewatching' => (bool) $item['attributes']['reconsuming'],
96 96
 			'rewatched' => (int) $item['attributes']['reconsumeCount'],
97 97
 			'user_rating' => ($rating === 0) ? '-' : (int) $rating,
98
-			'private' => (bool) $item['attributes']['private'] ?? false,
98
+			'private' => (bool) $item['attributes']['private'] ?? FALSE,
99 99
 		];
100 100
 	}
101 101
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
 		$untransformed = [
115 115
 			'id' => $item['id'],
116
-			'mal_id' => $item['mal_id'] ?? null,
116
+			'mal_id' => $item['mal_id'] ?? NULL,
117 117
 			'data' => [
118 118
 				'status' => $item['watching_status'],
119 119
 				'reconsuming' => $rewatching,
Please login to merge, or discard this patch.
src/API/Kitsu/ListItem.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 			->get('session')
38 38
 			->getSegment(SESSION_SEGMENT);
39 39
 
40
-		if ($sessionSegment->get('auth_token') !== null)
40
+		if ($sessionSegment->get('auth_token') !== NULL)
41 41
 		{
42 42
 			$token = $sessionSegment->get('auth_token');
43 43
 			return "bearer {$token}";
Please login to merge, or discard this patch.