Passed
Push — develop ( 2d8cfd...b69d17 )
by Jens
08:18
created
src/Core/Helper/Annotate/ClassAnnotator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Commercetools\Core\Model\Common\JsonObject;
9 9
 use Commercetools\Core\Model\Common\Resource;
10 10
 use Commercetools\Core\Model\MapperInterface;
11
-use Commercetools\Core\Request\AbstractApiRequest;
12 11
 use Commercetools\Core\Response\ApiResponseInterface;
13 12
 use DateTime;
14 13
 
Please login to merge, or discard this patch.
src/Core/Helper/Annotate/ReflectedClass.php 1 patch
Doc Comments   +14 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
         $this->reflectConstructorArgs();
38 38
     }
39 39
 
40
+    /**
41
+     * @param string $type
42
+     */
40 43
     public function addMagicGetSetMethod(
41 44
         $type,
42 45
         $fieldName,
@@ -67,6 +70,10 @@  discard block
 block discarded – undo
67 70
         $this->magicGetSetMethods[$name] = $magicMethod;
68 71
     }
69 72
 
73
+    /**
74
+     * @param string $methodName
75
+     * @param string $returnTypeHint
76
+     */
70 77
     public function addMagicMethod(
71 78
         $methodName,
72 79
         $args,
@@ -132,7 +139,7 @@  discard block
 block discarded – undo
132 139
 
133 140
     /**
134 141
      * @param $className
135
-     * @param $alias
142
+     * @param string $alias
136 143
      */
137 144
     public function addUse($className, $alias = null)
138 145
     {
@@ -251,6 +258,9 @@  discard block
 block discarded – undo
251 258
         return $type . ucfirst($fieldName);
252 259
     }
253 260
 
261
+    /**
262
+     * @param string[] $matches
263
+     */
254 264
     protected function reflectMagicMethods($matches)
255 265
     {
256 266
         list(, $static, $returnTypeHint, $returnsReference, $name, $args, $shortDescription) = $matches;
@@ -300,7 +310,7 @@  discard block
 block discarded – undo
300 310
     }
301 311
 
302 312
     /**
303
-     * @return mixed
313
+     * @return string
304 314
      */
305 315
     public function getNamespace()
306 316
     {
@@ -340,7 +350,7 @@  discard block
 block discarded – undo
340 350
     }
341 351
 
342 352
     /**
343
-     * @return mixed
353
+     * @return string
344 354
      */
345 355
     public function getFileName()
346 356
     {
@@ -356,7 +366,7 @@  discard block
 block discarded – undo
356 366
     }
357 367
 
358 368
     /**
359
-     * @return mixed
369
+     * @return string
360 370
      */
361 371
     public function getShortClassName()
362 372
     {
Please login to merge, or discard this patch.
src/Core/Model/Common/LocaleTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
 
9 9
 trait LocaleTrait
10 10
 {
11
+    /**
12
+     * @param string $locale
13
+     */
11 14
     public function setLocale($locale)
12 15
     {
13 16
         $locale = \Locale::canonicalize($locale);
Please login to merge, or discard this patch.
src/Core/Request/Carts/Command/CartAddCustomLineItemAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Commercetools\Core\Model\Common\Context;
9 9
 use Commercetools\Core\Model\Common\LocalizedString;
10 10
 use Commercetools\Core\Model\Common\Money;
11
-use Commercetools\Core\Model\TaxCategory\TaxCategory;
12 11
 use Commercetools\Core\Request\AbstractAction;
13 12
 use Commercetools\Core\Model\TaxCategory\TaxCategoryReference;
14 13
 use Commercetools\Core\Model\CustomField\CustomFieldObjectDraft;
Please login to merge, or discard this patch.
src/Core/Request/Carts/Command/CartSetLineItemTotalPriceAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 namespace Commercetools\Core\Request\Carts\Command;
7 7
 
8 8
 use Commercetools\Core\Model\Common\Context;
9
-use Commercetools\Core\Model\TaxCategory\ExternalTaxRateDraft;
10 9
 use Commercetools\Core\Request\AbstractAction;
11 10
 use Commercetools\Core\Model\Cart\ExternalLineItemTotalPrice;
12 11
 
Please login to merge, or discard this patch.
src/Core/Request/Categories/Command/CategorySetAssetSourcesAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 namespace Commercetools\Core\Request\Categories\Command;
7 7
 
8 8
 use Commercetools\Core\Model\Common\Context;
9
-use Commercetools\Core\Model\Common\LocalizedString;
10 9
 use Commercetools\Core\Request\AbstractAction;
11 10
 use Commercetools\Core\Model\Common\AssetSourceCollection;
12 11
 
Please login to merge, or discard this patch.
src/Core/Request/Inventory/Command/InventorySetSupplyChannelAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 
9 9
 use Commercetools\Core\Model\Common\Context;
10 10
 use Commercetools\Core\Request\AbstractAction;
11
-use Commercetools\Core\Model\Channel\Channel;
12 11
 use Commercetools\Core\Model\Channel\ChannelReference;
13 12
 
14 13
 /**
Please login to merge, or discard this patch.
src/Core/Request/Payments/Command/PaymentAddTransactionAction.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,6 @@
 block discarded – undo
8 8
 use Commercetools\Core\Model\Common\Context;
9 9
 use Commercetools\Core\Model\Payment\Transaction;
10 10
 use Commercetools\Core\Request\AbstractAction;
11
-use Commercetools\Core\Model\Customer\CustomerReference;
12
-use Commercetools\Core\Model\State\StateReference;
13 11
 
14 12
 /**
15 13
  * @package Commercetools\Core\Request\Payments\Command
Please login to merge, or discard this patch.
src/Core/Request/Products/Command/ProductAddAssetAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 
6 6
 namespace Commercetools\Core\Request\Products\Command;
7 7
 
8
-use Commercetools\Core\Model\Common\Asset;
9 8
 use Commercetools\Core\Model\Common\Context;
10 9
 use Commercetools\Core\Request\AbstractAction;
11 10
 use Commercetools\Core\Model\Common\AssetDraft;
Please login to merge, or discard this patch.