mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Apply fixes from StyleCI (#777)
This commit is contained in:
parent
5fbec01c50
commit
d4d2b0aff3
8 changed files with 8 additions and 10 deletions
|
@ -77,8 +77,8 @@ class File
|
|||
* Construct our File object.
|
||||
* Upon construction, we'll set the path, hash, and associated Song object (if any).
|
||||
*
|
||||
* @param string|SplFileInfo $path Either the file's path, or a SplFileInfo object
|
||||
* @param getID3|null $getID3 A getID3 object
|
||||
* @param string|SplFileInfo $path Either the file's path, or a SplFileInfo object
|
||||
* @param getID3|null $getID3 A getID3 object
|
||||
* @param MediaMetadataService|null $mediaMetadataService
|
||||
*
|
||||
* @throws getid3_exception
|
||||
|
|
|
@ -73,7 +73,7 @@ class MediaMetadataService
|
|||
/**
|
||||
* Write an artist image file with binary data and update the Artist with the new image attribute.
|
||||
*
|
||||
* @param Artist $artist
|
||||
* @param Artist $artist
|
||||
* @param string $binaryData
|
||||
* @param string $extension The file extension
|
||||
* @param string $destination The destination path. Automatically generated if empty.
|
||||
|
|
|
@ -25,6 +25,7 @@ abstract class TestCase extends BaseTestCase
|
|||
|
||||
/**
|
||||
* Create a sample media set, with a complete artist+album+song trio.
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function createSampleMediaSet()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace App\Listeners {
|
||||
if (!function_exists(__NAMESPACE__ . '/init_get')) {
|
||||
if (!function_exists(__NAMESPACE__.'/init_get')) {
|
||||
function ini_get($key)
|
||||
{
|
||||
if ($key === 'allow_url_fopen') {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace App\Listeners {
|
||||
if (function_exists(__NAMESPACE__ . '/init_get')) {
|
||||
if (function_exists(__NAMESPACE__.'/init_get')) {
|
||||
function ini_get($key)
|
||||
{
|
||||
if ($key === 'allow_url_fopen') {
|
||||
|
|
|
@ -4,7 +4,6 @@ namespace Tests\Integration\Models;
|
|||
|
||||
use App\Models\Album;
|
||||
use App\Models\Artist;
|
||||
use org\bovigo\vfs\vfsStream;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AlbumTest extends TestCase
|
||||
|
@ -74,5 +73,4 @@ class AlbumTest extends TestCase
|
|||
// Then its artist is Various Artist
|
||||
$this->assertTrue($album->artist->is_various);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
namespace Tests\Integration\Models;
|
||||
|
||||
use App\Models\Artist;
|
||||
use org\bovigo\vfs\vfsStream;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ArtistTest extends TestCase
|
||||
|
|
|
@ -8,10 +8,10 @@ use Mockery\MockInterface;
|
|||
trait InteractsWithIoc
|
||||
{
|
||||
/**
|
||||
* Mock an IOC dependency, for example an injected service in controllers
|
||||
* Mock an IOC dependency, for example an injected service in controllers.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param array $args
|
||||
* @param array $args
|
||||
*
|
||||
* @return MockInterface
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue