Completed
Pull Request — master (#56)
by Sebastian
06:12
created
app/Services/Locale/TranslationLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         return Cache::rememberForever(
32 32
             "locale.fragments.{$locale}.{$group}",
33
-            function () use ($group, $locale) {
33
+            function() use ($group, $locale) {
34 34
                 return Fragment::getGroup($group, $locale);
35 35
             }
36 36
         );
Please login to merge, or discard this patch.
app/Models/Fragment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public static function findByName(string $name)
20 20
     {
21
-        return app('cache')->rememberForever("fragment.findByName.{$name}", function () use ($name) {
21
+        return app('cache')->rememberForever("fragment.findByName.{$name}", function() use ($name) {
22 22
             return static::where('name', $name)->first();
23 23
         });
24 24
     }
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         return static::query()
29 29
             ->where('name', 'LIKE', "{$group}.%")
30 30
             ->get()
31
-            ->map(function (Fragment $fragment) use ($locale, $group) {
31
+            ->map(function(Fragment $fragment) use ($locale, $group) {
32 32
                 return [
33 33
                     'key' => preg_replace("/{$group}\\./", '', $fragment->name, 1),
34 34
                     'text' => $fragment->translate($locale)->text,
Please login to merge, or discard this patch.
app/Foundation/Models/Traits/HasSlug.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public static function bootHasUrl()
8 8
     {
9
-        static::saving(function ($model) {
9
+        static::saving(function($model) {
10 10
 
11 11
             if (!in_array('name', $model->translatable ?? [])) {
12 12
                 $model->url = str_slug($model->name);
Please login to merge, or discard this patch.
app/Providers/QueryBuilderServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     
11 11
     public function boot()
12 12
     {
13
-        Builder::macro('if', function (bool $condition, string $column, string $operator, $value) {
13
+        Builder::macro('if', function(bool $condition, string $column, string $operator, $value) {
14 14
             if ($condition) {
15 15
                 return $this->where($column, $operator, $value);
16 16
             }
Please login to merge, or discard this patch.
app/Services/Html/FormBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     public function locales(array $locales, string $current) : string
101 101
     {
102
-        $list = array_reduce($locales, function (array $list, string $locale) {
102
+        $list = array_reduce($locales, function(array $list, string $locale) {
103 103
             $list[$locale] = trans("locales.{$locale}");
104 104
 
105 105
             return $list;
Please login to merge, or discard this patch.
app/Foundation/Models/Enums/Enum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public static function allAsRegex() : string
24 24
     {
25
-        return collect(static::values())->map(function ($value) {
25
+        return collect(static::values())->map(function($value) {
26 26
             return "({$value})";
27 27
         })->implode('|');
28 28
     }
Please login to merge, or discard this patch.
app/Providers/BladeDirectiveServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     public function boot()
15 15
     {
16
-        Blade::directive('json', function ($expression) {
16
+        Blade::directive('json', function($expression) {
17 17
             return "<?php echo json_encode({$expression}); ?>";
18 18
         });
19 19
     }
Please login to merge, or discard this patch.
app/Foundation/helpers.php 1 patch
Spacing   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         return $constants;
100 100
     }
101 101
 
102
-    return array_filter($constants, function ($key) use ($startsWithFilter) {
102
+    return array_filter($constants, function($key) use ($startsWithFilter) {
103 103
         return starts_with(strtolower($key), strtolower($startsWithFilter));
104 104
     }, ARRAY_FILTER_USE_KEY);
105 105
 }
@@ -145,15 +145,13 @@  discard block
 block discarded – undo
145 145
 function login_url(): string
146 146
 {
147 147
     return request()->isFront() ?
148
-        action('Front\AuthController@getLogin') :
149
-        action('Back\AuthController@getLogin');
148
+        action('Front\AuthController@getLogin') : action('Back\AuthController@getLogin');
150 149
 }
151 150
 
152 151
 function logout_url(): string
153 152
 {
154 153
     return request()->isFront() ?
155
-        action('Front\AuthController@getLogout') :
156
-        action('Back\AuthController@getLogout');
154
+        action('Front\AuthController@getLogout') : action('Back\AuthController@getLogout');
157 155
 }
158 156
 
159 157
 function register_url(): string
@@ -194,8 +192,8 @@  discard block
 block discarded – undo
194 192
 
195 193
 function rgb_to_hex(int $red, int $green, int $blue):  string
196 194
 {
197
-    return '#' . collect([$red, $green, $blue])
198
-        ->map(function (int $decimal):  string {
195
+    return '#'.collect([$red, $green, $blue])
196
+        ->map(function(int $decimal):  string {
199 197
             return str_pad(dechex($decimal), 2, STR_PAD_LEFT);
200 198
         })
201 199
         ->implode('');
Please login to merge, or discard this patch.
app/Services/Mailers/MemberMailer.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Services\Mailers;
4 4
 
5
-use App\Events\UserWasActivated;
6 5
 use App\Services\Auth\Front\Events\UserWasCreatedThroughBack;
7 6
 use App\Services\Auth\Front\Events\UserWasRegistered;
8 7
 use Illuminate\Contracts\Events\Dispatcher;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
         $this->sendTo(
17 17
             $event->user->email,
18
-            'Welkom bij ' . config('app.url'),
18
+            'Welkom bij '.config('app.url'),
19 19
             'emails.auth.front.welcome',
20 20
             ['userId' => $event->user->id]
21 21
         );
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function whenUserWasCreatedThroughBack(UserWasCreatedThroughBack $event)
25 25
     {
26
-        Password::broker('front')->sendResetLink(['email' => $event->user->email], function (Message $message) {
27
-            $message->subject('Welkom bij ' . config('app.url'));
26
+        Password::broker('front')->sendResetLink(['email' => $event->user->email], function(Message $message) {
27
+            $message->subject('Welkom bij '.config('app.url'));
28 28
         });
29 29
     }
30 30
 
Please login to merge, or discard this patch.