mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +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
|
* @param ClientInterface $client
|
||||||
*
|
*
|
||||||
* @return Github
|
* @return Linkedin
|
||||||
*/
|
*/
|
||||||
public function setGuzzleClient(ClientInterface $client)
|
public function setGuzzleClient(ClientInterface $client)
|
||||||
{
|
{
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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]);
|
||||||
|
Reference in New Issue
Block a user