Completed
Pull Request — master (#29)
by Sebastian
10:22
created
app/Services/Navigation/Menu/BackMenus.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 {
11 11
     public function register()
12 12
     {
13
-        Menu::macro('backMain', function () {
13
+        Menu::macro('backMain', function() {
14 14
             return Menu::back()
15 15
                 ->addClass('menu_groups')
16 16
                 ->setAttribute('data-menu-groups')
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
                 );
43 43
         });
44 44
 
45
-        Menu::macro('backUser', function () {
45
+        Menu::macro('backUser', function() {
46 46
 
47
-            $avatar = HTML::avatar(current_user(), '-small') .
47
+            $avatar = HTML::avatar(current_user(), '-small').
48 48
                 el('span.:response-desktop-only', current_user()->email);
49 49
 
50 50
             return Menu::new()
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
 }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 /** @return \App\Services\Auth\Front\User|null */
125 125
 function current_front_user()
126 126
 {
127
-    if (! auth()->guard('front')->check()) {
127
+    if (!auth()->guard('front')->check()) {
128 128
         return null;
129 129
     }
130 130
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 /** @return \App\Services\Auth\Back\User|null */
135 135
 function current_back_user()
136 136
 {
137
-    if (! auth()->guard('back')->check()) {
137
+    if (!auth()->guard('back')->check()) {
138 138
         return null;
139 139
     }
140 140
 
@@ -144,15 +144,13 @@  discard block
 block discarded – undo
144 144
 function login_url() : string
145 145
 {
146 146
     return request()->isFront() ?
147
-        action('Front\AuthController@getLogin') :
148
-        action('Back\AuthController@getLogin');
147
+        action('Front\AuthController@getLogin') : action('Back\AuthController@getLogin');
149 148
 }
150 149
 
151 150
 function logout_url() : string
152 151
 {
153 152
     return request()->isFront() ?
154
-        action('Front\AuthController@getLogout') :
155
-        action('Back\AuthController@getLogout');
153
+        action('Front\AuthController@getLogout') : action('Back\AuthController@getLogout');
156 154
 }
157 155
 
158 156
 function register_url() : string
Please login to merge, or discard this patch.
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.