mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
@@ -42,7 +42,7 @@ class Linkedin extends AbstractProvider
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
*
|
||||
* @return Github
|
||||
* @return Linkedin
|
||||
*/
|
||||
public function setGuzzleClient(ClientInterface $client)
|
||||
{
|
||||
|
@@ -42,7 +42,8 @@ class Colorspace extends AbstractChecker
|
||||
$boolean = true; //bypass color if empty array
|
||||
} elseif (method_exists($file->getMedia(), 'getColorSpace')) {
|
||||
$colorspace = null;
|
||||
switch ($file->getMedia()->getColorSpace()) {
|
||||
switch ($file->getMedia()->getColorSpace())
|
||||
{
|
||||
case \MediaVorus\Media\Image::COLORSPACE_CMYK:
|
||||
$colorspace = self::COLORSPACE_CMYK;
|
||||
break;
|
||||
|
@@ -152,7 +152,8 @@ class File
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
switch ($this->media->getType()) {
|
||||
switch ($this->media->getType())
|
||||
{
|
||||
case MediaInterface::TYPE_AUDIO:
|
||||
return new Audio();
|
||||
break;
|
||||
|
@@ -95,17 +95,28 @@ class Manager
|
||||
return $cache;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param string $label
|
||||
*/
|
||||
private function register($name, $label)
|
||||
{
|
||||
$this->registry[$label] = $name;
|
||||
$this->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param string $label
|
||||
*/
|
||||
private function isAlreadyRegistered($name, $label)
|
||||
{
|
||||
return isset($this->registry[$label]) && $name === $this->registry[$label];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $label
|
||||
*/
|
||||
private function isAlreadyLoaded($label)
|
||||
{
|
||||
return isset($this->drivers[$label]);
|
||||
|
Reference in New Issue
Block a user