Completed
Branch master (7c4194)
by kouinkouin
05:57 queued 02:57
created
src/Bpost/ProductConfiguration/DeliveryMethod.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function setName($name)
67 67
     {
68
-        $this->name = (string)$name;
68
+        $this->name = (string) $name;
69 69
     }
70 70
 
71 71
     /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function setVisibility($visibility)
94 94
     {
95
-        $this->visibility = (string)$visibility;
95
+        $this->visibility = (string) $visibility;
96 96
     }
97 97
 
98 98
     /**
Please login to merge, or discard this patch.
src/Common/BasicAttribute.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     private function setKey($key)
42 42
     {
43
-        $this->key = (string)($key ?: $this->getDefaultKey());
43
+        $this->key = (string) ($key ?: $this->getDefaultKey());
44 44
     }
45 45
 
46 46
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function __toString()
58 58
     {
59
-        return (string)$this->getValue();
59
+        return (string) $this->getValue();
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     /**
19 19
      * BasicAttribute constructor.
20
-     * @param mixed  $value
20
+     * @param string  $value
21 21
      * @param string $key
22 22
      */
23 23
     public function __construct($value, $key = '')
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     }
86 86
 
87 87
     /**
88
-     * @param array $allowedValues
88
+     * @param string[] $allowedValues
89 89
      * @throws BpostInvalidValueException
90 90
      */
91 91
     public function validateChoice(array $allowedValues)
Please login to merge, or discard this patch.
src/Common/ValidatedValue.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function __toString()
48 48
     {
49
-        return (string)$this->getValue();
49
+        return (string) $this->getValue();
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     /**
19 19
      * ValidatedValue constructor.
20
-     * @param mixed $value
20
+     * @param string $value
21 21
      */
22 22
     public function __construct($value)
23 23
     {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @param array $allowedValues
64
+     * @param string[] $allowedValues
65 65
      * @throws BpostInvalidValueException
66 66
      */
67 67
     public function validateChoice(array $allowedValues)
Please login to merge, or discard this patch.
src/Geo6.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 
121 121
         // catch generic errors
122 122
         if (isset($xml['type']) && (string) $xml['type'] == 'TaxipostLocatorError') {
123
-            throw new BpostTaxipostLocatorException((string) $xml->txt, (int)$xml->status);
123
+            throw new BpostTaxipostLocatorException((string) $xml->txt, (int) $xml->status);
124 124
         }
125 125
 
126 126
         // return
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Customsinfo/CustomsInfo.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     }
101 101
 
102 102
     /**
103
-     * @return array
103
+     * @return string[]
104 104
      */
105 105
     public static function getPossibleParcelReturnInstructionValues()
106 106
     {
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     }
168 168
 
169 169
     /**
170
-     * @return array
170
+     * @return string[]
171 171
      */
172 172
     public static function getPossibleShipmentTypeValues()
173 173
     {
Please login to merge, or discard this patch.
src/Bpost/Order/Box/IBox.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,21 +11,24 @@
 block discarded – undo
11 11
 
12 12
     /**
13 13
      * @param array $options
14
+     * @return void
14 15
      */
15 16
     public function setOptions($options);
16 17
 
17 18
     /**
18
-     * @return array
19
+     * @return Option\Option[]
19 20
      */
20 21
     public function getOptions();
21 22
 
22 23
     /**
23 24
      * @param \Bpost\BpostApiClient\Bpost\Order\Box\Option\Option $option
25
+     * @return void
24 26
      */
25 27
     public function addOption(Option\Option $option);
26 28
 
27 29
     /**
28 30
      * @param string $product
31
+     * @return void
29 32
      */
30 33
     public function setProduct($product);
31 34
 
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Openinghour/Day.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
     }
174 174
 
175 175
     /**
176
-     * @return array
176
+     * @return string[]
177 177
      */
178 178
     public static function getPossibleStatusValues()
179 179
     {
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Option/Insurance.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     private $value;
40 40
 
41 41
     /**
42
-     * @return array
42
+     * @return string[]
43 43
      */
44 44
     public static function getPossibleTypeValues()
45 45
     {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     }
94 94
 
95 95
     /**
96
-     * @return array
96
+     * @return integer[]
97 97
      */
98 98
     public static function getPossibleValueValues()
99 99
     {
Please login to merge, or discard this patch.
src/Bpost/Order/Box/Option/SaturdayDelivery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * Return the object as an array for usage in the XML
19 19
      *
20
-     * @param  DomDocument $document
20
+     * @param  DOMDocument $document
21 21
      * @param  string      $prefix
22 22
      * @return DomElement
23 23
      */
Please login to merge, or discard this patch.