Passed
Pull Request — master (#1)
by Oguzhan
02:48
created
src/MusicBrainz/MusicBrainz.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -442,8 +442,8 @@  discard block
 block discarded – undo
442 442
     }
443 443
 
444 444
     /**
445
-     * @param       $entity
446
-     * @param       $mbid
445
+     * @param       string $entity
446
+     * @param       string $mbid
447 447
      * @param array $includes
448 448
      * @param int   $limit
449 449
      * @param null  $offset
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
     /**
561 561
      * Check the list of allowed entities
562 562
      *
563
-     * @param $entity
563
+     * @param string $entity
564 564
      *
565 565
      * @return bool
566 566
      */
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
     /**
573 573
      * Some calls require authentication
574 574
      *
575
-     * @param $entity
575
+     * @param string $entity
576 576
      * @param $includes
577 577
      *
578 578
      * @return bool
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
     /**
720 720
      * Returns the MusicBrainz user
721 721
      *
722
-     * @return null|string
722
+     * @return string
723 723
      */
724 724
     public function getUser()
725 725
     {
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
     /**
740 740
      * Returns the user’s password
741 741
      *
742
-     * @return null|string
742
+     * @return string
743 743
      */
744 744
     public function getPassword()
745 745
     {
Please login to merge, or discard this patch.
src/MusicBrainz/Release.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     /**
109 109
      * @param array $releaseEvents
110 110
      *
111
-     * @return array
111
+     * @return \DateTime
112 112
      */
113 113
     public function getReleaseEventDates(array $releaseEvents)
114 114
     {
Please login to merge, or discard this patch.
examples/first-recording-search.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,7 @@
 block discarded – undo
67 67
     }
68 68
 
69 69
     var_dump(array($firstRecording));
70
-} catch (Exception $e) {
70
+}
71
+catch (Exception $e) {
71 72
     print ($e->getMessage());
72 73
 }
Please login to merge, or discard this patch.
examples/search.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@  discard block
 block discarded – undo
24 24
 try {
25 25
     $releaseGroups = $brainz->search(new ReleaseGroupFilter($args));
26 26
     var_dump($releaseGroups);
27
-} catch (Exception $e) {
27
+}
28
+catch (Exception $e) {
28 29
     print $e->getMessage();
29 30
 }
30 31
 print "\n\n";
@@ -41,7 +42,8 @@  discard block
 block discarded – undo
41 42
 try {
42 43
     $artists = $brainz->search(new ArtistFilter($args));
43 44
     print_r($artists);
44
-} catch (Exception $e) {
45
+}
46
+catch (Exception $e) {
45 47
     print $e->getMessage();
46 48
 }
47 49
 print "\n\n";
@@ -59,7 +61,8 @@  discard block
 block discarded – undo
59 61
 try {
60 62
     $recordings = $brainz->search(new RecordingFilter($args));
61 63
     print_r($recordings);
62
-} catch (Exception $e) {
64
+}
65
+catch (Exception $e) {
63 66
     print $e->getMessage();
64 67
 }
65 68
 print "\n\n";
@@ -75,6 +78,7 @@  discard block
 block discarded – undo
75 78
 try {
76 79
     $labels = $brainz->search(new LabelFilter($args));
77 80
     print_r($labels);
78
-} catch (Exception $e) {
81
+}
82
+catch (Exception $e) {
79 83
     print $e->getMessage();
80 84
 }
Please login to merge, or discard this patch.
examples/lookup.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@  discard block
 block discarded – undo
24 24
 try {
25 25
     $artist = $brainz->lookup('artist', '4dbf5678-7a31-406a-abbe-232f8ac2cd63', $includes);
26 26
     print_r($artist);
27
-} catch (Exception $e) {
27
+}
28
+catch (Exception $e) {
28 29
     print $e->getMessage();
29 30
 }
30 31
 print "\n\n";
@@ -38,6 +39,7 @@  discard block
 block discarded – undo
38 39
     //born this way: the remix
39 40
     $releaseGroup = $brainz->lookup('release-group', 'e4307c5f-1959-4163-b4b1-ded4f9d786b0');
40 41
     print_r($releaseGroup);
41
-} catch (Exception $e) {
42
+}
43
+catch (Exception $e) {
42 44
     echo $e->getMessage();
43 45
 }
Please login to merge, or discard this patch.
examples/browse.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@  discard block
 block discarded – undo
24 24
 try {
25 25
     $releaseGroups = $brainz->search(new ReleaseGroupFilter($args));
26 26
     var_dump($releaseGroups);
27
-} catch (Exception $e) {
27
+}
28
+catch (Exception $e) {
28 29
     print $e->getMessage();
29 30
 }
30 31
 print "\n\n";
@@ -41,7 +42,8 @@  discard block
 block discarded – undo
41 42
 try {
42 43
     $artists = $brainz->search(new ArtistFilter($args));
43 44
     print_r($artists);
44
-} catch (Exception $e) {
45
+}
46
+catch (Exception $e) {
45 47
     print $e->getMessage();
46 48
 }
47 49
 print "\n\n";
@@ -59,7 +61,8 @@  discard block
 block discarded – undo
59 61
 try {
60 62
     $recordings = $brainz->search(new RecordingFilter($args));
61 63
     print_r($recordings);
62
-} catch (Exception $e) {
64
+}
65
+catch (Exception $e) {
63 66
     print $e->getMessage();
64 67
 }
65 68
 print "\n\n";
@@ -75,6 +78,7 @@  discard block
 block discarded – undo
75 78
 try {
76 79
     $labels = $brainz->search(new LabelFilter($args));
77 80
     print_r($labels);
78
-} catch (Exception $e) {
81
+}
82
+catch (Exception $e) {
79 83
     print $e->getMessage();
80 84
 }
Please login to merge, or discard this patch.