Passed
Push — master ( 43d504...19d623 )
by Stefan
03:01
created
src/Locator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      * Create the TimeInTransit request.
87 87
      *
88 88
      * @param LocatorRequest $locatorRequest The request details. Refer to the UPS documentation for available structure
89
-     * @param $requestOption
89
+     * @param integer $requestOption
90 90
      *
91 91
      * @return string
92 92
      */
Please login to merge, or discard this patch.
src/Entity/COD.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
         }
31 31
     }
32 32
 
33
-     /**
34
-     * @param null|DOMDocument $document
35
-     *
36
-     * @return DOMElement
37
-     */
33
+        /**
34
+         * @param null|DOMDocument $document
35
+         *
36
+         * @return DOMElement
37
+         */
38 38
     public function toNode(DOMDocument $document = null)
39 39
     {
40 40
         if (null === $document) {
Please login to merge, or discard this patch.
src/Shipping.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      *
70 70
      * @throws Exception
71 71
      *
72
-     * @return stdClass
72
+     * @return \stdClass
73 73
      */
74 74
     public function confirm(
75 75
         $validation,
Please login to merge, or discard this patch.
src/Tradeability.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -112,14 +112,14 @@
 block discarded – undo
112 112
     /**
113 113
      * Creates and sends a request for the given data. Most errors are handled in SoapRequest
114 114
      *
115
-     * @param $request
116
-     * @param $endpoint
117
-     * @param $operation
118
-     * @param $wsdl
115
+     * @param string $request
116
+     * @param string $endpoint
117
+     * @param string $operation
118
+     * @param string $wsdl
119 119
      *
120 120
      * @throws Exception
121 121
      *
122
-     * @return TimeInTransitRequest
122
+     * @return \stdClass
123 123
      */
124 124
     private function sendRequest($request, $endpoint, $operation, $wsdl)
125 125
     {
Please login to merge, or discard this patch.
src/Ups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,6 +212,6 @@
 block discarded – undo
212 212
     {
213 213
         $base = ($this->useIntegration ? $this->integrationBaseUrl : $this->productionBaseUrl);
214 214
 
215
-        return $base . $segment;
215
+        return $base.$segment;
216 216
     }
217 217
 }
Please login to merge, or discard this patch.
src/Entity/AddressArtifactFormat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
         $node = $document->createElement('AddressArtifactFormat');
41 41
 
42 42
         for ($i = 1; $i <= 3; $i++) {
43
-            $line = $this->{'getPoliticalDivision' . $i}();
43
+            $line = $this->{'getPoliticalDivision'.$i}();
44 44
             if ($line) {
45
-                $node->appendChild($document->createElement('PoliticalDivision' . $i, $line));
45
+                $node->appendChild($document->createElement('PoliticalDivision'.$i, $line));
46 46
             }
47 47
         }
48 48
 
Please login to merge, or discard this patch.
src/Entity/AddressValidation/AddressClassification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     public function __construct(\SimpleXMLElement $object)
9 9
     {
10 10
         if ($object->count() == 0) {
11
-            throw new \InvalidArgumentException(__METHOD__ . ': The passed object does not have any child nodes.');
11
+            throw new \InvalidArgumentException(__METHOD__.': The passed object does not have any child nodes.');
12 12
         }
13 13
         $this->code = $object->Code;
14 14
         $this->description = $object->Description;
Please login to merge, or discard this patch.
src/Entity/AddressValidation/AVAddress.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,15 +62,15 @@  discard block
 block discarded – undo
62 62
     public function __construct(\SimpleXMLElement $xmlDoc)
63 63
     {
64 64
         if ($xmlDoc->count() == 0) {
65
-            throw new \InvalidArgumentException(__METHOD__ . ': The passed object does not have any child nodes.');
65
+            throw new \InvalidArgumentException(__METHOD__.': The passed object does not have any child nodes.');
66 66
         }
67 67
         $this->addressClassification = isset($xmlDoc->AddressClassification) ? new AddressClassification($xmlDoc->AddressClassification) : null;
68 68
         $this->consigneeName = isset($xmlDoc->ConsigneeName) ? (string)$xmlDoc->ConsigneeName : '';
69 69
         $this->buildingName = isset($xmlDoc->BuildingName) ? (string)$xmlDoc->BuildingName : '';
70 70
         if (isset($xmlDoc->AddressLine)) {
71 71
             for ($i = 0, $len = count($xmlDoc->AddressLine); $i < $len; $i++) {
72
-                $var = 'addressLine' . ($i > 0 ? $i + 1 : '');
73
-                $this->{$var} = isset($xmlDoc->AddressLine[$i]) ? (string) $xmlDoc->AddressLine[$i] : '';
72
+                $var = 'addressLine'.($i > 0 ? $i + 1 : '');
73
+                $this->{$var} = isset($xmlDoc->AddressLine[$i]) ? (string)$xmlDoc->AddressLine[$i] : '';
74 74
             }
75 75
         }
76 76
         $this->region = isset($xmlDoc->Region) ? (string)$xmlDoc->Region : '';
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function getPostalCodeWithExtension($divider = '-')
156 156
     {
157
-        return $this->postcodePrimaryLow . $divider . $this->postcodeExtendedLow;
157
+        return $this->postcodePrimaryLow.$divider.$this->postcodeExtendedLow;
158 158
     }
159 159
 
160 160
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public function getAddressLine($lineNumber = 1)
167 167
     {
168
-        $var = 'addressLine' . ($lineNumber > 1 ? $lineNumber : '');
168
+        $var = 'addressLine'.($lineNumber > 1 ? $lineNumber : '');
169 169
         return $this->{$var};
170 170
     }
171 171
 }
Please login to merge, or discard this patch.
src/Entity/Product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
         $node = $document->createElement('Product');
82 82
         for ($i = 1; $i <= 3; $i++) {
83
-            $desc = $this->{'getDescription' . $i}();
83
+            $desc = $this->{'getDescription'.$i}();
84 84
             if ($desc !== null) {
85 85
                 $node->appendChild($document->createElement('Description', $desc));
86 86
             }
Please login to merge, or discard this patch.