@@ -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 | */ |
@@ -154,10 +154,14 @@ |
||
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | // if the driver defined it's own save method, call it |
| 157 | - if (method_exists($driver, 'save')) $driver->save($data); |
|
| 157 | + if (method_exists($driver, 'save')) { |
|
| 158 | + $driver->save($data); |
|
| 159 | + } |
|
| 158 | 160 | |
| 159 | 161 | // otherwise just use the default save |
| 160 | - else $this->save($driverClass, $data); |
|
| 162 | + else { |
|
| 163 | + $this->save($driverClass, $data); |
|
| 164 | + } |
|
| 161 | 165 | } |
| 162 | 166 | |
| 163 | 167 | /** |
@@ -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 | |