@@ -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,11 +101,11 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | protected function validateDriverDetails($details, $driverClass) |
| 103 | 103 | { |
| 104 | - if (! is_array($details)) { |
|
| 104 | + if (!is_array($details)) { |
|
| 105 | 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'])) { |
|
| 108 | + if (!array_key_exists('name', $details) || !is_string($details['name'])) { |
|
| 109 | 109 | throw new Exception('A valid name must be returned from the driverDetails() method in '.$driverClass.'.'); |
| 110 | 110 | } |
| 111 | 111 | } |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | /** |
| 156 | 156 | * Save a driver. |
| 157 | 157 | * |
| 158 | - * @param name $driver The class name of the driver. |
|
| 158 | + * @param name $driverClass The class name of the driver. |
|
| 159 | 159 | * @param array $config Driver data to save. |
| 160 | 160 | * @return void |
| 161 | 161 | */ |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_driver_configs', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_driver_configs', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->string('driver')->default(''); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | // 'form@backend::lang.form' => ['cancel', 'save', 'saving'] |
| 26 | 26 | else { |
| 27 | - if (! $isFiltered) { |
|
| 27 | + if (!$isFiltered) { |
|
| 28 | 28 | $key = $value; |
| 29 | 29 | } |
| 30 | 30 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function handle($request, Closure $next) |
| 16 | 16 | { |
| 17 | - if (! ApiSettings::isEnabled()) { |
|
| 17 | + if (!ApiSettings::isEnabled()) { |
|
| 18 | 18 | abort(403, 'Forbidden'); |
| 19 | 19 | |
| 20 | 20 | return; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | public function validate() |
| 19 | 19 | { |
| 20 | 20 | $data = input('inventory'); |
| 21 | - if (! $data || ! is_array($data)) { |
|
| 21 | + if (!$data || !is_array($data)) { |
|
| 22 | 22 | return Response::make('Error', 422); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | public function validate() |
| 19 | 19 | { |
| 20 | 20 | $data = input('filter'); |
| 21 | - if (! $data || ! is_array($data)) { |
|
| 21 | + if (!$data || !is_array($data)) { |
|
| 22 | 22 | return Response::make('Error', 422); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_carts', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_carts', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->integer('promotion_id')->unsigned()->nullable()->index(); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_options', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_options', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->integer('product_id')->unsigned()->nullable()->index(); |