Completed
Branch master (205409)
by Timothy
02:36
created
src/API/JsonAPI.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	
45 45
 	public static function inlineRawIncludes(array &$data, string $key): array
46 46
 	{
47
-		foreach($data['data'] as $i => &$item)
47
+		foreach ($data['data'] as $i => &$item)
48 48
 		{
49 49
 			$item[$key] = $data['included'][$i];
50 50
 		}
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
 			// Duplicate the item for the output
71 71
 			$inlined[$key][$itemId] = $item;
72 72
 			
73
-			foreach($item['relationships'] as $type => $ids)
73
+			foreach ($item['relationships'] as $type => $ids)
74 74
 			{
75 75
 				$inlined[$key][$itemId]['relationships'][$type] = [];
76
-				foreach($ids as $id)
76
+				foreach ($ids as $id)
77 77
 				{
78 78
 					$inlined[$key][$itemId]['relationships'][$type][$id] = $included[$type][$id];
79 79
 				}
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	{
126 126
 		$organized = [];
127 127
 
128
-		foreach($relationships as $key => $data)
128
+		foreach ($relationships as $key => $data)
129 129
 		{
130 130
 			if ( ! array_key_exists('data', $data))
131 131
 			{
Please login to merge, or discard this patch.
src/API/Kitsu/Model.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 		$data = $this->getRequest("anime/{$kitsuAnimeId}", $options);
185 185
 		$mappings = array_column($data['included'], 'attributes');
186 186
 
187
-		foreach($mappings as $map)
187
+		foreach ($mappings as $map)
188 188
 		{
189 189
 			if ($map['externalSite'] === 'myanimelist/anime')
190 190
 			{
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 			$included = JsonAPI::organizeIncludes($data['included']);
265 265
 			$included = JsonAPI::inlineIncludedRelationships($included, 'anime');
266 266
 
267
-			foreach($data['data'] as $i => &$item)
267
+			foreach ($data['data'] as $i => &$item)
268 268
 			{
269 269
 				$item['included'] = $included;
270 270
 			}
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 				'body' => $response->getBody(),
410 410
 			];
411 411
 		}
412
-		catch(ClientException $e)
412
+		catch (ClientException $e)
413 413
 		{
414 414
 			return [
415 415
 				'statusCode' => $e->getResponse()->getStatusCode(),
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 			return $data;
140 140
 		}
141 141
 
142
-		return false;
142
+		return FALSE;
143 143
 	}
144 144
 
145 145
 	/**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 			}
193 193
 		}
194 194
 
195
-		return null;
195
+		return NULL;
196 196
 	}
197 197
 
198 198
 	/**
Please login to merge, or discard this patch.
src/API/Kitsu/KitsuTrait.php 3 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 		$response = $this->getResponse($type, $url, $options);
141 141
 
142
-		if ((int) $response->getStatusCode() > 299 || (int) $response->getStatusCode() < 200)
142
+		if ((int)$response->getStatusCode() > 299 || (int)$response->getStatusCode() < 200)
143 143
 		{
144 144
 			if ($logger)
145 145
 			{
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 		$response = $this->getResponse('POST', ...$args);
190 190
 		$validResponseCodes = [200, 201];
191 191
 
192
-		if ( ! in_array((int) $response->getStatusCode(), $validResponseCodes))
192
+		if ( ! in_array((int)$response->getStatusCode(), $validResponseCodes))
193 193
 		{
194 194
 			if ($logger)
195 195
 			{
@@ -209,6 +209,6 @@  discard block
 block discarded – undo
209 209
 	protected function deleteRequest(...$args): bool
210 210
 	{
211 211
 		$response = $this->getResponse('DELETE', ...$args);
212
-		return ((int) $response->getStatusCode() === 204);
212
+		return ((int)$response->getStatusCode() === 204);
213 213
 	}
214 214
 }
215 215
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -35,16 +35,16 @@
 block discarded – undo
35 35
 	protected $requestBuilder;
36 36
 	
37 37
 	/**
38
-     * The Guzzle http client object
39
-     * @var object
40
-     */
41
-    protected $client;
42
-
43
-    /**
44
-     * Cookie jar object for api requests
45
-     * @var object
46
-     */
47
-    protected $cookieJar;
38
+	 * The Guzzle http client object
39
+	 * @var object
40
+	 */
41
+	protected $client;
42
+
43
+	/**
44
+	 * Cookie jar object for api requests
45
+	 * @var object
46
+	 */
47
+	protected $cookieJar;
48 48
 
49 49
 	/**
50 50
 	 * The base url for api requests
Please login to merge, or discard this patch.
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 */
111 111
 	private function getResponse(string $type, string $url, array $options = [])
112 112
 	{
113
-		$logger = null;
113
+		$logger = NULL;
114 114
 		$validTypes = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'];
115 115
 
116 116
 		if ( ! in_array($type, $validTypes))
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 			->get('session')
128 128
 			->getSegment(AnimeClient::SESSION_SEGMENT);
129 129
 
130
-		if ($sessionSegment->get('auth_token') !== null && $url !== K::AUTH_URL)
130
+		if ($sessionSegment->get('auth_token') !== NULL && $url !== K::AUTH_URL)
131 131
 		{
132 132
 			$token = $sessionSegment->get('auth_token');
133 133
 			$defaultOptions['headers']['Authorization'] = "bearer {$token}";
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 */
161 161
 	private function request(string $type, string $url, array $options = []): array
162 162
 	{
163
-		$logger = null;
163
+		$logger = NULL;
164 164
 		if ($this->getContainer())
165 165
 		{
166 166
 			$logger = $this->container->getLogger('kitsu-request');
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 */
210 210
 	protected function postRequest(...$args): array
211 211
 	{
212
-		$logger = null;
212
+		$logger = NULL;
213 213
 		if ($this->getContainer())
214 214
 		{
215 215
 			$logger = $this->container->getLogger('kitsu-request');
Please login to merge, or discard this patch.
src/API/Kitsu/Transformer/AnimeListTransformer.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
 		$genres = array_column($anime['relationships']['genres'], 'name') ?? [];
42 42
 		sort($genres);
43 43
 		
44
-		$rating = (int) 2 * $item['attributes']['rating'];
44
+		$rating = (int)2 * $item['attributes']['rating'];
45 45
 
46
-		$total_episodes = array_key_exists('episodeCount', $anime) && (int) $anime['episodeCount'] !== 0
47
-			? (int) $anime['episodeCount']
46
+		$total_episodes = array_key_exists('episodeCount', $anime) && (int)$anime['episodeCount'] !== 0
47
+			? (int)$anime['episodeCount']
48 48
 			: '-';
49 49
 		
50 50
 		$MALid = NULL;
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
 			'id' => $item['id'],
70 70
 			'mal_id' => $MALid,
71 71
 			'episodes' => [
72
-				'watched' => (int) $item['attributes']['progress'] !== '0'
73
-					? (int) $item['attributes']['progress']
72
+				'watched' => (int)$item['attributes']['progress'] !== '0'
73
+					? (int)$item['attributes']['progress']
74 74
 					: '-',
75 75
 				'total' => $total_episodes,
76 76
 				'length' => $anime['episodeLength'],
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
 			],
93 93
 			'watching_status' => $item['attributes']['status'],
94 94
 			'notes' => $item['attributes']['notes'],
95
-			'rewatching' => (bool) $item['attributes']['reconsuming'],
96
-			'rewatched' => (int) $item['attributes']['reconsumeCount'],
97
-			'user_rating' => ($rating === 0) ? '-' : (int) $rating,
98
-			'private' => (bool) $item['attributes']['private'] ?? false,
95
+			'rewatching' => (bool)$item['attributes']['reconsuming'],
96
+			'rewatched' => (int)$item['attributes']['reconsumeCount'],
97
+			'user_rating' => ($rating === 0) ? '-' : (int)$rating,
98
+			'private' => (bool)$item['attributes']['private'] ?? false,
99 99
 		];
100 100
 	}
101 101
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 			]
126 126
 		];
127 127
 
128
-		if ((int) $untransformed['data']['rating'] === 0)
128
+		if ((int)$untransformed['data']['rating'] === 0)
129 129
 		{
130 130
 			unset($untransformed['data']['rating']);
131 131
 		}
Please login to merge, or discard this 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
 				'rating' => $item['user_rating'] / 2,
Please login to merge, or discard this patch.
src/API/Kitsu/Transformer/MangaTransformer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	{
35 35
 		$genres = [];
36 36
 		
37
-		foreach($item['included'] as $included)
37
+		foreach ($item['included'] as $included)
38 38
 		{
39 39
 			if ($included['type'] === 'genres')
40 40
 			{
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 		];
59 59
 	}
60 60
 
61
-	private function count(int $value = null)
61
+	private function count(int $value = NULL)
62 62
 	{
63 63
 		return ((int)$value === 0)
64 64
 			? '-'
Please login to merge, or discard this patch.
src/API/Kitsu/Transformer/MangaListTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	public function transform($item)
37 37
 	{
38 38
 /*?><pre><?= print_r($item, TRUE) ?></pre><?php*/
39
-		$manga =& $item['manga'];
39
+		$manga = & $item['manga'];
40 40
 
41 41
 		$rating = (is_numeric($item['attributes']['rating']))
42 42
 			? intval(2 * $item['attributes']['rating'])
Please login to merge, or discard this patch.
src/API/MAL/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			]
70 70
 		]);
71 71
 
72
-		return $list;//['anime'];
72
+		return $list; //['anime'];
73 73
 	}
74 74
 
75 75
 	public function getListItem(string $listId): array
Please login to merge, or discard this patch.
src/API/MAL/Transformer/AnimeListTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 			'data' => [
42 42
 				'status' => self::statusMap[$item['watching_status']],
43 43
 				'rating' => $item['user_rating'],
44
-				'rewatch_value' => (int) $rewatching,
44
+				'rewatch_value' => (int)$rewatching,
45 45
 				'times_rewatched' => $item['rewatched'],
46 46
 				'comments' => $item['notes'],
47 47
 				'episode' => $item['episodes_watched']
Please login to merge, or discard this patch.
src/API/Kitsu.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Anime List Client
4 4
  *
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 */
101 101
 	protected static function getServiceMetaData(string $hostname = null): array
102 102
 	{
103
-		switch($hostname)
103
+		switch ($hostname)
104 104
 		{
105 105
 			case 'www.crunchyroll.com':
106 106
 				return [
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
 		if (array_key_exists('titles', $data))
214 214
 		{
215
-			foreach($data['titles'] as $alternateTitle)
215
+			foreach ($data['titles'] as $alternateTitle)
216 216
 			{
217 217
 				if (self::titleIsUnique($alternateTitle, $valid))
218 218
 				{
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 			return false;
239 239
 		}
240 240
 
241
-		foreach($existingTitles as $existing)
241
+		foreach ($existingTitles as $existing)
242 242
 		{
243 243
 			$isSubset = stripos($existing, $title) !== FALSE;
244 244
 			$diff = levenshtein($existing, $title);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 * @param string $endDate
71 71
 	 * @return string
72 72
 	 */
73
-	public static function getAiringStatus(string $startDate = null, string $endDate = null): string
73
+	public static function getAiringStatus(string $startDate = NULL, string $endDate = NULL): string
74 74
 	{
75 75
 		$startAirDate = new DateTimeImmutable($startDate ?? 'tomorrow');
76 76
 		$endAirDate = new DateTimeImmutable($endDate ?? 'next year');
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		$isDoneAiring = $now > $endAirDate;
80 80
 		$isCurrentlyAiring = ($now > $startAirDate) && ! $isDoneAiring;
81 81
 
82
-		switch (true)
82
+		switch (TRUE)
83 83
 		{
84 84
 			case $isCurrentlyAiring:
85 85
 				return AnimeAiringStatus::AIRING;
@@ -98,28 +98,28 @@  discard block
 block discarded – undo
98 98
 	 * @param string $hostname
99 99
 	 * @return array
100 100
 	 */
101
-	protected static function getServiceMetaData(string $hostname = null): array
101
+	protected static function getServiceMetaData(string $hostname = NULL): array
102 102
 	{
103 103
 		switch($hostname)
104 104
 		{
105 105
 			case 'www.crunchyroll.com':
106 106
 				return [
107 107
 					'name' => 'Crunchyroll',
108
-					'link' => true,
108
+					'link' => TRUE,
109 109
 					'logo' => '<svg class="streaming-logo" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><g fill="#F78B24" fill-rule="evenodd"><path d="M22.549 49.145c-.815-.077-2.958-.456-3.753-.663-6.873-1.79-12.693-6.59-15.773-13.009C1.335 31.954.631 28.807.633 24.788c.003-4.025.718-7.235 2.38-10.686 1.243-2.584 2.674-4.609 4.706-6.66 3.8-3.834 8.614-6.208 14.067-6.936 1.783-.239 5.556-.161 7.221.148 3.463.642 6.571 1.904 9.357 3.797 5.788 3.934 9.542 9.951 10.52 16.861.21 1.48.332 4.559.19 4.816-.077.14-.117-.007-.167-.615-.25-3.015-1.528-6.66-3.292-9.388C40.253 7.836 30.249 4.32 20.987 7.467c-7.15 2.43-12.522 8.596-13.997 16.06-.73 3.692-.51 7.31.658 10.882a21.426 21.426 0 0 0 13.247 13.518c1.475.515 3.369.944 4.618 1.047 1.496.122 1.119.239-.727.224-1.006-.008-2.013-.032-2.237-.053z"></path><path d="M27.685 46.1c-7.731-.575-14.137-6.455-15.474-14.204-.243-1.41-.29-4.047-.095-5.345 1.16-7.706 6.97-13.552 14.552-14.639 1.537-.22 4.275-.143 5.746.162 1.28.266 2.7.737 3.814 1.266l.865.411-.814.392c-2.936 1.414-4.748 4.723-4.323 7.892.426 3.173 2.578 5.664 5.667 6.56 1.112.322 2.812.322 3.925 0 1.438-.417 2.566-1.1 3.593-2.173.346-.362.652-.621.68-.576.027.046.106.545.176 1.11.171 1.395.07 4.047-.204 5.371-.876 4.218-3.08 7.758-6.463 10.374-3.2 2.476-7.434 3.711-11.645 3.399z"></path></g></svg>'
110 110
 				];
111 111
 				
112 112
 			case 'www.funimation.com':
113 113
 				return [
114 114
 					'name' => 'Funimation',
115
-					'link' => true,
115
+					'link' => TRUE,
116 116
 					'logo' => '<svg class="streaming-logo" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path d="M24.066.017a24.922 24.922 0 0 1 13.302 3.286 25.098 25.098 0 0 1 7.833 7.058 24.862 24.862 0 0 1 4.207 9.575c.82 4.001.641 8.201-.518 12.117a24.946 24.946 0 0 1-4.868 9.009 24.98 24.98 0 0 1-7.704 6.118 24.727 24.727 0 0 1-10.552 2.718A24.82 24.82 0 0 1 13.833 47.3c-5.815-2.872-10.408-8.107-12.49-14.25-2.162-6.257-1.698-13.375 1.303-19.28C5.483 8.07 10.594 3.55 16.602 1.435A24.94 24.94 0 0 1 24.066.017zm-8.415 33.31c.464 2.284 1.939 4.358 3.99 5.48 2.174 1.217 4.765 1.444 7.202 1.181 2.002-.217 3.986-.992 5.455-2.397 1.173-1.151 2.017-2.648 2.33-4.267-1.189-.027-2.378 0-3.566-.03-.568.082-1.137-.048-1.705.014-1.232.012-2.465.003-3.697-.01-.655.066-1.309-.035-1.963.013-1.166-.053-2.334.043-3.5-.025-1.515.08-3.03-.035-4.546.042z" fill="#411299" fill-rule="evenodd"></path></svg>'
117 117
 				];
118 118
 				
119 119
 			case 'www.hulu.com':
120 120
 				return [
121 121
 					'name' => 'Hulu',
122
-					'link' => true,
122
+					'link' => TRUE,
123 123
 					'logo' => '<svg class="streaming-logo" viewBox="0 0 34 50" xmlns="http://www.w3.org/2000/svg"><path d="M22.222 13.889h-11.11V0H0v50h11.111V27.778c0-1.39 1.111-2.778 2.778-2.778h5.555c1.39 0 2.778 1.111 2.778 2.778V50h11.111V25c0-6.111-5-11.111-11.11-11.111z" fill="#8BC34A" fill-rule="evenodd"></path></svg>'
124 124
 				];
125 125
 				
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 			default:
129 129
 				return [
130 130
 					'name' => 'Netflix',
131
-					'link' => false,
131
+					'link' => FALSE,
132 132
 					'logo' => '<svg class="streaming-logo" viewBox="0 0 26 50" xmlns="http://www.w3.org/2000/svg"><path d="M.057.258C2.518.253 4.982.263 7.446.253c2.858 7.76 5.621 15.556 8.456 23.324.523 1.441 1.003 2.897 1.59 4.312.078-9.209.01-18.42.034-27.631h7.763v46.36c-2.812.372-5.637.627-8.457.957-1.203-3.451-2.396-6.902-3.613-10.348-1.796-5.145-3.557-10.302-5.402-15.428.129 8.954.015 17.912.057 26.871-2.603.39-5.227.637-7.815 1.119C.052 33.279.06 16.768.057.258z" fill="#E21221" fill-rule="evenodd"></path></svg>'
133 133
 				];
134 134
 		}
@@ -231,11 +231,11 @@  discard block
 block discarded – undo
231 231
 	 * @param array $existingTitles
232 232
 	 * @return bool
233 233
 	 */
234
-	private static function titleIsUnique(string $title = null, array $existingTitles): bool
234
+	private static function titleIsUnique(string $title = NULL, array $existingTitles): bool
235 235
 	{
236 236
 		if (empty($title))
237 237
 		{
238
-			return false;
238
+			return FALSE;
239 239
 		}
240 240
 
241 241
 		foreach($existingTitles as $existing)
@@ -246,10 +246,10 @@  discard block
 block discarded – undo
246 246
 
247 247
 			if ($diff < 3 || $isSubset || $onlydifferentCase)
248 248
 			{
249
-				return false;
249
+				return FALSE;
250 250
 			}
251 251
 		}
252 252
 
253
-		return true;
253
+		return TRUE;
254 254
 	}
255 255
 }
256 256
\ No newline at end of file
Please login to merge, or discard this patch.