Completed
Push — master ( 4bb011...4b99be )
by Guillaume
13:23
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/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.
web/app_test.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('test', true);
Please login to merge, or discard this patch.
src/Starkerxp/StructureBundle/Generator/AbstractGenerator.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -33,6 +33,10 @@  discard block
 block discarded – undo
33 33
         return $this;
34 34
     }
35 35
 
36
+    /**
37
+     * @param string[] $search
38
+     * @param string[] $replace
39
+     */
36 40
     protected function traiterLesFichiers($bundle, $parameters, $search, $replace)
37 41
     {
38 42
         foreach ($this->getFichiers() as $template) {
@@ -52,6 +56,9 @@  discard block
 block discarded – undo
52 56
 
53 57
     public abstract function getFichiers();
54 58
 
59
+    /**
60
+     * @param string $target
61
+     */
55 62
     public function traiterLeFichier($fichier, $target, $parameters)
56 63
     {
57 64
         if (file_exists($target) && explode('.', basename($target))[1] == 'yml') {
@@ -100,6 +107,9 @@  discard block
 block discarded – undo
100 107
         return true;
101 108
     }
102 109
 
110
+    /**
111
+     * @param string $clef
112
+     */
103 113
     protected function genererParameters($clef, $controller)
104 114
     {
105 115
         $controller = explode(':', $controller);
Please login to merge, or discard this patch.
src/Starkerxp/StructureBundle/Generator/ControllerGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
             '/Controller/_nomController_Controller.php',
40 40
             '/Tests/Controller/_nomController_ControllerTest.php',
41 41
             '/Form/Type/_nomController_Type.php',
42
-            '/Resources/config/routing.yml',  // Il faut récupérer la locale par défaut afin de générer le bon fichier.
43
-            '/Resources/translations/_lnomController_._locale_.yml',  // Il faut récupérer la locale par défaut afin de générer le bon fichier.
42
+            '/Resources/config/routing.yml', // Il faut récupérer la locale par défaut afin de générer le bon fichier.
43
+            '/Resources/translations/_lnomController_._locale_.yml', // Il faut récupérer la locale par défaut afin de générer le bon fichier.
44 44
         ];
45 45
     }
46 46
 
Please login to merge, or discard this patch.
src/Starkerxp/StructureBundle/Command/AbstractImportCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
         $this->nombreElementsRestant = $this->input->getOption("nombreElements");
39 39
         $this->nombreElementsParPaquet = $this->input->getOption("nombreParPaquet");
40 40
         // Gestion de la configuration pour le mode trigger
41
-        if ($this->modeSelection == "trigger" && (int)$this->input->getOption("nombreDeMinutes")) {
42
-            $nombreDeMinutes = (int)$this->input->getOption("nombreDeMinutes");
41
+        if ($this->modeSelection == "trigger" && (int) $this->input->getOption("nombreDeMinutes")) {
42
+            $nombreDeMinutes = (int) $this->input->getOption("nombreDeMinutes");
43 43
             $dateMin = (new \DateTime())->sub(new \DateInterval("PT".$nombreDeMinutes."M"));
44 44
             $dateMax = new \DateTime();
45 45
             $this->dateMin = $dateMin->format("Y-m-d H:i:s");
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                 $jourMinimum = $tmp;
56 56
                 unset($tmp);
57 57
             }
58
-            $this->nombreDeJourATraiter = abs((int)$this->input->getOption("nombreDeJours"));
58
+            $this->nombreDeJourATraiter = abs((int) $this->input->getOption("nombreDeJours"));
59 59
             if (empty($jourMinimum) && empty($jourMaximum)) {
60 60
                 // min = j-1-$this->nombreDeJourATraiter max =j-1
61 61
                 $jourMinimum = (new \DateTime())->sub(new \DateInterval("P".($this->nombreDeJourATraiter + 1)."D"));
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         }
163 163
         // Dans le cas ou l'id est saisi et qu'il s'agit du mode par défaut.
164 164
         if (empty($this->modeSelection)) {
165
-            if ((int)$this->input->getOption("id")) {
165
+            if ((int) $this->input->getOption("id")) {
166 166
                 return $this->input->getOption("id");
167 167
             }
168 168
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             ->addOption('force', '', InputOption::VALUE_NONE, 'Permet de reimporter les données; même celles déjà importées')// Depends du mode choisis.
190 190
             //
191 191
             ->addOption('id', '', InputOption::VALUE_OPTIONAL, "permet de définir à partir de quel id inclus on importe les données")
192
-            ->addOption('nombreDeMinutes','',InputOption::VALUE_OPTIONAL,"permet de modifier le nombre de minute necessaire pour être présent dans la sélection, par défaut 5",5)
192
+            ->addOption('nombreDeMinutes', '', InputOption::VALUE_OPTIONAL, "permet de modifier le nombre de minute necessaire pour être présent dans la sélection, par défaut 5", 5)
193 193
             ->addOption(
194 194
                 'nombreDeJours',
195 195
                 '',
Please login to merge, or discard this patch.
src/Starkerxp/StructureBundle/Command/GenererDataTestCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
                 }
94 94
                 $export[strtolower($nomTable).'_'.$row['id']] = $dataExport;
95 95
             }
96
-            $contenu .= Yaml::dump([$namespace => $export,], 2, 4)."\n";
96
+            $contenu .= Yaml::dump([$namespace => $export, ], 2, 4)."\n";
97 97
         }
98 98
         echo $contenu;
99 99
     }
Please login to merge, or discard this patch.