diff --git a/lib/Alchemy/Phrasea/Command/CheckConfig.php b/lib/Alchemy/Phrasea/Command/CheckConfig.php index 63ffb03f47..7a23670bff 100644 --- a/lib/Alchemy/Phrasea/Command/CheckConfig.php +++ b/lib/Alchemy/Phrasea/Command/CheckConfig.php @@ -13,12 +13,6 @@ namespace Alchemy\Phrasea\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Alchemy\Phrasea\Setup\Requirements\BinariesRequirements; -use Alchemy\Phrasea\Setup\Requirements\FilesystemRequirements; -use Alchemy\Phrasea\Setup\Requirements\LocalesRequirements; -use Alchemy\Phrasea\Setup\Requirements\PhraseaRequirements; -use Alchemy\Phrasea\Setup\Requirements\PhpRequirements; -use Alchemy\Phrasea\Setup\Requirements\SystemRequirements; use Alchemy\Phrasea\Command\Setup\CheckEnvironment; class CheckConfig extends CheckEnvironment diff --git a/lib/Alchemy/Phrasea/Core/Event/Subscriber/ApiExceptionHandlerSubscriber.php b/lib/Alchemy/Phrasea/Core/Event/Subscriber/ApiExceptionHandlerSubscriber.php index 0966f3b0b2..ecac06bd66 100644 --- a/lib/Alchemy/Phrasea/Core/Event/Subscriber/ApiExceptionHandlerSubscriber.php +++ b/lib/Alchemy/Phrasea/Core/Event/Subscriber/ApiExceptionHandlerSubscriber.php @@ -20,7 +20,6 @@ use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; class ApiExceptionHandlerSubscriber implements EventSubscriberInterface diff --git a/lib/Alchemy/Phrasea/Core/Provider/PluginServiceProvider.php b/lib/Alchemy/Phrasea/Core/Provider/PluginServiceProvider.php index 8626d554c2..502b37402c 100644 --- a/lib/Alchemy/Phrasea/Core/Provider/PluginServiceProvider.php +++ b/lib/Alchemy/Phrasea/Core/Provider/PluginServiceProvider.php @@ -59,7 +59,7 @@ class PluginServiceProvider implements ServiceProviderInterface $app['plugins.composer-installer'] = $app->share(function (Application $app) { $binaries = $app['phraseanet.configuration']['binaries']; $phpBinary = isset($binaries['php_binary']) ? $binaries['php_binary'] : null; - + if (!is_executable($phpBinary)) { $finder = new ExecutableFinder(); $phpBinary = $finder->find('php'); diff --git a/lib/Alchemy/Phrasea/Http/DeliverDataInterface.php b/lib/Alchemy/Phrasea/Http/DeliverDataInterface.php index c783398be2..11576cc9c3 100644 --- a/lib/Alchemy/Phrasea/Http/DeliverDataInterface.php +++ b/lib/Alchemy/Phrasea/Http/DeliverDataInterface.php @@ -21,21 +21,21 @@ interface DeliverDataInterface /** * Returns a HTTP Response ready to deliver a binary file * - * @param string $file - * @param string $filename - * @param string $disposition + * @param string $file + * @param string $filename + * @param string $disposition * @param string|null $mimetype - * @param integer $cacheDuration + * @param integer $cacheDuration */ public function deliverFile($file, $filename = null, $disposition = self::DISPOSITION_INLINE, $mimeType = null, $cacheDuration = 3600); /** * Return a HTTP Response ready to deliver data * - * @param string $data - * @param string $filename - * @param string $mimeType - * @param string $disposition + * @param string $data + * @param string $filename + * @param string $mimeType + * @param string $disposition * @param integer $cacheDuration */ public function deliverData($data, $filename, $mimeType, $disposition = self::DISPOSITION_INLINE, $cacheDuration = 3600); diff --git a/lib/Alchemy/Phrasea/Http/ServeFileResponseFactory.php b/lib/Alchemy/Phrasea/Http/ServeFileResponseFactory.php index a22aeff8d4..94aaf5f90b 100644 --- a/lib/Alchemy/Phrasea/Http/ServeFileResponseFactory.php +++ b/lib/Alchemy/Phrasea/Http/ServeFileResponseFactory.php @@ -32,7 +32,7 @@ class ServeFileResponseFactory implements DeliverDataInterface } /** - * @param Application $app + * @param Application $app * @return self */ public static function create(Application $app) diff --git a/lib/Alchemy/Phrasea/Http/XsendfileMapping.php b/lib/Alchemy/Phrasea/Http/XsendfileMapping.php index 07cdb5a385..398539d148 100644 --- a/lib/Alchemy/Phrasea/Http/XsendfileMapping.php +++ b/lib/Alchemy/Phrasea/Http/XsendfileMapping.php @@ -32,7 +32,7 @@ class XsendfileMapping { $final = array(); - foreach($this->mapping as $entry) { + foreach ($this->mapping as $entry) { if (!is_dir($entry['directory']) || '' === $entry['mount-point']) { continue; } @@ -60,7 +60,7 @@ class XsendfileMapping private function validate(array $mapping) { - foreach($mapping as $entry) { + foreach ($mapping as $entry) { if (!is_array($entry)) { throw new InvalidArgumentException('XSendFile mapping entry must be an array'); } diff --git a/lib/classes/set/export.php b/lib/classes/set/export.php index 6ce37c0f69..0208cb8fc2 100644 --- a/lib/classes/set/export.php +++ b/lib/classes/set/export.php @@ -11,8 +11,6 @@ use Alchemy\Phrasea\Application; use Symfony\Component\Filesystem\Filesystem; -use Symfony\Component\HttpFoundation\ResponseHeaderBag; -use Symfony\Component\HttpFoundation\Response; /** * diff --git a/tests/Alchemy/Tests/Phrasea/Cache/ApcCacheTest.php b/tests/Alchemy/Tests/Phrasea/Cache/ApcCacheTest.php index 86627ecabd..6240db61e4 100644 --- a/tests/Alchemy/Tests/Phrasea/Cache/ApcCacheTest.php +++ b/tests/Alchemy/Tests/Phrasea/Cache/ApcCacheTest.php @@ -19,7 +19,7 @@ class ApcCacheTest extends \PHPUnit_Framework_TestCase if (!ini_get('apc.enable_cli')) { $this->markTestSkipped('Apc is not loaded in CLI'); } - + $this->object = new ApcCache; }