just some code and annotation cleanup

This commit is contained in:
Robin Krahnen 2018-04-03 10:23:53 +02:00
parent 653badb31b
commit 026a3d786a
2 changed files with 2 additions and 9 deletions

View file

@ -1,12 +1,9 @@
<?php <?php
namespace DigiComp\Sequence\Service; namespace DigiComp\Sequence\Service;
use Neos\Flow\Annotations as Flow;
/** /**
* SequenceException * SequenceException
*/ */
class Exception extends \Exception class Exception extends \Exception
{ {
} }

View file

@ -40,8 +40,6 @@ class SequenceGenerator
/** /**
* @param string|object $type * @param string|object $type
* *
* @throws Exception
*
* @return int * @return int
*/ */
public function getNextNumberFor($type) public function getNextNumberFor($type)
@ -79,8 +77,7 @@ class SequenceGenerator
} catch (DBALException $e) { } catch (DBALException $e) {
if ($e->getPrevious() && $e->getPrevious() instanceof \PDOException) { if ($e->getPrevious() && $e->getPrevious() instanceof \PDOException) {
// Do nothing, new Doctrine handling hides the above error // Do nothing, new Doctrine handling hides the above error
} } else {
else {
$this->systemLogger->logException($e); $this->systemLogger->logException($e);
} }
} catch (\Exception $e) { } catch (\Exception $e) {
@ -126,9 +123,8 @@ class SequenceGenerator
/** /**
* @param string|object $stringOrObject * @param string|object $stringOrObject
* *
* @throws Exception
*
* @return string * @return string
* @throws Exception
*/ */
protected function inferTypeFromSource($stringOrObject) protected function inferTypeFromSource($stringOrObject)
{ {