Test Setup Failed
Pull Request — master (#623)
by Alejandro Carstens
04:01
created
app/Services/Musixmatch.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     }
37 37
     
38 38
     /**
39
-     * @param App\Models\Song $song
39
+     * @param Song $song
40 40
      * 
41 41
      * @return mixed|null
42 42
      */
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param string $name
61 61
      * @param string $artistName
62 62
      * 
63
-     * @return mixed|false
63
+     * @return false|string
64 64
      */
65 65
     public function search(string $name, string $artistName = null)
66 66
     {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     /**
99 99
      * @param JSON $response
100 100
      * 
101
-     * @return string|null
101
+     * @return string|false
102 102
      */
103 103
     private function getLyrics($response)
104 104
     {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
             $response = $this->jsonpDecode($this->get($uri));
79 79
             
80 80
             return $this->getLyrics($response);
81
-        }catch(\Exception $e){
81
+        } catch(\Exception $e){
82 82
             Log::error($e);
83 83
 
84 84
             return false;
Please login to merge, or discard this patch.
app/Services/RESTfulService.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,9 @@
 block discarded – undo
87 87
             if ($this->responseFormat === 'json') {
88 88
                 $response = json_decode($body);
89 89
                 
90
-                if(!is_null($response)) return $response;
90
+                if(!is_null($response)) {
91
+                    return $response;
92
+                }
91 93
             }
92 94
 
93 95
             if ($this->responseFormat === 'xml') {
Please login to merge, or discard this patch.