@@ -39,7 +39,7 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * @param Entity $object |
| 41 | 41 | * |
| 42 | - * @return bool|ManagerInterface |
|
| 42 | + * @return Entity |
|
| 43 | 43 | */ |
| 44 | 44 | public function getSupport(Entity $object) |
| 45 | 45 | { |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * Adds a mandatory requirement in form of a php.ini configuration. |
| 224 | 224 | * |
| 225 | 225 | * @param string $cfgName The configuration name used for ini_get() |
| 226 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 226 | + * @param boolean|string $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 227 | 227 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 228 | 228 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 229 | 229 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * Adds an optional recommendation in form of a php.ini configuration. |
| 242 | 242 | * |
| 243 | 243 | * @param string $cfgName The configuration name used for ini_get() |
| 244 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 244 | + * @param string|false $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 245 | 245 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 246 | 246 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 247 | 247 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | /** |
| 7 | 7 | * @var Composer\Autoload\ClassLoader $loader |
| 8 | 8 | */ |
| 9 | -$loader = require __DIR__ . '/../app/autoload.php'; |
|
| 9 | +$loader = require __DIR__.'/../app/autoload.php'; |
|
| 10 | 10 | Debug::enable(); |
| 11 | 11 | |
| 12 | 12 | $kernel = new AppKernel('dev', true); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $monTexte = implode( |
| 41 | 41 | "\n", |
| 42 | 42 | array_map( |
| 43 | - function ($ligne) { |
|
| 43 | + function($ligne) { |
|
| 44 | 44 | return trim($ligne); |
| 45 | 45 | }, |
| 46 | 46 | explode("\n", $monTexte) |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | return "<a href='{{unsubscribe:".$lien."}}' style='".$style."' title='Désinscription'>".$texte.'</a>'; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - return "<a href='{{click:".$lien."}}' style='".$style."'>".$texte.'</a>';; |
|
| 61 | + return "<a href='{{click:".$lien."}}' style='".$style."'>".$texte.'</a>'; ; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | public function getSupport($api, $version) |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function testFindAll() |
| 24 | 24 | { |
| 25 | - $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/{{ nomEntity }}Manager.yml',]); |
|
| 25 | + $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/{{ nomEntity }}Manager.yml', ]); |
|
| 26 | 26 | $this->assertCount(10, $this->manager->findAll()); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function testInsertNew{{ nomEntity }}() |
| 34 | 34 | { |
| 35 | - $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml',]); |
|
| 35 | + $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml', ]); |
|
| 36 | 36 | ${{ nomEntity|lower }} = new \{{namespace}}\Entity\{{ nomEntity }}(); |
| 37 | 37 | $this->manager->insert(${{ nomEntity|lower }}); |
| 38 | 38 | $this->assertCount(2, $this->manager->findAll()); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function testUpdate{{ nomEntity }}() |
| 46 | 46 | { |
| 47 | - $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml',]); |
|
| 47 | + $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml', ]); |
|
| 48 | 48 | $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")]; |
| 49 | 49 | ${{ nomEntity|lower }} = $this->manager->findOneBy($criteria); |
| 50 | 50 | |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * @param array $criteria |
| 87 | 87 | * @param array|null $orderBy |
| 88 | 88 | * |
| 89 | - * @return object|null The entity instance or NULL if the entity can not be found. |
|
| 89 | + * @return Entity The entity instance or NULL if the entity can not be found. |
|
| 90 | 90 | */ |
| 91 | 91 | public function findOneBy(array $criteria, array $orderBy = null) |
| 92 | 92 | { |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $options = $this->resolveParams()->resolve($request->query->all()); |
| 20 | 20 | |
| 21 | 21 | $orderBy = !empty($options['sort']) ? array_map( |
| 22 | - function ($r) { |
|
| 22 | + function($r) { |
|
| 23 | 23 | return [substr($r, 1) => substr($r, 0, 1) == '+' ? 'ASC' : 'DESC']; |
| 24 | 24 | }, |
| 25 | 25 | explode(',', $options['sort']) |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $manager = $this->get("starkerxp_campagne.manager.template"); |
| 55 | 55 | |
| 56 | - return new JsonResponse(["payload" => []]);//400 |
|
| 56 | + return new JsonResponse(["payload" => []]); //400 |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | public function postAction(Request $request) |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $manager = $this->get("starkerxp_campagne.manager.template"); |
| 62 | 62 | $options = $manager->getPostOptionResolver()->resolve($request->request->all()); |
| 63 | 63 | |
| 64 | - return new JsonResponse(["payload" => ""], 201);//400 |
|
| 64 | + return new JsonResponse(["payload" => ""], 201); //400 |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | public function putAction(Request $request) |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | true, |
| 57 | 57 | true, |
| 58 | 58 | [ |
| 59 | - 'x-message-ttl' => ['I', $this->getDelaiTemporisation() * 1000], // delay in seconds to milliseconds |
|
| 59 | + 'x-message-ttl' => ['I', $this->getDelaiTemporisation() * 1000], // delay in seconds to milliseconds |
|
| 60 | 60 | "x-expires" => ["I", $this->getDelaiTemporisation() * 1000 + 1000], |
| 61 | 61 | 'x-dead-letter-exchange' => ['S', 'exchange_'.$nomChannel] // after message expiration in delay queue, move message to the right.now.queue |
| 62 | 62 | ] |