@@ -94,7 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | // Delete non-existing songs. |
| 97 | - $hashes = array_map(function ($f) { |
|
| 97 | + $hashes = array_map(function($f) { |
|
| 98 | 98 | return self::getHash($f->getPath()); |
| 99 | 99 | }, array_merge($results['ugly'], $results['good'])); |
| 100 | 100 | |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | // 'duplicated-name.mp3' => currentFileIndex |
| 121 | 121 | ]; |
| 122 | 122 | |
| 123 | - $songs->each(function ($s) use ($zip, &$localNames) { |
|
| 123 | + $songs->each(function($s) use ($zip, &$localNames) { |
|
| 124 | 124 | try { |
| 125 | 125 | $path = $this->fromSong($s); |
| 126 | 126 | |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | 'summary' => $this->formatText(array_get($album, 'wiki.summary')), |
| 149 | 149 | 'full' => $this->formatText(array_get($album, 'wiki.content')), |
| 150 | 150 | ], |
| 151 | - 'tracks' => array_map(function ($track) { |
|
| 151 | + 'tracks' => array_map(function($track) { |
|
| 152 | 152 | return [ |
| 153 | 153 | 'title' => $track['name'], |
| 154 | 154 | 'length' => (int) $track['duration'], |