Apply fixes from StyleCI (#777)

This commit is contained in:
Phan An 2018-08-19 11:06:59 +02:00 committed by GitHub
parent 5fbec01c50
commit d4d2b0aff3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 10 deletions

View file

@ -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

View file

@ -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.

View file

@ -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()

View file

@ -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') {

View file

@ -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') {

View file

@ -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);
}
}

View file

@ -3,7 +3,6 @@
namespace Tests\Integration\Models;
use App\Models\Artist;
use org\bovigo\vfs\vfsStream;
use Tests\TestCase;
class ArtistTest extends TestCase

View file

@ -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
*/