Skip to content

Commit d5a5910

Browse files
committed
styleci changes
1 parent ae84d66 commit d5a5910

8 files changed

Lines changed: 13 additions & 14 deletions

File tree

Entity/TicketMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class TicketMessage implements TicketMessageInterface
6868
*/
6969
protected $createdAt;
7070

71-
71+
7272
public function __construct()
7373
{
7474
$this->setCreatedAt(new \DateTime());

EventListener/UserLoad.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ public function getSubscribedEvents()
2525
public function postLoad(LifecycleEventArgs $args)
2626
{
2727
$entity = $args->getEntity();
28-
28+
2929
// Ignore any entity lifecycle events not relating to this bundles entities.
30-
if(!$entity instanceof Ticket && !$entity instanceof TicketMessage){
30+
if (!$entity instanceof Ticket && !$entity instanceof TicketMessage) {
3131
return;
3232
}
33-
33+
3434
$userRepository = $args->getEntityManager()->getRepository($this->userRepository);
3535

3636
if ($entity instanceof Ticket) {

Manager/TicketManager.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ class TicketManager implements TicketManagerInterface
1515
private $ticketClass;
1616
private $ticketMessageClass;
1717

18+
/**
19+
* TicketManager constructor.
20+
*
21+
* @param ObjectManager $om
22+
* @param string $ticketClass
23+
* @param string $ticketMessageClass
24+
*/
1825
public function __construct(ObjectManager $om, $ticketClass, $ticketMessageClass)
1926
{
2027
$this->objectManager = $om;
@@ -68,9 +75,7 @@ public function updateTicket(TicketInterface $ticket, TicketMessageInterface $me
6875
/**
6976
* Delete a ticket from the database.
7077
*
71-
* @param TicketInterface $ticket
72-
*
73-
* @return void
78+
* @param TicketInterface $ticket*
7479
*/
7580
public function deleteTicket(TicketInterface $ticket)
7681
{

Manager/UserManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getCurrentUser()
4141
public function getUserById($userId)
4242
{
4343
if (!$userId) {
44-
return null;
44+
return;
4545
}
4646

4747
$user = $this->userRepository->find($userId);

Model/TicketInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Hackzilla\Bundle\TicketBundle\Model;
44

5-
6-
75
interface TicketInterface
86
{
97
/**

Model/TicketMessageInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ public function setTicket(TicketInterface $ticket = null);
146146
*/
147147
public function getTicket();
148148

149-
150149
const STATUS_INVALID = 0;
151150
const STATUS_OPEN = 10;
152151
const STATUS_IN_PROGRESS = 11;
@@ -176,5 +175,4 @@ public function getTicket();
176175
self::PRIORITY_MEDIUM => 'PRIORITY_MEDIUM',
177176
self::PRIORITY_HIGH => 'PRIORITY_HIGH',
178177
];
179-
180178
}

Tests/Form/Type/TicketMessageTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Hackzilla\Bundle\TicketBundle\Entity\TicketMessage;
66
use Hackzilla\Bundle\TicketBundle\Form\Type\TicketMessageType;
77
use Hackzilla\Bundle\TicketBundle\Manager\UserManagerInterface;
8-
use Symfony\Component\Form\AbstractType;
98
use Symfony\Component\Form\PreloadedExtension;
109
use Symfony\Component\Form\Test\TypeTestCase;
1110

Tests/Form/Type/TicketTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Hackzilla\Bundle\TicketBundle\Form\Type\TicketMessageType;
66
use Hackzilla\Bundle\TicketBundle\Form\Type\TicketType;
77
use Hackzilla\Bundle\TicketBundle\Manager\UserManagerInterface;
8-
use Symfony\Component\Form\AbstractType;
98
use Symfony\Component\Form\PreloadedExtension;
109
use Symfony\Component\Form\Test\TypeTestCase;
1110

0 commit comments

Comments
 (0)