Skip to content

Commit 34fdfc7

Browse files
committed
Cleanup some code
1 parent 3fd8da0 commit 34fdfc7

19 files changed

+361
-447
lines changed

app/Core/EloquentRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function requireById($id)
5252
return $model;
5353
}
5454

55-
public function getNew($attributes = array())
55+
public function getNew($attributes = [])
5656
{
5757
return $this->model->newInstance($attributes);
5858
}

app/Core/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getErrors()
3030
return $this->validator->errors();
3131
}
3232

33-
public function save(array $options = array())
33+
public function save(array $options = [])
3434
{
3535
if ( ! $this->isValid()) {
3636
return false;

app/Providers/CommentServiceProvider.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
namespace Lio\Providers;
33

44
use Illuminate\Support\ServiceProvider;
5+
use Lio\Comments\Comment;
6+
use Lio\Comments\CommentObserver;
57

68
class CommentServiceProvider extends ServiceProvider
79
{
8-
public function register() {}
9-
1010
public function boot()
1111
{
12-
\Lio\Comments\Comment::observe(new \Lio\Comments\CommentObserver);
12+
Comment::observe(new CommentObserver);
13+
}
14+
15+
public function register()
16+
{
17+
//
1318
}
1419
}

app/Providers/ContentServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public function register()
1313
{
1414
$this->app->bindShared(SpamDetector::class, function () {
1515
return new SpamFilter([
16-
new PhoneNumberSpamDetector(),
17-
new ForeignLanguageSpamDetector(),
16+
new PhoneNumberSpamDetector,
17+
new ForeignLanguageSpamDetector,
1818
]);
1919
});
2020
}

app/Providers/GithubServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ private function registerGithubAuthenticator()
3333

3434
public function provides()
3535
{
36-
return [GistEmbedFormatter::class, GithubAuthenticator::class];
36+
return [
37+
GistEmbedFormatter::class,
38+
GithubAuthenticator::class,
39+
];
3740
}
3841
}

app/Providers/HashidsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class HashidsServiceProvider extends ServiceProvider
88
{
99
public function register()
1010
{
11-
$this->app->bind(['Hashids\Hashids' => 'hashids'], function($app) {
11+
$this->app->bind([Hashids::class => 'hashids'], function($app) {
1212
$key = $app['config']->get('app.key');
1313

1414
return new Hashids($key, 2);

app/lang/nl/backups.php

Lines changed: 0 additions & 4 deletions
This file was deleted.

app/lang/nl/pagination.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/lang/nl/reminders.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/lang/nl/validation.php

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)