From cd985e6a19acafe0e6e2db442c317012b7375116 Mon Sep 17 00:00:00 2001
From: Predhumeau Manon <manon.predhumeau@irstea.fr>
Date: Fri, 20 Oct 2017 11:30:14 +0200
Subject: [PATCH] CS.

---
 Listener/VirusScannerListener.php           | 9 +++++----
 Tests/Listener/VirusScannerListenerTest.php | 5 ++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Listener/VirusScannerListener.php b/Listener/VirusScannerListener.php
index f4b49a9d..c79d637b 100644
--- a/Listener/VirusScannerListener.php
+++ b/Listener/VirusScannerListener.php
@@ -6,9 +6,9 @@
 
 namespace Irstea\FileUploadBundle\Listener;
 
-use Xenolope\Quahog\Client;
 use Irstea\FileUploadBundle\Event\FileUploadCompleteEvent;
 use Irstea\FileUploadBundle\Exception\RejectedFileException;
+use Xenolope\Quahog\Client;
 use Xenolope\Quahog\Exception\ConnectionException;
 
 /**
@@ -21,7 +21,6 @@ class VirusScannerListener
      */
     private $client;
 
-
     /**
      * @param Client $client
      */
@@ -30,9 +29,9 @@ class VirusScannerListener
         $this->client = $client;
     }
 
-
     /**
      * @param FileUploadCompleteEvent $event
+     *
      * @throws ConnectionException
      */
     public function onFileUploadCompleted(FileUploadCompleteEvent $event)
@@ -61,13 +60,15 @@ class VirusScannerListener
     }
 
     /**
-     * @return Client
      * @throws ConnectionException
+     *
+     * @return Client
      */
     private function getClient(): Client
     {
         // Check clamd server's state
         $this->client->ping();
+
         return $this->client;
     }
 }
diff --git a/Tests/Listener/VirusScannerListenerTest.php b/Tests/Listener/VirusScannerListenerTest.php
index 590dbffb..ef71021d 100644
--- a/Tests/Listener/VirusScannerListenerTest.php
+++ b/Tests/Listener/VirusScannerListenerTest.php
@@ -40,7 +40,7 @@ class VirusScannerListenerTest extends PHPUnit_Framework_TestCase
     protected $file;
 
     /**
-     * {@inheritDoc}
+     * {@inheritdoc}
      */
     protected function setUp()
     {
@@ -93,7 +93,7 @@ class VirusScannerListenerTest extends PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException Xenolope\Quahog\Exception\ConnectionException
+     * @expectedException \Xenolope\Quahog\Exception\ConnectionException
      */
     public function testGetClientFailed()
     {
@@ -106,5 +106,4 @@ class VirusScannerListenerTest extends PHPUnit_Framework_TestCase
         $this->client->expects($this->once())->method('ping')->willReturn(true);
         $this->listener->onFileUploadCompleted($this->event);
     }
-
 }
-- 
GitLab