-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize coding style to the whole project
- Loading branch information
Showing
83 changed files
with
501 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
$finder = Symfony\CS\Finder::create() | ||
->exclude('Resources') | ||
->in(__DIR__) | ||
; | ||
|
||
return Symfony\CS\Config::create() | ||
->finder($finder) | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,28 +3,27 @@ | |
namespace FOS\MessageBundle\Composer; | ||
|
||
use FOS\MessageBundle\ModelManager\MessageManagerInterface; | ||
use FOS\MessageBundle\Sender\SenderInterface; | ||
use FOS\MessageBundle\Model\ThreadInterface; | ||
use FOS\MessageBundle\ModelManager\ThreadManagerInterface; | ||
use FOS\MessageBundle\MessageBuilder\NewThreadMessageBuilder; | ||
use FOS\MessageBundle\MessageBuilder\ReplyMessageBuilder; | ||
|
||
/** | ||
* Factory for message builders | ||
* Factory for message builders. | ||
* | ||
* @author Thibault Duplessis <[email protected]> | ||
*/ | ||
class Composer implements ComposerInterface | ||
{ | ||
/** | ||
* Message manager | ||
* Message manager. | ||
* | ||
* @var MessageManagerInterface | ||
*/ | ||
protected $messageManager; | ||
|
||
/** | ||
* Thread manager | ||
* Thread manager. | ||
* | ||
* @var ThreadManagerInterface | ||
*/ | ||
|
@@ -37,7 +36,7 @@ public function __construct(MessageManagerInterface $messageManager, ThreadManag | |
} | ||
|
||
/** | ||
* Starts composing a message, starting a new thread | ||
* Starts composing a message, starting a new thread. | ||
* | ||
* @return NewThreadMessageBuilder | ||
*/ | ||
|
@@ -50,7 +49,7 @@ public function newThread() | |
} | ||
|
||
/** | ||
* Starts composing a message in a reply to a thread | ||
* Starts composing a message in a reply to a thread. | ||
* | ||
* @return ReplyMessageBuilder | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,21 @@ | |
use FOS\MessageBundle\Model\ThreadInterface; | ||
|
||
/** | ||
* Factory for message builders | ||
* Factory for message builders. | ||
* | ||
* @author Thibault Duplessis <[email protected]> | ||
*/ | ||
interface ComposerInterface | ||
{ | ||
/** | ||
* Starts composing a message, starting a new thread | ||
* Starts composing a message, starting a new thread. | ||
* | ||
* @return AbstractMessageBuilder | ||
*/ | ||
public function newThread(); | ||
|
||
/** | ||
* Starts composing a message in a reply to a thread | ||
* Starts composing a message in a reply to a thread. | ||
* | ||
* @return AbstractMessageBuilder | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
namespace FOS\MessageBundle\DataTransformer; | ||
|
||
use Symfony\Component\Form\DataTransformerInterface; | ||
|
@@ -7,8 +8,9 @@ | |
use Symfony\Component\Security\Core\User\UserInterface; | ||
use Doctrine\Common\Collections\Collection; | ||
use Doctrine\Common\Collections\ArrayCollection; | ||
|
||
/** | ||
* Transforms collection of UserInterface into strings separated with coma | ||
* Transforms collection of UserInterface into strings separated with coma. | ||
* | ||
* @author Łukasz Pospiech <[email protected]> | ||
*/ | ||
|
@@ -25,7 +27,7 @@ public function __construct(DataTransformerInterface $userToUsernameTransformer) | |
} | ||
|
||
/** | ||
* Transforms a collection of recipients into a string | ||
* Transforms a collection of recipients into a string. | ||
* | ||
* @param Collection $recipients | ||
* | ||
|
@@ -47,12 +49,13 @@ public function transform($recipients) | |
} | ||
|
||
/** | ||
* Transforms a string (usernames) to a Collection of UserInterface | ||
* Transforms a string (usernames) to a Collection of UserInterface. | ||
* | ||
* @param string $usernames | ||
* | ||
* @throws UnexpectedTypeException | ||
* @throws TransformationFailedException | ||
* | ||
* @return Collection $recipients | ||
*/ | ||
public function reverseTransform($usernames) | ||
|
Oops, something went wrong.