Completed
Pull Request — master (#12)
by Patrick
03:26
created
resources/examples/MediaFile/media-file.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 $firstFile = $mediaFileResource->retrieve(current($files)->getId());
36 36
 
37 37
 // uploading a file
38
-$uploadFile = new MediaFileUpload(__DIR__ . '/test.jpg');
38
+$uploadFile = new MediaFileUpload(__DIR__.'/test.jpg');
39 39
 
40 40
 try {
41 41
     $mediaFile = $mediaFileResource->create($uploadFile);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 $deleted = $mediaFileResource->delete($mediaFile->getId());
49 49
 
50 50
 // update a media file
51
-$updateUploadFile = new MediaFileUpload(__DIR__ . '/test.jpg');
51
+$updateUploadFile = new MediaFileUpload(__DIR__.'/test.jpg');
52 52
 $updatedMediaFile = $mediaFileResource->update(current($files)->getId(), $updateUploadFile);
53 53
 
54 54
 var_dump($updatedMediaFile);
55 55
\ No newline at end of file
Please login to merge, or discard this patch.
code-sniffer-standards/StarwebCustom/Sniffs/UnusedUseStatementSniff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 $tokens[$classUsed]['content']
125 125
             ) === $lowerClassName) ||
126 126
                 ($tokens[$classUsed]['code'] == T_DOC_COMMENT_STRING && preg_match(
127
-                    '/(\s|\||^)' . preg_quote($lowerClassName) . '(\s|\||$|\[\])/i',
127
+                    '/(\s|\||^)'.preg_quote($lowerClassName).'(\s|\||$|\[\])/i',
128 128
                     $tokens[$classUsed]['content']
129 129
                 ))
130 130
             ) {
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             $classUsed = $phpcsFile->findNext([T_STRING, T_DOC_COMMENT_STRING, T_RETURN_TYPE], ($classUsed + 1));
162 162
         }//end while
163 163
 
164
-        $warning = 'Unused use statement: ' . $className;
164
+        $warning = 'Unused use statement: '.$className;
165 165
         $fix = $phpcsFile->addFixableWarning($warning, $stackPtr, 'UnusedUse');
166 166
         if ($fix === true) {
167 167
             // Remove the whole use statement line.
Please login to merge, or discard this patch.
src/HttpClient/Plugin/ErrorPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     {
51 51
         $promise = $next($request);
52 52
 
53
-        return $promise->then(function (ResponseInterface $response) use ($request) {
53
+        return $promise->then(function(ResponseInterface $response) use ($request) {
54 54
             return $this->transformResponseToException($request, $response);
55 55
         });
56 56
     }
Please login to merge, or discard this patch.
src/HttpClient/Plugin/RetryAuthenticationPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     {
48 48
         $promise = $next($request);
49 49
 
50
-        return $promise->then(function (ResponseInterface $response) use ($request, $first) {
50
+        return $promise->then(function(ResponseInterface $response) use ($request, $first) {
51 51
             $statusCode = $response->getStatusCode();
52 52
             $content = json_decode($response->getBody(), true);
53 53
 
Please login to merge, or discard this patch.
src/HttpClient/DecoratedHttpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         }
93 93
 
94 94
         if (count($parameters) > 0) {
95
-            $path .= '?' . http_build_query($parameters);
95
+            $path .= '?'.http_build_query($parameters);
96 96
         }
97 97
 
98 98
         $response = $this->send('HEAD', $path, $requestHeaders);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     {
137 137
         $boundary = '----boundary';
138 138
         $builder = $this->getMultipartStreamBuilderForFile($file, $boundary);
139
-        $requestHeaders = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"'];
139
+        $requestHeaders = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"'];
140 140
 
141 141
         $body = $builder->build()->__toString();
142 142
 
Please login to merge, or discard this patch.
src/Api/Resource/Resources.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -28,19 +28,19 @@
 block discarded – undo
28 28
     public const PRODUCT_MANUFACTURER = 'ProductManufacturer';
29 29
     public const PRODUCT_MEDIA_FILE_LINK = 'ProductMediaFileLink';
30 30
     public const PRODUCT_META_DATA = 'ProductMetaData';
31
-    public const PRODUCT_META_DATA_TYPE =    'ProductMetaDataType';
32
-    public const PRODUCT_STOCK_STATUS ='ProductStockStatus';
33
-    public const PRODUCT_UNIT ='ProductUnit';
34
-    public const PRODUCT_VARIANT_ATTRIBUTE_VALUE ='ProductVariantAttributeValue';
35
-    public const PRODUCT_VARIANT_ATTRIBUTE ='ProductVariantAttribute';
36
-    public const PRODUCT_VARIANT_PRICELIST_PRICE ='ProductVariantPricelistPrice';
37
-    public const PRODUCT_VARIANT ='ProductVariant';
38
-    public const PRODUCT_VAT_RATE ='ProductVatRate';
39
-    public const PRODUCT ='Product';
40
-    public const SHIPPING_METHOD ='ShippingMethod';
41
-    public const SHIPPING_TRACKING_TYPE ='ShippingTrackingType';
42
-    public const SHOP ='Shop';
43
-    public const TAG ='Tag';
31
+    public const PRODUCT_META_DATA_TYPE = 'ProductMetaDataType';
32
+    public const PRODUCT_STOCK_STATUS = 'ProductStockStatus';
33
+    public const PRODUCT_UNIT = 'ProductUnit';
34
+    public const PRODUCT_VARIANT_ATTRIBUTE_VALUE = 'ProductVariantAttributeValue';
35
+    public const PRODUCT_VARIANT_ATTRIBUTE = 'ProductVariantAttribute';
36
+    public const PRODUCT_VARIANT_PRICELIST_PRICE = 'ProductVariantPricelistPrice';
37
+    public const PRODUCT_VARIANT = 'ProductVariant';
38
+    public const PRODUCT_VAT_RATE = 'ProductVatRate';
39
+    public const PRODUCT = 'Product';
40
+    public const SHIPPING_METHOD = 'ShippingMethod';
41
+    public const SHIPPING_TRACKING_TYPE = 'ShippingTrackingType';
42
+    public const SHOP = 'Shop';
43
+    public const TAG = 'Tag';
44 44
 
45 45
     /**
46 46
      * @var string[]|null
Please login to merge, or discard this patch.