Completed
Push — master ( 80aa64...3fc3c7 )
by Sebastian
06:02 queued 02:04
created
app/Services/Navigation/NavigationServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     protected function registerSection()
26 26
     {
27
-        Request::macro('section', function () {
27
+        Request::macro('section', function() {
28 28
 
29 29
             if (request()->segment(1) === 'blender') {
30 30
                 return 'back';
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
             return 'front';
34 34
         });
35 35
 
36
-        Request::macro('isFront', function () {
36
+        Request::macro('isFront', function() {
37 37
             return request()->section() === 'front';
38 38
         });
39 39
 
40
-        Request::macro('isBack', function () {
40
+        Request::macro('isBack', function() {
41 41
             return request()->section() === 'back';
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
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/Services/Locale/TranslationLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             return [];
29 29
         }
30 30
 
31
-        return Cache::rememberForever("locale.fragments.{$locale}.{$group}", function () use ($group, $locale) {
31
+        return Cache::rememberForever("locale.fragments.{$locale}.{$group}", function() use ($group, $locale) {
32 32
             return $this->fetchFragments($group, $locale);
33 33
         });
34 34
     }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         return Fragment::query()
39 39
             ->where('name', 'LIKE', "{$group}.%")
40 40
             ->get()
41
-            ->map(function (Fragment $fragment) use ($locale, $group) {
41
+            ->map(function(Fragment $fragment) use ($locale, $group) {
42 42
                 return [
43 43
                     'key' => str_replace("{$group}.", '', $fragment->name),
44 44
                     'text' => $fragment->translate($locale)->text,
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.