Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrutinizer Auto-Fixes #1

Merged
merged 1 commit into from Dec 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Snipcart.php
Expand Up @@ -152,9 +152,9 @@ protected function settingsHtml(): string
];

foreach ($allFields as $field)
{
{
if (in_array(get_class($field), $supportedProductIdentifierTypes, true))
{
{
// disallow multiline text as an option
if (isset($field->multiline) && $field->multiline)
{
Expand Down
2 changes: 1 addition & 1 deletion src/models/shipstation/ShipStationOrder.php
Expand Up @@ -460,7 +460,7 @@ public function rules()
[['customerEmail'], 'email'],
[['gift', 'externallyFulfilled'], 'boolean'],
[['gift', 'externallyFulfilled'], 'default', 'value' => false],
['tagIds', 'each', 'rule' => ['integer'] ],
['tagIds', 'each', 'rule' => ['integer']],
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/snipcart/SnipcartCustomer.php
Expand Up @@ -38,7 +38,7 @@ class SnipcartCustomer extends Model
public $email;

// TODO: can these be related models that are flattened again?
// maybe just getter and setter interfaces that interact with models?
// maybe just getter and setter interfaces that interact with models?
/**
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/snipcart/SnipcartShippingRate.php
Expand Up @@ -73,7 +73,7 @@ public function fields()
$return[] = 'code';
}

if( ! empty($this->guaranteedDaysToDelivery))
if ( ! empty($this->guaranteedDaysToDelivery))
{
$return[] = 'guaranteedDaysToDelivery';
}
Expand Down
4 changes: 2 additions & 2 deletions src/models/snipcart/SnipcartSubscription.php
Expand Up @@ -13,7 +13,7 @@

class SnipcartSubscription extends Model
{
// Properties
// =========================================================================
// Properties
// =========================================================================

}
4 changes: 2 additions & 2 deletions src/models/snipcart/SnipcartSubscriptionEvent.php
Expand Up @@ -13,7 +13,7 @@

class SnipcartSubscriptionEvent extends Model
{
// Properties
// =========================================================================
// Properties
// =========================================================================

}
4 changes: 2 additions & 2 deletions src/models/snipcart/SnipcartTax.php
Expand Up @@ -13,7 +13,7 @@

class SnipcartTax extends Model
{
// Properties
// =========================================================================
// Properties
// =========================================================================

}
4 changes: 2 additions & 2 deletions src/models/snipcart/SnipcartTaxesEvent.php
Expand Up @@ -13,7 +13,7 @@

class SnipcartTaxesEvent extends Model
{
// Properties
// =========================================================================
// Properties
// =========================================================================

}
4 changes: 2 additions & 2 deletions src/models/snipcart/SnipcartUserSession.php
Expand Up @@ -13,7 +13,7 @@

class SnipcartUserSession extends Model
{
// Properties
// =========================================================================
// Properties
// =========================================================================

}