Completed
Push — develop ( 732f86...073644 )
by Jens
11:15
created
src/Core/Client/Adapter/Guzzle6Adapter.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @param MessageFormatter $formatter Formatter used to create message strings.
58 58
      * @param string           $logLevel Level at which to log requests.
59 59
      *
60
-     * @return callable Returns a function that accepts the next handler.
60
+     * @return \Closure Returns a function that accepts the next handler.
61 61
      */
62 62
     private static function log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = LogLevel::INFO)
63 63
     {
@@ -90,6 +90,9 @@  discard block
 block discarded – undo
90 90
         };
91 91
     }
92 92
 
93
+    /**
94
+     * @param \Closure $handler
95
+     */
93 96
     public function addHandler($handler)
94 97
     {
95 98
         $this->client->getConfig('handler')->push($handler);
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/Customers/CustomerPasswordResetRequest.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,6 @@
 block discarded – undo
38 38
     protected $newPassword;
39 39
 
40 40
     /**
41
-     * @param string $id
42
-     * @param int $version
43 41
      * @param string $tokenValue
44 42
      * @param string $newPassword
45 43
      * @param Context $context
Please login to merge, or discard this patch.
src/Core/Request/Me/MeDeleteRequest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
     }
30 30
 
31 31
     /**
32
-     * @param string $id
33 32
      * @param int $version
34 33
      * @param Context $context
35 34
      * @return static
Please login to merge, or discard this patch.
src/Core/Request/Me/MePasswordChangeRequest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@
 block discarded – undo
43 43
     protected $newPassword;
44 44
 
45 45
     /**
46
-     * @param string $id
47 46
      * @param int $version
48 47
      * @param string $currentPassword
49 48
      * @param string $newPassword
Please login to merge, or discard this patch.
src/Core/Response/AbstractApiResponse.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -104,6 +104,9 @@
 block discarded – undo
104 104
         return (!in_array($statusCode, [200, 201]));
105 105
     }
106 106
 
107
+    /**
108
+     * @param string $fieldName
109
+     */
107 110
     protected function getResponseField($fieldName, $default = '')
108 111
     {
109 112
         $result = $this->toArray();
Please login to merge, or discard this patch.
src/Commons/Helper/PriceFinder.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
     private $customerGroup;
22 22
     private $channel;
23 23
 
24
+    /**
25
+     * @param string $country
26
+     */
24 27
     public function __construct(
25 28
         $currency,
26 29
         $country = null,
@@ -136,6 +139,9 @@  discard block
 block discarded – undo
136 139
         return is_null($price->getValidFrom()) && is_null($price->getValidUntil());
137 140
     }
138 141
 
142
+    /**
143
+     * @param string $field
144
+     */
139 145
     private function priceHas(Price $price, $field)
140 146
     {
141 147
         return !is_null($price->get($field));
Please login to merge, or discard this patch.
src/Core/Model/Common/JsonObject.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -140,6 +140,9 @@  discard block
 block discarded – undo
140 140
         return $this->getTyped($field);
141 141
     }
142 142
 
143
+    /**
144
+     * @param string $field
145
+     */
143 146
     protected function fieldDefinitionType($field)
144 147
     {
145 148
         return $this->fieldDefinitionValue($field, static::TYPE);
@@ -182,11 +185,17 @@  discard block
 block discarded – undo
182 185
         $this->initialized[$field] = true;
183 186
     }
184 187
 
188
+    /**
189
+     * @param string $field
190
+     */
185 191
     public function isOptional($field)
186 192
     {
187 193
         return $this->fieldDefinitionValue($field, static::OPTIONAL, false);
188 194
     }
189 195
 
196
+    /**
197
+     * @param string $field
198
+     */
190 199
     protected function decorateField($field, $value)
191 200
     {
192 201
         if ($decorator = $this->fieldDefinitionValue($field, static::DECORATOR)) {
Please login to merge, or discard this patch.