Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer
2016-03-11 16:13:39 +00:00
parent ce313d94ca
commit d8d4d79309
19 changed files with 51 additions and 38 deletions

View File

@@ -42,7 +42,7 @@ class Linkedin extends AbstractProvider
/** /**
* @param ClientInterface $client * @param ClientInterface $client
* *
* @return Github * @return Linkedin
*/ */
public function setGuzzleClient(ClientInterface $client) public function setGuzzleClient(ClientInterface $client)
{ {

View File

@@ -42,7 +42,8 @@ class Colorspace extends AbstractChecker
$boolean = true; //bypass color if empty array $boolean = true; //bypass color if empty array
} elseif (method_exists($file->getMedia(), 'getColorSpace')) { } elseif (method_exists($file->getMedia(), 'getColorSpace')) {
$colorspace = null; $colorspace = null;
switch ($file->getMedia()->getColorSpace()) { switch ($file->getMedia()->getColorSpace())
{
case \MediaVorus\Media\Image::COLORSPACE_CMYK: case \MediaVorus\Media\Image::COLORSPACE_CMYK:
$colorspace = self::COLORSPACE_CMYK; $colorspace = self::COLORSPACE_CMYK;
break; break;

View File

@@ -152,7 +152,8 @@ class File
*/ */
public function getType() public function getType()
{ {
switch ($this->media->getType()) { switch ($this->media->getType())
{
case MediaInterface::TYPE_AUDIO: case MediaInterface::TYPE_AUDIO:
return new Audio(); return new Audio();
break; break;

View File

@@ -95,17 +95,28 @@ class Manager
return $cache; return $cache;
} }
/**
* @param string $name
* @param string $label
*/
private function register($name, $label) private function register($name, $label)
{ {
$this->registry[$label] = $name; $this->registry[$label] = $name;
$this->save(); $this->save();
} }
/**
* @param string $name
* @param string $label
*/
private function isAlreadyRegistered($name, $label) private function isAlreadyRegistered($name, $label)
{ {
return isset($this->registry[$label]) && $name === $this->registry[$label]; return isset($this->registry[$label]) && $name === $this->registry[$label];
} }
/**
* @param string $label
*/
private function isAlreadyLoaded($label) private function isAlreadyLoaded($label)
{ {
return isset($this->drivers[$label]); return isset($this->drivers[$label]);