Fix coding standards to conform to PSR-2

This commit is contained in:
Franz Liedke 2015-05-19 01:03:12 +02:00
parent dcd67b9d5c
commit 0ca4e1ab7b
22 changed files with 239 additions and 242 deletions

View File

@ -17,6 +17,5 @@ class ConsoleServiceProvider extends ServiceProvider
public function register()
{
}
}

View File

@ -5,7 +5,8 @@ use Illuminate\Foundation\Application;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class InstallCommand extends Command {
class InstallCommand extends Command
{
/**
* The console command name.
@ -75,5 +76,4 @@ class InstallCommand extends Command {
// ['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
];
}
}

View File

@ -5,7 +5,8 @@ use Illuminate\Foundation\Application;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class SeedCommand extends Command {
class SeedCommand extends Command
{
/**
* The console command name.
@ -67,5 +68,4 @@ class SeedCommand extends Command {
// ['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
];
}
}

View File

@ -2,5 +2,4 @@
class Extension
{
}

View File

@ -2,5 +2,4 @@
class ExtensionManager
{
}

View File

@ -46,6 +46,5 @@ class EmailConfirmationMailer
public function whenEmailWasChanged(EmailWasChanged $event)
{
}
}

View File

@ -69,5 +69,4 @@ class GambitManager
$searcher->addActiveGambit($gambit);
$gambit->apply($string, $searcher);
}
}

View File

@ -3,7 +3,8 @@
use Illuminate\Database\Seeder;
use DB;
class ConfigTableSeeder extends Seeder {
class ConfigTableSeeder extends Seeder
{
/**
* Run the database seeds.
@ -24,5 +25,4 @@ class ConfigTableSeeder extends Seeder {
return compact('key', 'value');
}, array_keys($config), $config));
}
}

View File

@ -121,7 +121,6 @@ class DiscussionsTableSeeder extends Seeder
'read_time' => $faker->dateTimeBetween($discussion->start_time, 'now')
]);
} catch (\Illuminate\Database\QueryException $e) {
}
}
}

View File

@ -3,7 +3,8 @@
use Illuminate\Database\Seeder;
use Flarum\Core\Models\Group;
class GroupsTableSeeder extends Seeder {
class GroupsTableSeeder extends Seeder
{
/**
* Run the database seeds.
@ -30,5 +31,4 @@ class GroupsTableSeeder extends Seeder {
]);
}
}
}

View File

@ -3,7 +3,8 @@
use Illuminate\Database\Seeder;
use Flarum\Core\Models\Permission;
class PermissionsTableSeeder extends Seeder {
class PermissionsTableSeeder extends Seeder
{
/**
* Run the database seeds.
@ -39,5 +40,4 @@ class PermissionsTableSeeder extends Seeder {
}
Permission::insert($permissions);
}
}

View File

@ -4,7 +4,8 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
class MappedMorphTo extends MorphTo {
class MappedMorphTo extends MorphTo
{
/**
*

View File

@ -14,7 +14,9 @@ class ExtensionsServiceProvider extends ServiceProvider
public function register()
{
// Extensions will not be registered if Flarum is not installed yet
if (!Core::isInstalled()) return;
if (!Core::isInstalled()) {
return;
}
$extensions = json_decode(DB::table('config')->where('key', 'extensions_enabled')->pluck('value'), true);
$providers = [];