@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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 |
@@ -124,7 +124,7 @@ discard block |
||
| 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 |
||
| 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. |
@@ -50,7 +50,7 @@ |
||
| 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 | } |
@@ -47,7 +47,7 @@ |
||
| 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 | |
@@ -92,7 +92,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -28,19 +28,19 @@ |
||
| 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 |