| @@ -42,7 +42,7 @@ discard block | ||
| 42 | 42 | */ | 
| 43 | 43 | public function searchLyricsRelatedToSong(Song $song) | 
| 44 | 44 |      { | 
| 45 | - if($song->hasLyrics() == false) | |
| 45 | + if ($song->hasLyrics() == false) | |
| 46 | 46 |          { | 
| 47 | 47 |              if (!$song->artist->isUnknown() && !$song->artist->isVarious()) { | 
| 48 | 48 | $lyrics = $this->search($song->title, $song->artist->name); | 
| @@ -74,11 +74,11 @@ discard block | ||
| 74 | 74 | $this->key | 
| 75 | 75 | ); | 
| 76 | 76 | |
| 77 | -        try{ | |
| 77 | +        try { | |
| 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; | 
| @@ -92,7 +92,7 @@ discard block | ||
| 92 | 92 | */ | 
| 93 | 93 | private function jsonpDecode($response) | 
| 94 | 94 |      { | 
| 95 | -        return json_decode(substr(preg_replace("/[^(]*\((.*)\)/","$1",$response), 0, -1)); | |
| 95 | +        return json_decode(substr(preg_replace("/[^(]*\((.*)\)/", "$1", $response), 0, -1)); | |
| 96 | 96 | } | 
| 97 | 97 | |
| 98 | 98 | /** | 
| @@ -104,7 +104,7 @@ discard block | ||
| 104 | 104 |      { | 
| 105 | 105 | $lyrics = $response->message->body->lyrics->lyrics_body; | 
| 106 | 106 | |
| 107 | - if(strlen($lyrics)) | |
| 107 | + if (strlen($lyrics)) | |
| 108 | 108 |          { | 
| 109 | 109 | // Correct Musixmatch spelling mistake (is for are). | 
| 110 | 110 | return substr($lyrics, 0, strpos($lyrics, "******* This Lyrics is NOT for Commercial use *******")). | 
| @@ -78,7 +78,7 @@ | ||
| 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; | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | } | 
| 36 | 36 | |
| 37 | 37 | /** | 
| 38 | - * @param App\Models\Song $song | |
| 38 | + * @param Song $song | |
| 39 | 39 | * | 
| 40 | 40 | * @return mixed|null | 
| 41 | 41 | */ | 
| @@ -59,7 +59,7 @@ discard block | ||
| 59 | 59 | * @param string $name | 
| 60 | 60 | * @param string $artistName | 
| 61 | 61 | * | 
| 62 | - * @return mixed|false | |
| 62 | + * @return string | |
| 63 | 63 | */ | 
| 64 | 64 | public function search(string $name, string $artistName = null) | 
| 65 | 65 |      { |