Apply fixes from StyleCI (#874)

[ci skip] [skip ci]
This commit is contained in:
Dane Everitt 2018-01-13 16:06:55 -06:00 committed by GitHub
parent e3df0738da
commit 8e8147cc43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
<?php <?php
use Illuminate\Support\Facades\Crypt;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Crypt;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
@ -45,7 +45,7 @@ class SetupTableForKeyEncryption extends Migration
*/ */
public function down() public function down()
{ {
/** @var \Pterodactyl\Models\APIKey $key */ /* @var \Pterodactyl\Models\APIKey $key */
DB::transaction(function () { DB::transaction(function () {
foreach (DB::table('api_keys')->cursor() as $key) { foreach (DB::table('api_keys')->cursor() as $key) {
DB::table('api_keys')->where('id', $key->id)->update([ DB::table('api_keys')->where('id', $key->id)->update([