Completed
Push — master ( 0d9c5e...26547b )
by Guillaume
10:17
created
src/Starkerxp/StructureBundle/Manager/EntityManager.php 1 patch
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.
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.
src/Starkerxp/CampagneBundle/Render/BuzzExpertRender.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
         return $contenu;
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $contenu
16
+     */
14 17
     public function remplacerLesCaracteresSpeciaux($contenu)
15 18
     {
16 19
         // Gestion des accents.
Please login to merge, or discard this patch.
src/Starkerxp/StructureBundle/Command/TestCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     protected function execute(InputInterface $input, OutputInterface $output)
28 28
     {
29 29
         $metadata = $this->getContainer()->get('doctrine.orm.entity_manager')->getClassMetadata("StarkerxpCampagneBundle:Template2")
30
-           ;
30
+            ;
31 31
         dump($metadata);
32 32
 
33 33
     }
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/CampagneBundle/Render/OctosendHtmlRender.php 1 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
     private function renderLien($type, $contenu)
37 40
     {
38 41
         $arrayContenu = [];
@@ -49,6 +52,11 @@  discard block
 block discarded – undo
49 52
 
50 53
     }
51 54
 
55
+    /**
56
+     * @param string $lien
57
+     * @param string $texte
58
+     * @param string $style
59
+     */
52 60
     protected function retournerLaChaine($type, $lien, $texte, $style = null)
53 61
     {
54 62
         if ($type == "unsub") {
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Controller/EventController.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 class EventController extends StructureController
14 14
 {
15
-	/**
15
+    /**
16 16
      * @ApiDoc(
17 17
      *      resource=true,
18 18
      *      description="Liste les events.",
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
     }
73 73
 
74 74
 	
75
-	/**
75
+    /**
76 76
      * @ApiDoc(
77 77
      *      resource=true,
78 78
      *      description="Affiche un event.",
79 79
      *      section="Campagne",
80
-	 *      requirements={
80
+     *      requirements={
81 81
      *          {
82 82
      *              "name"="campagne_id",
83 83
      *              "dataType"="integer",
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         return new JsonResponse($retour);
120 120
     }
121 121
 
122
-	/**
122
+    /**
123 123
      * @ApiDoc(
124 124
      *      resource=true,
125 125
      *      description="Ajoute un event.",
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
         return new JsonResponse(["payload" => $this->getFormErrors($form)], 400);
148 148
     }
149 149
 
150
-	/**
150
+    /**
151 151
      * @ApiDoc(
152 152
      *      resource=true,
153 153
      *      description="Modifie un event.",
154 154
      *      section="Campagne",
155
-	 *      requirements={
155
+     *      requirements={
156 156
      *          {
157 157
      *              "name"="campagne_id",
158 158
      *              "dataType"="integer",
@@ -191,12 +191,12 @@  discard block
 block discarded – undo
191 191
         return new JsonResponse(["payload" => $this->getFormErrors($form)], 400);
192 192
     }
193 193
 
194
-	/**
194
+    /**
195 195
      * @ApiDoc(
196 196
      *      resource=true,
197 197
      *      description="Supprime un event.",
198 198
      *      section="Campagne",
199
-	 *      requirements={
199
+     *      requirements={
200 200
      *          {
201 201
      *              "name"="campagne_id",
202 202
      *              "dataType"="integer",
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Controller/CampagneController.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 class CampagneController extends StructureController
14 14
 {
15
-	/**
15
+    /**
16 16
      * @ApiDoc(
17 17
      *      resource=true,
18 18
      *      description="Liste les campagnes.",
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
         return new JsonResponse($retour);
72 72
     }
73 73
 	
74
-	/**
74
+    /**
75 75
      * @ApiDoc(
76 76
      *      resource=true,
77 77
      *      description="Affiche une campagne.",
78 78
      *      section="Campagne",
79
-	 *      requirements={
79
+     *      requirements={
80 80
      *          {
81 81
      *              "name"="campagne_id",
82 82
      *              "dataType"="integer",
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         return new JsonResponse($retour);
113 113
     }
114 114
 
115
-	/**
115
+    /**
116 116
      * @ApiDoc(
117 117
      *      resource=true,
118 118
      *      description="Ajoute une campagne.",
@@ -140,12 +140,12 @@  discard block
 block discarded – undo
140 140
         return new JsonResponse(["payload" => $this->getFormErrors($form)], 400);
141 141
     }
142 142
 
143
-	/**
143
+    /**
144 144
      * @ApiDoc(
145 145
      *      resource=true,
146 146
      *      description="Modifie une campagne.",
147 147
      *      section="Campagne",
148
-	 *      requirements={
148
+     *      requirements={
149 149
      *          {
150 150
      *              "name"="campagne_id",
151 151
      *              "dataType"="integer",
@@ -178,12 +178,12 @@  discard block
 block discarded – undo
178 178
         return new JsonResponse(["payload" => $this->getFormErrors($form)], 400);
179 179
     }
180 180
 
181
-	/**
181
+    /**
182 182
      * @ApiDoc(
183 183
      *      resource=true,
184 184
      *      description="Supprime une campagne.",
185 185
      *      section="Campagne",
186
-	 *      requirements={
186
+     *      requirements={
187 187
      *          {
188 188
      *              "name"="campagne_id",
189 189
      *              "dataType"="integer",
Please login to merge, or discard this patch.
src/Starkerxp/UtilisateurBundle/Controller/UtilisateurController.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 class UtilisateurController extends StructureController
14 14
 {
15
-	/**
15
+    /**
16 16
      * @ApiDoc(
17 17
      *      resource=true,
18 18
      *      description="Liste les utilisateurs.",
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
 	
76
-	/**
76
+    /**
77 77
      * @ApiDoc(
78 78
      *      resource=true,
79 79
      *      description="Affiche un utilisateur.",
80 80
      *      section="Utilisateur",
81
-	 *      requirements={
81
+     *      requirements={
82 82
      *          {
83 83
      *              "name"="utilisateur_id",
84 84
      *              "dataType"="integer",
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         return new JsonResponse($retour);
115 115
     }
116 116
 
117
-	/**
117
+    /**
118 118
      * @ApiDoc(
119 119
      *      resource=true,
120 120
      *      description="Ajoute un utilisateur.",
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
142 142
         return new JsonResponse(["payload" => $this->getFormErrors($form)], 400);
143 143
     }
144 144
 
145
-	/**
145
+    /**
146 146
      * @ApiDoc(
147 147
      *      resource=true,
148 148
      *      description="Modifie un utilisateur.",
149 149
      *      section="Utilisateur",
150
-	 *      requirements={
150
+     *      requirements={
151 151
      *          {
152 152
      *              "name"="utilisateur_id",
153 153
      *              "dataType"="integer",
@@ -180,12 +180,12 @@  discard block
 block discarded – undo
180 180
         return new JsonResponse(["payload" => $this->getFormErrors($form)], 400);
181 181
     }
182 182
 
183
-	/**
183
+    /**
184 184
      * @ApiDoc(
185 185
      *      resource=true,
186 186
      *      description="Supprime un utilisateur.",
187 187
      *      section="Utilisateur",
188
-	 *      requirements={
188
+     *      requirements={
189 189
      *          {
190 190
      *              "name"="utilisateur_id",
191 191
      *              "dataType"="integer",
Please login to merge, or discard this patch.