Commit a73e273c authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

CS.

Showing with 11 additions and 9 deletions
+11 -9
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
namespace Irstea\FileUploadBundle\Listener; namespace Irstea\FileUploadBundle\Listener;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Event\LifecycleEventArgs; use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\UnitOfWork;
use Gaufrette\Exception\FileNotFound; use Gaufrette\Exception\FileNotFound;
use Gaufrette\Filesystem;
use Irstea\FileUploadBundle\Entity\UploadedFile;
use PHPUnit_Framework_MockObject_MockObject; use PHPUnit_Framework_MockObject_MockObject;
use PHPUnit_Framework_TestCase; use PHPUnit_Framework_TestCase;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\UnitOfWork;
use Irstea\FileUploadBundle\Entity\UploadedFile;
use Gaufrette\Filesystem;
/** /**
* Generated by PHPUnit_SkeletonGenerator on 2015-01-29 at 14:56:00. * Generated by PHPUnit_SkeletonGenerator on 2015-01-29 at 14:56:00.
...@@ -82,6 +82,7 @@ class UploadedFileListenerTest extends PHPUnit_Framework_TestCase ...@@ -82,6 +82,7 @@ class UploadedFileListenerTest extends PHPUnit_Framework_TestCase
/** /**
* @covers \Irstea\FileUploadBundle\Listener\UploadedFileListener::postLoad * @covers \Irstea\FileUploadBundle\Listener\UploadedFileListener::postLoad
*
* @todo Implement testPostLoad(). * @todo Implement testPostLoad().
*/ */
public function testPostLoad() public function testPostLoad()
......
...@@ -12,7 +12,6 @@ use Irstea\FileUploadBundle\Event\FileUploadCompleteEvent; ...@@ -12,7 +12,6 @@ use Irstea\FileUploadBundle\Event\FileUploadCompleteEvent;
use Irstea\FileUploadBundle\Listener\VirusScannerListener; use Irstea\FileUploadBundle\Listener\VirusScannerListener;
use PHPUnit_Framework_MockObject_MockObject; use PHPUnit_Framework_MockObject_MockObject;
use PHPUnit_Framework_TestCase; use PHPUnit_Framework_TestCase;
use Irstea\FileUploadBundle\Model\UploadedFileInterface;
/** /**
* Generated by PHPUnit_SkeletonGenerator on 2015-01-29 at 14:43:16. * Generated by PHPUnit_SkeletonGenerator on 2015-01-29 at 14:43:16.
...@@ -40,7 +39,7 @@ class VirusScannerListenerTest extends PHPUnit_Framework_TestCase ...@@ -40,7 +39,7 @@ class VirusScannerListenerTest extends PHPUnit_Framework_TestCase
protected $file; protected $file;
/** /**
* {@inheritDoc} * {@inheritdoc}
*/ */
protected function setUp() protected function setUp()
{ {
......
...@@ -34,7 +34,7 @@ class FileUploadExtension extends Twig_Extension ...@@ -34,7 +34,7 @@ class FileUploadExtension extends Twig_Extension
private $urlGenerator; private $urlGenerator;
/** /**
* @param TranslatorInterface $translator * @param TranslatorInterface $translator
* @param FileUrlGeneratorInterface $urlGenerator * @param FileUrlGeneratorInterface $urlGenerator
*/ */
public function __construct(TranslatorInterface $translator, FileUrlGeneratorInterface $urlGenerator) public function __construct(TranslatorInterface $translator, FileUrlGeneratorInterface $urlGenerator)
...@@ -96,7 +96,7 @@ class FileUploadExtension extends Twig_Extension ...@@ -96,7 +96,7 @@ class FileUploadExtension extends Twig_Extension
/** Genère un tag HTML pour représenter le fichier. /** Genère un tag HTML pour représenter le fichier.
* Inclut un lien sécurisé qui permet de télécharger le fichier, mais uniquement à l'utilisateur qui a affiché la page. * Inclut un lien sécurisé qui permet de télécharger le fichier, mais uniquement à l'utilisateur qui a affiché la page.
* Usage : `{{ irstea_uploaded_file(file) }}` * Usage : `{{ irstea_uploaded_file(file) }}`.
* *
* @param Twig_Environment $env * @param Twig_Environment $env
* @param UploadedFileInterface $file * @param UploadedFileInterface $file
...@@ -119,7 +119,7 @@ class FileUploadExtension extends Twig_Extension ...@@ -119,7 +119,7 @@ class FileUploadExtension extends Twig_Extension
/** Genère un URL sécurisée pour télécharger un fichier. /** Genère un URL sécurisée pour télécharger un fichier.
* Usage : `{{ irstea_file_path(file.id) }}`. * Usage : `{{ irstea_file_path(file.id) }}`.
* *
* @param string $idFile * @param string $idFile
* @param bool|int|string $referenceType * @param bool|int|string $referenceType
* *
* @return string * @return string
...@@ -135,6 +135,7 @@ class FileUploadExtension extends Twig_Extension ...@@ -135,6 +135,7 @@ class FileUploadExtension extends Twig_Extension
* @param string $mimeType type MIME * @param string $mimeType type MIME
* *
* @return string un tag <i></i> avec les classes Font-Awesome * @return string un tag <i></i> avec les classes Font-Awesome
*
* @uses \MimeTypeIcon::getMimeTypeIcon * @uses \MimeTypeIcon::getMimeTypeIcon
*/ */
public function formatFileIcon($mimeType) public function formatFileIcon($mimeType)
...@@ -153,6 +154,7 @@ class FileUploadExtension extends Twig_Extension ...@@ -153,6 +154,7 @@ class FileUploadExtension extends Twig_Extension
* @param string $locale Langue * @param string $locale Langue
* *
* @return string * @return string
*
* @uses \NumberFormatter * @uses \NumberFormatter
*/ */
public function formatFileSize($context, $size, $precision = null, $locale = null) public function formatFileSize($context, $size, $precision = null, $locale = null)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment