Skip to content

Commit

Permalink
Change indenting of a bunch of annotation. Same line if not too long
Browse files Browse the repository at this point in the history
  • Loading branch information
Wijnand Ross committed Sep 14, 2018
1 parent b06c425 commit 6cea6a2
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 55 deletions.
3 changes: 1 addition & 2 deletions src/BarcodeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class BarcodeClient extends BaseClient
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v1_1/barcode/soap.wsdl';

/**
* @var array
* The complex types used by this client.
* @var array The complex types used by this client.
*/
protected $classes = [
'GenerateBarcodeMessage',
Expand Down
10 changes: 5 additions & 5 deletions src/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ abstract class BaseClient extends SoapClient
{

/**
* @var string The URL of the production WSDL. Actual clients must define this.
* @var string The URL of the production WSDL.
*
* Actual clients must define this.
*/
const PRODUCTION_WSDL = '';

Expand All @@ -19,8 +21,7 @@ abstract class BaseClient extends SoapClient
const SANDBOX_WSDL = '';

/**
* @var array
* A list of complex types used to generate a classmap for SoapClient.
* @var array A list of complex types for generating a SoapClient classmap.
*
* @see self::getClassmap()
*/
Expand Down Expand Up @@ -55,8 +56,7 @@ public function __construct($apikey, $sandbox = false, $wsdl = null)
}

/**
* @return array
* The classmap generated from self::$classes.
* @return array The classmap generated from self::$classes.
*/
protected function getClassmap()
{
Expand Down
21 changes: 7 additions & 14 deletions src/ComplexTypes/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,13 @@ class Address extends BaseType
* @param string $Zipcode
* @param string $City
* @param string $Countrycode
* @param string $Area
* Optional.
* @param string $Buildingname
* Optional.
* @param string $Department
* Optional.
* @param string $Doorcode
* Optional.
* @param string $Floor
* Optional.
* @param string $Region
* Optional.
* @param string $Remark
* Optional.
* @param string $Area Optional.
* @param string $Buildingname Optional.
* @param string $Department Optional.
* @param string $Doorcode Optional.
* @param string $Floor Optional.
* @param string $Region Optional.
* @param string $Remark Optional.
*/
public function __construct(
$AddressType,
Expand Down
12 changes: 4 additions & 8 deletions src/ComplexTypes/Dimension.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ class Dimension extends BaseType

/**
* @param string $Weight
* @param string $Height
* Optional.
* @param string $Length
* Optional.
* @param string $Volume
* Optional.
* @param string $Width
* Optional.
* @param string $Height Optional.
* @param string $Length Optional.
* @param string $Volume Optional.
* @param string $Width Optional.
*/
public function __construct($Weight, $Height = null, $Length = null, $Volume = null, $Width = null)
{
Expand Down
6 changes: 2 additions & 4 deletions src/ComplexTypes/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ class Message extends BaseType
protected $MessageTimeStamp = null;

/**
* @param string $MessageID
* Defaults to 1.
* @param string $MessageTimeStamp
* Defaults to the current time.
* @param string $MessageID Defaults to 1.
* @param string $MessageTimeStamp Defaults to the current time.
*/
public function __construct($MessageID = 1, $MessageTimeStamp = null)
{
Expand Down
6 changes: 2 additions & 4 deletions src/ComplexTypes/RequestShipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ class RequestShipment extends BaseType
protected $Barcode = null;

/**
* @var string
* Optional.
* @var string Optional.
*/
protected $Reference = null;

/**
* @var string
* Optional.
* @var string Optional.
*/
protected $Zipcode = null;

Expand Down
3 changes: 1 addition & 2 deletions src/ConfirmingClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class ConfirmingClient extends BaseClient
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v1_9/confirm/soap.wsdl';

/**
* @var array
* The complex types used by this client.
* @var array The complex types used by this client.
*/
protected $classes = [
'ConfirmingMessage',
Expand Down
3 changes: 1 addition & 2 deletions src/DeliveryDateClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class DeliveryDateClient extends BaseClient
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v2_1/calculate/date/soap.wsdl';

/**
* @var array
* The complex types used by this client.
* @var array The complex types used by this client.
*/
protected $classes = [
'ArrayOfCutOffTime',
Expand Down
3 changes: 1 addition & 2 deletions src/LabellingClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class LabellingClient extends BaseClient
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v2_0/label/soap.wsdl';

/**
* @var array
* The complex types used by this client.
* @var array The complex types used by this client.
*/
protected $classes = [
'GenerateLabelRequest',
Expand Down
3 changes: 1 addition & 2 deletions src/LocationClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class LocationClient extends BaseClient
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v2_1/locations/soap.wsdl';

/**
* @var array
* The complex types used by this client.
* @var array The complex types used by this client.
*/
protected $classes = [
'Address',
Expand Down
12 changes: 6 additions & 6 deletions src/Postnl.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ class Postnl
protected $sandbox = false;

/**
* @var array
* An array with instantiated CIF clients.
* @var array An array with instantiated CIF clients.
*/
protected $clients = [];

/**
* @var string
* Contains the property name of the last used SOAP client.
* @var string Contains the property name of the last used SOAP client.
*/
private $lastClient = null;

Expand Down Expand Up @@ -489,8 +487,10 @@ public function getDeliveryDate(
/**
* Returns location information of the supplied location code.
*
* @param string $locationCode LocationCode information.
* @param string $retailNetworkId PNPNL-01 is the code that can be used for all Dutch locations.
* @param string $locationCode
* LocationCode information.
* @param string $retailNetworkId
* PNPNL-01 is the code that can be used for all Dutch locations.
* @return ComplexTypes\GetLocationsResponse
*/
public function getLocation($locationCode, $retailNetworkId = 'PNPNL-01')
Expand Down
3 changes: 1 addition & 2 deletions src/ShippingStatusClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class ShippingStatusClient extends BaseClient
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v1_6/status/soap.wsdl';

/**
* @var array
* The complex types used by this client.
* @var array The complex types used by this client.
*/
protected $classes = [
'CurrentStatusRequest',
Expand Down
3 changes: 1 addition & 2 deletions src/TimeframeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class TimeframeClient extends BaseClient
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v2_0/calculate/timeframes/soap.wsdl';

/**
* @var array
* The complex types used by this client.
* @var array The complex types used by this client.
*/
protected $classes = [
'GetTimeframes',
Expand Down

0 comments on commit 6cea6a2

Please sign in to comment.