Skip to content

Commit

Permalink
adding phpcs file and squiz.commenting.variablecomment
Browse files Browse the repository at this point in the history
  • Loading branch information
kinimodmeyer committed Oct 19, 2020
1 parent d266c25 commit f3a1de3
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 33 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ $ ./vendor/bin/phpunit tests
execute the analysis with the following:

```bash
$ ./vendor/bin/phpcs --standard=PSR12 src
$ ./vendor/bin/phpcs src
```

fix (if possible) with the following:

```bash
$ ./vendor/bin/phpcbf --standard=PSR12 src
$ ./vendor/bin/phpcbf src
```
6 changes: 6 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer">
<description>The coding standard for Tradebyte SDK.</description>
<rule ref="PSR12" />
<rule ref="Squiz.Commenting.VariableComment"/>
</ruleset>
6 changes: 3 additions & 3 deletions src/Base/Iterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Iterator
protected $current;

/**
* @var int
* @var integer
*/
protected $i = 0;

Expand All @@ -42,12 +42,12 @@ class Iterator
protected $filter;

/**
* @var bool
* @var boolean
*/
protected $openLocalFilepath = false;

/**
* @var bool
* @var boolean
*/
protected $isOpen = false;

Expand Down
2 changes: 1 addition & 1 deletion src/Client/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Rest
{
/**
* @var int
* @var integer
*/
private $accountNumber;

Expand Down
12 changes: 6 additions & 6 deletions src/Message/Model/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Message
{
/**
* @var int
* @var integer
*/
protected $id;

Expand All @@ -20,12 +20,12 @@ class Message
protected $type;

/**
* @var int
* @var integer
*/
protected $orderId;

/**
* @var int
* @var integer
*/
protected $orderItemId;

Expand Down Expand Up @@ -55,7 +55,7 @@ class Message
protected $channelSku;

/**
* @var int
* @var integer
*/
protected $quantity;

Expand Down Expand Up @@ -105,12 +105,12 @@ class Message
protected $estShipDate;

/**
* @var bool
* @var boolean
*/
protected $isProcessed;

/**
* @var bool
* @var boolean
*/
protected $isExported;

Expand Down
2 changes: 1 addition & 1 deletion src/Order/Model/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Customer
{
/**
* @var int
* @var integer
*/
protected $id;

Expand Down
2 changes: 1 addition & 1 deletion src/Order/Model/History.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class History
{
/**
* @var int
* @var integer
*/
private $id;

Expand Down
4 changes: 2 additions & 2 deletions src/Order/Model/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Item
{
/**
* @var int
* @var integer
*/
protected $id;

Expand All @@ -28,7 +28,7 @@ class Item
protected $ean;

/**
* @var int
* @var integer
*/
protected $quantity;

Expand Down
8 changes: 4 additions & 4 deletions src/Order/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Order
{
/**
* @var int
* @var integer
*/
protected $id;

Expand Down Expand Up @@ -40,17 +40,17 @@ class Order
protected $channelNumber;

/**
* @var bool
* @var boolean
*/
protected $isPaid;

/**
* @var bool
* @var boolean
*/
protected $isApproved;

/**
* @var int
* @var integer
*/
protected $itemCount;

Expand Down
18 changes: 9 additions & 9 deletions src/Product/Model/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Article
{
/**
* @var int
* @var integer
*/
protected $id;

Expand All @@ -28,7 +28,7 @@ class Article
protected $createdDate;

/**
* @var bool
* @var boolean
*/
protected $isActive;

Expand All @@ -48,37 +48,37 @@ class Article
protected $unit;

/**
* @var int
* @var integer
*/
protected $stock;

/**
* @var int
* @var integer
*/
protected $deliveryTime;

/**
* @var int
* @var integer
*/
protected $replacement;

/**
* @var int
* @var integer
*/
protected $replacementTime;

/**
* @var int
* @var integer
*/
protected $orderMin;

/**
* @var int
* @var integer
*/
protected $orderMax;

/**
* @var int
* @var integer
*/
protected $orderInterval;

Expand Down
6 changes: 3 additions & 3 deletions src/Product/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Product
{
/**
* @var int
* @var integer
*/
private $id;

Expand All @@ -20,12 +20,12 @@ class Product
private $number;

/**
* @var int
* @var integer
*/
private $changeDate;

/**
* @var int
* @var integer
*/
private $createdDate;

Expand Down
2 changes: 1 addition & 1 deletion src/Stock/Model/Stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Stock
protected $articleNumber;

/**
* @var int
* @var integer
*/
protected $stock;

Expand Down

0 comments on commit f3a1de3

Please sign in to comment.