Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTK-17203 use php-cs-fixer 2 #2

Open
wants to merge 1 commit into
base: 1.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Controller/ChatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function showAction($channel)
return array(
'enable_chat' => $this->container->getParameter('pumukit_cmar_live.chat.enable'),
'updateInterval' => $this->container->getParameter('pumukit_cmar_live.chat.update_interval'),
'channel' => $channel
'channel' => $channel,
);
}

Expand All @@ -47,7 +47,7 @@ public function postAction(Request $request, $channel)
$message->setInsertDate(new \DateTime());

try {
$dm = $this->get("doctrine_mongodb.odm.document_manager");
$dm = $this->get('doctrine_mongodb.odm.document_manager');
$dm->persist($message);
$dm->flush();
} catch (\Exception $e) {
Expand All @@ -63,7 +63,7 @@ public function postAction(Request $request, $channel)
*/
public function listAction($channel)
{
$dm = $this->get("doctrine_mongodb.odm.document_manager");
$dm = $this->get('doctrine_mongodb.odm.document_manager');
$repo = $dm->getRepository('PumukitCmarLiveBundle:Message');
$messages = $repo->findBy(
array('channel' => $channel),
Expand All @@ -74,4 +74,4 @@ public function listAction($channel)
'messages' => $messages,
);
}
}
}
3 changes: 0 additions & 3 deletions Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace Pumukit\Cmar\LiveBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Pumukit\LiveBundle\Controller\DefaultController as Base;
use Pumukit\LiveBundle\Document\Live;

Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
* This is the class that validates and merges configuration from your app/config files
* This is the class that validates and merges configuration from your app/config files.
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/PumukitCmarLiveExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\DependencyInjection\Loader;

/**
* This is the class that loads and manages your bundle configuration
* This is the class that loads and manages your bundle configuration.
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
*/
Expand Down
22 changes: 11 additions & 11 deletions Document/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
class Message
{
/**
* @var integer id
* @var int id
*
* @MongoDB\Id
*/
private $id;

/**
* @var string $author
* @var string
*
* @MongoDB\String
*/
Expand All @@ -38,14 +38,14 @@ class Message
private $message;

/**
* @var \DateTime $insertDate
* @var \DateTime
*
* @MongoDB\Date
*/
private $insertDate;

/**
* Get id
* Get id.
*
* @return id
*/
Expand All @@ -67,46 +67,46 @@ public function getMessage()
*/
public function setAuthor($author)
{
$this->author = $author;
$this->author = $author;
}

/**
* @return string
*/
public function getAuthor()
{
return $this->author;
return $this->author;
}

/**
* @param string $content
*/
public function setMessage($content)
{
$this->message = $content;
$this->message = $content;
}

/**
* @param \DateTime $insertDate
*/
public function setInsertDate($insertDate)
{
$this->insertDate = $insertDate;
$this->insertDate = $insertDate;
}

/**
* @return \DateTime
*/
public function getInsertDate()
{
return $this->insertDate;
return $this->insertDate;
}

/**
* @param string $channel
*/
public function setChannel($channel)
{
$this->channel = $channel;
$this->channel = $channel;
}
}
}
4 changes: 2 additions & 2 deletions Repository/MessageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use Doctrine\ODM\MongoDB\DocumentRepository;

/**
* MessageRepository
* MessageRepository.
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class MessageRepository extends DocumentRepository
{
}
}