@@ -13,18 +13,18 @@ discard block |
||
13 | 13 | |
14 | 14 | // set defaults |
15 | 15 | $releaseDate = new DateTime(); |
16 | -$artistId = null; |
|
17 | -$songId = null; |
|
16 | +$artistId = NULL; |
|
17 | +$songId = NULL; |
|
18 | 18 | $trackLen = -1; |
19 | 19 | $albumName = ''; |
20 | -$lastScore = null; |
|
20 | +$lastScore = NULL; |
|
21 | 21 | $firstRecording = array( |
22 | - 'release' => null, |
|
22 | + 'release' => NULL, |
|
23 | 23 | 'releaseDate' => new DateTime(), |
24 | - 'recording' => null, |
|
25 | - 'artistId' => null, |
|
26 | - 'recordingId' => null, |
|
27 | - 'trackLength' => null |
|
24 | + 'recording' => NULL, |
|
25 | + 'artistId' => NULL, |
|
26 | + 'recordingId' => NULL, |
|
27 | + 'trackLength' => NULL |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | // Set the search arguments to pass into the RecordingFilter |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | // if the recording has a lower score than the previous recording, stop the loop. |
45 | 45 | // This is because scores less than 100 usually don't match the search well |
46 | - if (null != $lastScore && $recording->getScore() < $lastScore) { |
|
46 | + if (NULL != $lastScore && $recording->getScore() < $lastScore) { |
|
47 | 47 | break; |
48 | 48 | } |
49 | 49 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @param ClientInterface $client |
18 | 18 | * @param null $endpoint |
19 | 19 | */ |
20 | - public function __client(ClientInterface $client, $endpoint = null) |
|
20 | + public function __client(ClientInterface $client, $endpoint = NULL) |
|
21 | 21 | { |
22 | 22 | $this->client = $client; |
23 | 23 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @throws Exception |
39 | 39 | * @return array |
40 | 40 | */ |
41 | - public function call($path, array $params = array(), array $options = array(), $isAuthRequired = false, $returnArray = false) |
|
41 | + public function call($path, array $params = array(), array $options = array(), $isAuthRequired = FALSE, $returnArray = FALSE) |
|
42 | 42 | { |
43 | 43 | if($options['user-agent'] == '') { |
44 | 44 | throw new Exception('You must set a valid User Agent before accessing the MusicBrainz API'); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ]; |
53 | 53 | |
54 | 54 | if ($isAuthRequired) { |
55 | - if ($options['user'] != null && $options['password'] != null) { |
|
55 | + if ($options['user'] != NULL && $options['password'] != NULL) { |
|
56 | 56 | $requestOptions['auth'] = [ |
57 | 57 | 'username' => $options['user'], |
58 | 58 | 'password' => $options['password'], |