Skip to content

Commit

Permalink
Code style fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
devtronic committed Oct 17, 2017
1 parent f6f8970 commit 507f1eb
Show file tree
Hide file tree
Showing 47 changed files with 95 additions and 101 deletions.
1 change: 0 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ public function getOrder($id)
[],
GetOrderResponse::class
);

}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/QuotaExceededException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public function __construct($message = "", $code = 0, Throwable $previous = null
{
parent::__construct($message, $code, $previous);
}
}
}
2 changes: 1 addition & 1 deletion src/Model/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ class Address
* @JsonField(name="NameAddition", type="string")
*/
public $nameAddition;
}
}
2 changes: 1 addition & 1 deletion src/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ class Category
* @JsonField(name="Name", type="string")
*/
public $name = '';
}
}
2 changes: 1 addition & 1 deletion src/Model/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ class Comment
* @JsonField(name="Name", type="string")
*/
public $name;
}
}
2 changes: 1 addition & 1 deletion src/Model/DeliveryNoteDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ class DeliveryNoteDocument
* @JsonField(name="PdfDownloadUrl", type="string")
*/
public $pdfDownloadUrl;
}
}
2 changes: 1 addition & 1 deletion src/Model/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ class Event
* @JsonField(name="OrderId", type="int")
*/
public $orderId = null;
}
}
2 changes: 1 addition & 1 deletion src/Model/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ class Image
* @JsonField(name="IsDefault", type="bool")
*/
public $isDefault = 1;
}
}
4 changes: 2 additions & 2 deletions src/Model/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Invoice
* @var string
* @JsonField(name="ShopName", type="string")
*/
public $shopName = null;
public $shopName = null;

/**
* @var InvoicePosition[]
Expand All @@ -138,4 +138,4 @@ class Invoice
* @JsonField(name="VatMode", type="int")
*/
public $vatMode = Product::VAT_INDEX_NORMAL;
}
}
2 changes: 1 addition & 1 deletion src/Model/InvoiceDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ class InvoiceDocument
* @JsonField(name="PdfDownloadUrl", type="string")
*/
public $pdfDownloadUrl;
}
}
2 changes: 1 addition & 1 deletion src/Model/InvoicePosition.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ class InvoicePosition
* @JsonField(name="Title", type="string")
*/
public $title = '';
}
}
2 changes: 1 addition & 1 deletion src/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,4 @@ class Order
* @JsonField(name="CustomerNumber", type="string")
*/
public $customerNumber;
}
}
4 changes: 1 addition & 3 deletions src/Model/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,4 @@ class OrderItem
* @JsonField(name="DontAdjustStock", type="bool")
*/
public $dontAdjustStock;


}
}
3 changes: 1 addition & 2 deletions src/Model/OrderItemAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ class OrderItemAttribute
* @JsonField(name="Price", type="float")
*/
public $price;

}
}
2 changes: 1 addition & 1 deletion src/Model/PartnerOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ class PartnerOrder
* @JsonField(name="CanCreateAutoInvoice", type="bool")
*/
public $canCreateAutoInvoice = false;
}
}
70 changes: 35 additions & 35 deletions src/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,40 +77,40 @@ class Product
const RECIPIENT_BIRDS = 16;

// Occasion
CONST OCCASION_NA = null;
CONST OCCASION_GRADUATION = 1;
CONST OCCASION_SYMPATHY = 2;
CONST OCCASION_BAR_OR_BAT_MITZVAH = 3;
CONST OCCASION_CANADA_DAY = 4;
CONST OCCASION_CHINESE_NEW_YEAR = 5;
CONST OCCASION_CINCO_DE_MAYO = 6;
CONST OCCASION_DAY_OF_THE_DEAD = 7;
CONST OCCASION_JULY_4TH = 8;
CONST OCCASION_EID = 9;
CONST OCCASION_BIRTHDAY = 10;
CONST OCCASION_GET_WELL = 11;
CONST OCCASION_HALLOWEEN = 12;
CONST OCCASION_HANUKKAH = 13;
CONST OCCASION_HOUSEWARMING = 14;
CONST OCCASION_WEDDING = 15;
CONST OCCASION_ANNIVERSARY = 16;
CONST OCCASION_CONFIRMATION = 17;
CONST OCCASION_KWANZAA = 18;
CONST OCCASION_MOTHERS_DAY = 19;
CONST OCCASION_NEW_BABY = 20;
CONST OCCASION_NEW_YEARS = 21;
CONST OCCASION_EASTER = 22;
CONST OCCASION_PROM = 23;
CONST OCCASION_QUINCEANERA = 24;
CONST OCCASION_RETIREMENT = 25;
CONST OCCASION_ST_PATRICKS_DAY = 26;
CONST OCCASION_SWEET_16 = 27;
CONST OCCASION_BAPTISM = 28;
CONST OCCASION_THANKSGIVING = 29;
CONST OCCASION_VALENTINES = 30;
CONST OCCASION_FATHERS_DAY = 31;
CONST OCCASION_ENGAGEMENT = 32;
CONST OCCASION_CHRISTMAS = 33;
const OCCASION_NA = null;
const OCCASION_GRADUATION = 1;
const OCCASION_SYMPATHY = 2;
const OCCASION_BAR_OR_BAT_MITZVAH = 3;
const OCCASION_CANADA_DAY = 4;
const OCCASION_CHINESE_NEW_YEAR = 5;
const OCCASION_CINCO_DE_MAYO = 6;
const OCCASION_DAY_OF_THE_DEAD = 7;
const OCCASION_JULY_4TH = 8;
const OCCASION_EID = 9;
const OCCASION_BIRTHDAY = 10;
const OCCASION_GET_WELL = 11;
const OCCASION_HALLOWEEN = 12;
const OCCASION_HANUKKAH = 13;
const OCCASION_HOUSEWARMING = 14;
const OCCASION_WEDDING = 15;
const OCCASION_ANNIVERSARY = 16;
const OCCASION_CONFIRMATION = 17;
const OCCASION_KWANZAA = 18;
const OCCASION_MOTHERS_DAY = 19;
const OCCASION_NEW_BABY = 20;
const OCCASION_NEW_YEARS = 21;
const OCCASION_EASTER = 22;
const OCCASION_PROM = 23;
const OCCASION_QUINCEANERA = 24;
const OCCASION_RETIREMENT = 25;
const OCCASION_ST_PATRICKS_DAY = 26;
const OCCASION_SWEET_16 = 27;
const OCCASION_BAPTISM = 28;
const OCCASION_THANKSGIVING = 29;
const OCCASION_VALENTINES = 30;
const OCCASION_FATHERS_DAY = 31;
const OCCASION_ENGAGEMENT = 32;
const OCCASION_CHRISTMAS = 33;

/**
* @var int
Expand Down Expand Up @@ -399,4 +399,4 @@ class Product
* @JsonField(name="TaricNumber", type="string")
*/
public $taricNumber = '';
}
}
2 changes: 1 addition & 1 deletion src/Model/Seller.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ class Seller
* @JsonField(name="Email", type="string")
*/
public $email;
}
}
2 changes: 1 addition & 1 deletion src/Model/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ public static function fromProviderAndProduct(ShippingProvider $provider, Shippi
$shipment->shippingProductId = $product->id;
return $shipment;
}
}
}
2 changes: 1 addition & 1 deletion src/Model/ShippingProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ class ShippingProduct
* @JsonField(name="productName", type="string")
*/
public $productName = '';
}
}
3 changes: 1 addition & 2 deletions src/Model/ShippingProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ class ShippingProvider
* @JsonField(name="products", type="BillbeeDe\BillbeeAPI\Model\ShippingProduct[]")
*/
public $products = '';

}
}
2 changes: 1 addition & 1 deletion src/Model/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ class Source

/** Unmapped */
public $custom = null;
}
}
2 changes: 1 addition & 1 deletion src/Model/Stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ public function jsonSerialize()

return $data;
}
}
}
2 changes: 1 addition & 1 deletion src/Model/StockCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ public static function fromProduct(Product $product)
$stockCode->stockCode = $product->stockCode;
return $stockCode;
}
}
}
2 changes: 1 addition & 1 deletion src/Model/TermsInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ class TermsInfo
* @JsonField(name="LinkToPrivacyHtmlContent", type="string")
*/
public $privacyContentLink = '';
}
}
2 changes: 1 addition & 1 deletion src/Model/TranslatableText.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class TranslatableText

/** @JsonField(name="LanguageCode", type="string") */
public $languageCode = '';
}
}
2 changes: 1 addition & 1 deletion src/Response/BaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ class BaseResponse

/** @JsonField(name="Data", type="array") */
public $data = [];
}
}
2 changes: 1 addition & 1 deletion src/Response/CreateDeliveryNoteResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class CreateDeliveryNoteResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\DeliveryNoteDocument")
*/
public $data = null;
}
}
2 changes: 1 addition & 1 deletion src/Response/CreateInvoiceResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class CreateInvoiceResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\InvoiceDocument")
*/
public $data = null;
}
}
2 changes: 1 addition & 1 deletion src/Response/GetEventsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetEventsResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\Event[]")
*/
public $data = [];
}
}
2 changes: 1 addition & 1 deletion src/Response/GetInvoicesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetInvoicesResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\Invoice[]")
*/
public $data = [];
}
}
2 changes: 1 addition & 1 deletion src/Response/GetOrderByPartnerResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetOrderByPartnerResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\PartnerOrder")
*/
public $data = null;
}
}
2 changes: 1 addition & 1 deletion src/Response/GetOrderResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetOrderResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\Order")
*/
public $data = null;
}
}
2 changes: 1 addition & 1 deletion src/Response/GetOrdersResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetOrdersResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\Order[]")
*/
public $data = [];
}
}
2 changes: 1 addition & 1 deletion src/Response/GetProductResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetProductResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\Product")
*/
public $data = null;
}
}
2 changes: 1 addition & 1 deletion src/Response/GetProductsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetProductsResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\Product[]")
*/
public $data = [];
}
}
2 changes: 1 addition & 1 deletion src/Response/GetShippingProvidersResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetShippingProvidersResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\ShippingProvider[]")
*/
public $data = [];
}
}
2 changes: 1 addition & 1 deletion src/Response/GetTermsInfoResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class GetTermsInfoResponse extends BaseResponse
* @JsonField(name="Data", type="\BillbeeDe\BillbeeAPI\Model\TermsInfo")
*/
public $data = null;
}
}
2 changes: 1 addition & 1 deletion src/Response/UpdateStockResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class UpdateStockResponse extends BaseResponse
* @JsonField(name="Data", type="array")
*/
public $data = [];
}
}
2 changes: 1 addition & 1 deletion src/Type/EventType.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ class EventType
const CUSTOMER_FILE_DOWNLOAD_DA_WANDA = 60;
const ORDER_DETAIL_MODIFIED = 61;
const ORDER_MODIFIED = 62;
}
}
2 changes: 1 addition & 1 deletion src/Type/InvoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ class InvoiceType
{
const INVOICE = 'invoice';
const CREDIT = 'creditnote';
}
}
Loading

0 comments on commit 507f1eb

Please sign in to comment.