Passed
Push — master ( 3b245e...8adee2 )
by Oguzhan
05:30 queued 03:04
created
src/MusicBrainz/HttpAdapters/GuzzleFiveAdapter.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      * @param ClientInterface $client
18 18
      * @param null $endpoint
19 19
      */
20
-    public function __construct(ClientInterface $client, $endpoint = null)
20
+    public function __construct(ClientInterface $client, $endpoint = NULL)
21 21
     {
22 22
         $this->client = $client;
23 23
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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');
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         ];
54 54
 
55 55
         if ($isAuthRequired) {
56
-            if ($options['user'] != null && $options['password'] != null) {
56
+            if ($options['user'] != NULL && $options['password'] != NULL) {
57 57
                 $requestOptions['auth'] = [
58 58
                     'username' => $options['user'],
59 59
                     'password' => $options['password'],
Please login to merge, or discard this patch.