Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Model/System/Config/Source/ApiMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
* @author Joel @Mediotype
* @author Miranda @Mediotype
*/
declare(strict_types=1);

namespace Bread\BreadCheckout\Model\System\Config\Source;

class ApiMode implements \Magento\Framework\Option\ArrayInterface
{
use Magento\Framework\Data\OptionSourceInterface;

class ApiMode implements OptionSourceInterface
{
/**
* Options getter
*
Expand Down
9 changes: 5 additions & 4 deletions Model/System/Config/Source/ApiVersion.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<?php

/**
* API version options
*
* @copyright (c) Bread Financial
* @since 2.1.0
* @author Kiprotich, Maritim <[email protected]>
*/
declare(strict_types=1);

namespace Bread\BreadCheckout\Model\System\Config\Source;

class ApiVersion implements \Magento\Framework\Option\ArrayInterface {
use Magento\Framework\Data\OptionSourceInterface;

class ApiVersion implements OptionSourceInterface
{
/**
* Options getter
*
Expand All @@ -35,5 +37,4 @@ public function toArray() {
'bread_2' => __('Bread Platform')
];
}

}
}
9 changes: 5 additions & 4 deletions Model/System/Config/Source/ApiVersionRbc.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<?php

/**
* API version options
*
* @copyright (c) Bread Financial
* @since 2.1.0
* @author Kiprotich, Maritim <[email protected]>
*/
declare(strict_types=1);

namespace Bread\BreadCheckout\Model\System\Config\Source;

class ApiVersionRbc implements \Magento\Framework\Option\ArrayInterface {
use Magento\Framework\Data\OptionSourceInterface;

class ApiVersionRbc implements OptionSourceInterface
{
/**
* Options getter
*
Expand All @@ -33,5 +35,4 @@ public function toArray() {
'bread_2' => __('Bread 2.0')
];
}

}
}
17 changes: 14 additions & 3 deletions Model/System/Config/Source/TargetedFinancing.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php
declare(strict_types = 1);

namespace Bread\BreadCheckout\Model\System\Config\Source;

class TargetedFinancing implements \Magento\Framework\Option\ArrayInterface
use Magento\Framework\Data\OptionSourceInterface;

class TargetedFinancing implements OptionSourceInterface
{
/**
* Options getter
Expand All @@ -11,7 +14,11 @@ class TargetedFinancing implements \Magento\Framework\Option\ArrayInterface
*/
public function toOptionArray()
{
return [['value' => 0, 'label' => __('No')], ['value' => 1, 'label' => __('By Cart Size')], ['value' => 2, 'label' => __('By SKU List')]];
return [
['value' => 0, 'label' => __('No')],
['value' => 1, 'label' => __('By Cart Size')],
['value' => 2, 'label' => __('By SKU List')]
];
}

/**
Expand All @@ -21,6 +28,10 @@ public function toOptionArray()
*/
public function toArray()
{
return [0 => __('No'), 1 => __('By Cart Size'), 2 => __('By SKU List')];
return [
0 => __('No'),
1 => __('By Cart Size'),
2 => __('By SKU List')
];
}
}
17 changes: 10 additions & 7 deletions Model/System/Config/Source/Tenant.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<?php

/**
* API version options
*
* @since 2.1.0
* @copyright (c) Bread
* @author Kip, Maritim <[email protected]>
*/
declare(strict_types=1);

namespace Bread\BreadCheckout\Model\System\Config\Source;

class Tenant implements \Magento\Framework\Option\ArrayInterface {
use Magento\Framework\Data\OptionSourceInterface;

class Tenant implements OptionSourceInterface
{
/**
* Options getter
*
* @return array
*/
public function toOptionArray() {
public function toOptionArray()
{
return [
['value' => 'core', 'label' => __('CORE (US)')],
];
Expand All @@ -28,10 +31,10 @@ public function toOptionArray() {
*
* @return array
*/
public function toArray() {
public function toArray()
{
return [
'core' => __('CORE (US'),
'core' => __('CORE (US)'),
];
}

}
}
15 changes: 9 additions & 6 deletions Model/System/Config/Source/TenantRbc.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<?php

/**
* API version options
*
* @since 2.1.0
* @copyright (c) Bread
* @author Kip, Maritim <[email protected]>
*/
declare(strict_types=1);

namespace Bread\BreadCheckout\Model\System\Config\Source;

class TenantRbc implements \Magento\Framework\Option\ArrayInterface {
use Magento\Framework\Data\OptionSourceInterface;

class TenantRbc implements OptionSourceInterface
{
/**
* Options getter
*
* @return array
*/
public function toOptionArray() {
public function toOptionArray()
{
return [
['value' => 'rbc', 'label' => __('Payplan by RBC')],
];
Expand All @@ -28,10 +31,10 @@ public function toOptionArray() {
*
* @return array
*/
public function toArray() {
public function toArray()
{
return [
'rbc' => __('Payplan by RBC'),
];
}

}
}