-
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.
Merge pull request #290 from FriendsOfSymfony/cs-fixes
Normalize coding style to the whole project
- Loading branch information
Showing
95 changed files
with
904 additions
and
594 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,45 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- hhvm | ||
sudo: false | ||
|
||
env: | ||
- SYMFONY_VERSION=2.1.* | ||
- SYMFONY_VERSION=2.2.* | ||
- SYMFONY_VERSION=2.3.* | ||
- SYMFONY_VERSION=dev-master | ||
branches: | ||
only: | ||
- master | ||
|
||
matrix: | ||
include: | ||
- php: 5.3 | ||
env: | ||
- deps=low | ||
- SYMFONY_VERSION=2.7.* | ||
- php: 5.4 | ||
env: | ||
- deps=high | ||
- SYMFONY_VERSION=2.7.* | ||
- php: 5.5 | ||
env: | ||
- deps=low | ||
- SYMFONY_VERSION=2.8.* | ||
- php: 5.6 | ||
env: | ||
- deps=high | ||
- SYMFONY_VERSION=3.0.* | ||
- php: 7.0 | ||
env: | ||
- deps=low | ||
- SYMFONY_VERSION=3.1.* | ||
- php: 7.1 | ||
env: | ||
- deps=high | ||
- SYMFONY_VERSION=3.1.* | ||
|
||
before_script: | ||
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update | ||
- composer update --dev | ||
- if [[ $deps = high ]]; then composer update --no-progress --ansi; fi | ||
- if [[ $deps = low ]]; then composer update --no-progress --ansi --prefer-lowest --prefer-stable; fi | ||
|
||
script: phpunit --coverage-text | ||
|
||
notifications: | ||
email: | ||
- [email protected] | ||
|
||
matrix: | ||
allow_failures: | ||
- env: SYMFONY_VERSION=dev-master | ||
- php: 5.6 | ||
- php: hhvm |
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 | ||
*/ | ||
|
Oops, something went wrong.