@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | protected function getPlugins() |
| 44 | 44 | { |
| 45 | - if (! $this->plugins) { |
|
| 45 | + if (!$this->plugins) { |
|
| 46 | 46 | $this->plugins = $this->pluginManager->getPlugins(); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function getShippingDrivers() |
| 58 | 58 | { |
| 59 | - if (! $this->shippingDrivers) { |
|
| 59 | + if (!$this->shippingDrivers) { |
|
| 60 | 60 | $this->registerShippingDrivers(); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $plugins = $this->getPlugins(); |
| 74 | 74 | |
| 75 | 75 | foreach ($plugins as $id => $plugin) { |
| 76 | - if (! method_exists($plugin, 'registerShippingDrivers')) { |
|
| 76 | + if (!method_exists($plugin, 'registerShippingDrivers')) { |
|
| 77 | 77 | continue; |
| 78 | 78 | } |
| 79 | 79 | |
@@ -101,12 +101,12 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | protected function validateDriverDetails($details, $driverClass) |
| 103 | 103 | { |
| 104 | - if (! is_array($details)) { |
|
| 105 | - throw new Exception('An array must be returned from the driverDetails() method in '. $driverClass . '.'); |
|
| 104 | + if (!is_array($details)) { |
|
| 105 | + throw new Exception('An array must be returned from the driverDetails() method in '.$driverClass.'.'); |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | - if (! array_key_exists('name', $details) || ! is_string($details['name'])) { |
|
| 109 | - throw new Exception('A valid name must be returned from the driverDetails() method in ' . $driverClass . '.'); |
|
| 108 | + if (!array_key_exists('name', $details) || !is_string($details['name'])) { |
|
| 109 | + throw new Exception('A valid name must be returned from the driverDetails() method in '.$driverClass.'.'); |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | } |