Completed
Push — master ( 49aef3...36c459 )
by Guillaume
02:30
created
src/Starkerxp/StructureBundle/Manager/EntityManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@
 block discarded – undo
102 102
      *
103 103
      * @return bool|EntityRepository
104 104
      */
105
-    public function getRepository(Entity $object){
106
-        if(!$manager = $this->getManager( $object)){
105
+    public function getRepository(Entity $object) {
106
+        if (!$manager = $this->getManager($object)) {
107 107
             return false;
108 108
         }
109 109
         return $manager->getRepository();
Please login to merge, or discard this patch.
var/SymfonyRequirements.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
web/app_dev.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Render/HtmlToTxtRender.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Render/OctosendHtmlRender.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
33 33
         return $contenuReplace;
34 34
     }
35 35
 
36
+    /**
37
+     * @param string $type
38
+     */
36 39
     protected function renderLien($type, $contenu)
37 40
     {
38 41
         if (!in_array($type, ["unsub", "click"])) {
@@ -52,6 +55,11 @@  discard block
 block discarded – undo
52 55
 
53 56
     }
54 57
 
58
+    /**
59
+     * @param string $lien
60
+     * @param string $texte
61
+     * @param string $style
62
+     */
55 63
     protected function retournerLaChaine($type, $lien, $texte, $style = null)
56 64
     {
57 65
         if ($type == "unsub") {
Please login to merge, or discard this patch.
Resources/views/Gabarit/Tests/Manager/_nomEntity_ManagerTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
        
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use {{ namespace }}\Manager\{{ nomEntity }}Manager;
6 6
 
7
-class {{nomEntity}}ManagerTest extends \Starkerxp\StructureBundle\Tests\WebTest
7
+class
8
+{
9
+{nomEntity}}ManagerTest extends \Starkerxp\StructureBundle\Tests\WebTest
8 10
 {
9 11
 
10 12
     /** @var  {{ nomEntity }}Manager */
Please login to merge, or discard this patch.
src/Starkerxp/RabbitmqBundle/Command/ReceiverLockCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
                 ]
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Manager/TemplateManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
             "sujet"   => $object->getSujet(),
24 24
             "message" => $object->getMessage(),
25 25
         ];
26
-        if(empty($fields)){
26
+        if (empty($fields)) {
27 27
             return $array;
28 28
         }
29 29
         $export = [];
30
-        foreach($fields as $row){
30
+        foreach ($fields as $row) {
31 31
             $export[$row] = $array[$row];
32 32
         }
33 33
         return $export;
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Controller/TemplateController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             return new JsonResponse([]);
28 28
         }
29 29
         $retour = array_map(
30
-            function ($element) use ($manager, $options) {
30
+            function($element) use ($manager, $options) {
31 31
                 return $manager->toArray($element, $this->getFields($options['fields']));
32 32
             },
33 33
             $resultSets
Please login to merge, or discard this patch.