Completed
Pull Request — master (#2129)
by
unknown
11:02
created
core/lib/Thelia/Action/ProductSaleElement.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -393,6 +393,9 @@
 block discarded – undo
393 393
         $event->getDispatcher()->dispatch(TheliaEvents::PRODUCT_UPDATE_PRODUCT_SALE_ELEMENT, $clonedProductUpdatePSEEvent);
394 394
     }
395 395
 
396
+    /**
397
+     * @param string $type
398
+     */
396 399
     public function clonePSEAssociatedFiles($clonedProductId, $clonedProductPSEId, $originalProductPSEFiles, $type)
397 400
     {
398 401
         foreach ($originalProductPSEFiles as $originalProductPSEFile) {
Please login to merge, or discard this patch.
core/lib/Thelia/Action/Translation.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param  string $domain the translation domain (fontoffice, backoffice, module, etc...)
70 70
      * @param  array $strings the list of strings
71 71
      * @throws \InvalidArgumentException if $walkMode contains an invalid value
72
-     * @return number the total number of translatable texts
72
+     * @return integer the total number of translatable texts
73 73
      */
74 74
     protected function walkDir($directory, $walkMode, $currentLocale, $domain, &$strings)
75 75
     {
@@ -338,6 +338,9 @@  discard block
 block discarded – undo
338 338
         }
339 339
     }
340 340
 
341
+    /**
342
+     * @param string $path
343
+     */
341 344
     protected function normalizePath($path)
342 345
     {
343 346
         $path = str_replace(
Please login to merge, or discard this patch.
core/lib/Thelia/Cart/CartTrait.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -14,13 +14,7 @@
 block discarded – undo
14 14
 
15 15
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
16 16
 use Thelia\Core\HttpFoundation\Request;
17
-use Thelia\Model\CartQuery;
18
-use Thelia\Model\Cart as CartModel;
19
-use Thelia\Model\ConfigQuery;
20
-use Thelia\Model\Customer;
21 17
 use Thelia\Core\HttpFoundation\Session\Session;
22
-use Thelia\Core\Event\TheliaEvents;
23
-use Thelia\Core\Event\Cart\CartEvent;
24 18
 
25 19
 /**
26 20
  * managed cart
Please login to merge, or discard this patch.
core/lib/Thelia/Command/ModuleGenerateCommand.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -87,6 +87,10 @@
 block discarded – undo
87 87
         }
88 88
     }
89 89
 
90
+    /**
91
+     * @param string $filename
92
+     * @param string $skeletonDir
93
+     */
90 94
     protected function copyConfigFile($filename, $skeletonDir, Filesystem $fs)
91 95
     {
92 96
         $filename = $this->moduleDirectory . DIRECTORY_SEPARATOR . "Config" . DIRECTORY_SEPARATOR . $filename;
Please login to merge, or discard this patch.
core/lib/Thelia/Controller/Admin/AbstractSeoCrudController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Thelia\Core\Security\AccessManager;
17 17
 use Thelia\Form\Definition\AdminForm;
18 18
 use Thelia\Form\Exception\FormValidationException;
19
-use Thelia\Form\SeoForm;
20 19
 
21 20
 /**
22 21
  * Extend abstract CRUD controller to manage basic CRUD + SEO operations on a given object.
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
     /**
120 120
      * Hydrate the SEO form for this object, before passing it to the update template
121 121
      *
122
-     * @param mixed $object
122
+     * @param \Thelia\Model\Brand $object
123 123
      */
124 124
     protected function hydrateSeoForm($object)
125 125
     {
Please login to merge, or discard this patch.
core/lib/Thelia/Controller/Admin/AddressController.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * Fills in the form data array
98 98
      *
99
-     * @param  unknown        $object
99
+     * @param  \Thelia\Model\Address        $object
100 100
      * @return array
101 101
      */
102 102
     protected function createFormDataArray($object)
@@ -201,7 +201,6 @@  discard block
 block discarded – undo
201 201
     /**
202 202
      * Get the created object from an event.
203 203
      *
204
-     * @param unknown $createEvent
205 204
      */
206 205
     protected function getObjectFromEvent($event)
207 206
     {
@@ -210,6 +209,7 @@  discard block
 block discarded – undo
210 209
 
211 210
     /**
212 211
      * Load an existing object from the database
212
+     * @return \Thelia\Model\Address
213 213
      */
214 214
     protected function getExistingObject()
215 215
     {
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
      * Put in this method post object delete processing if required.
287 287
      *
288 288
      * @param  \Thelia\Core\Event\AddressEvent $deleteEvent the delete event
289
-     * @return Response                        a response, or null to continue normal processing
289
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse                        a response, or null to continue normal processing
290 290
      */
291 291
     protected function performAdditionalDeleteAction($deleteEvent)
292 292
     {
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      * Put in this method post object creation processing if required.
298 298
      *
299 299
      * @param  AddressCreateOrUpdateEvent $createEvent the create event
300
-     * @return Response                   a response, or null to continue normal processing
300
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse                   a response, or null to continue normal processing
301 301
      */
302 302
     protected function performAdditionalCreateAction($createEvent)
303 303
     {
Please login to merge, or discard this patch.
core/lib/Thelia/Controller/Admin/BaseAdminController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
      * @param mixed $modules   a single module or an array of modules.
142 142
      * @param mixed $accesses  a single access or an array of accesses.
143 143
      *
144
-     * @return mixed null if authorization is granted, or a Response object which contains the error page otherwise
144
+     * @return null|Response null if authorization is granted, or a Response object which contains the error page otherwise
145 145
      */
146 146
     protected function checkAuth($resources, $modules, $accesses)
147 147
     {
Please login to merge, or discard this patch.
core/lib/Thelia/Controller/Admin/BrandController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
261 261
     }
262 262
 
263 263
     /**
264
-     * @return BrandToggleVisibilityEvent|void
264
+     * @return BrandToggleVisibilityEvent
265 265
      */
266 266
     protected function createToggleVisibilityEvent()
267 267
     {
Please login to merge, or discard this patch.
core/lib/Thelia/Controller/Admin/ContentController.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 
344 344
     /**
345 345
      * @param  \Thelia\Core\Event\Content\ContentUpdateEvent $updateEvent
346
-     * @return Response|void
346
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse|null
347 347
      */
348 348
     protected function performAdditionalUpdateAction($updateEvent)
349 349
     {
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      * Put in this method post object delete processing if required.
362 362
      *
363 363
      * @param  \Thelia\Core\Event\Content\ContentDeleteEvent $deleteEvent the delete event
364
-     * @return Response                                      a response, or null to continue normal processing
364
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse                                      a response, or null to continue normal processing
365 365
      */
366 366
     protected function performAdditionalDeleteAction($deleteEvent)
367 367
     {
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 
374 374
     /**
375 375
      * @param $event \Thelia\Core\Event\UpdatePositionEvent
376
-     * @return null|Response
376
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse|null
377 377
      */
378 378
     protected function performAdditionalUpdatePositionAction($event)
379 379
     {
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
     /**
392 392
      * @param $positionChangeMode
393 393
      * @param $positionValue
394
-     * @return UpdatePositionEvent|void
394
+     * @return UpdatePositionEvent
395 395
      */
396 396
     protected function createUpdatePositionEvent($positionChangeMode, $positionValue)
397 397
     {
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     }
404 404
 
405 405
     /**
406
-     * @return ContentToggleVisibilityEvent|void
406
+     * @return ContentToggleVisibilityEvent
407 407
      */
408 408
     protected function createToggleVisibilityEvent()
409 409
     {
Please login to merge, or discard this patch.