Completed
Push — master ( 3745d5...788192 )
by Freek
03:26
created
app/Services/Html/BlenderFormBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -245,11 +245,11 @@  discard block
 block discarded – undo
245 245
 
246 246
     public function seo(): string
247 247
     {
248
-        return locales()->map(function ($locale) {
248
+        return locales()->map(function($locale) {
249 249
 
250 250
             return collect($this->model->defaultSeoValues())
251 251
                 ->keys()
252
-                ->map(function ($attribute) use ($locale) {
252
+                ->map(function($attribute) use ($locale) {
253 253
 
254 254
                     $fieldName = translate_field_name("seo.{$attribute}", $locale);
255 255
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
                         ),
262 262
                     ]);
263 263
                 })
264
-                ->pipe(function (Collection $fields) use ($locale) {
264
+                ->pipe(function(Collection $fields) use ($locale) {
265 265
                     return $this->languageFieldSet($locale, $fields->toArray());
266 266
                 });
267 267
         })->implode('');
Please login to merge, or discard this patch.
app/Http/Controllers/Back/ArticlesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $parentMenuItems = app(ArticleRepository::class)
27 27
             ->getTopLevel()
28
-            ->filter(function (Article $article) {
28
+            ->filter(function(Article $article) {
29 29
                 return $article->technical_name != SpecialArticle::HOME;
30 30
             })
31 31
             ->pluck('name', 'id')
Please login to merge, or discard this patch.
app/Services/Navigation/Menu/BackMenus.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,26 +10,26 @@  discard block
 block discarded – undo
10 10
 {
11 11
     public function register()
12 12
     {
13
-        Menu::macro('back', function () {
13
+        Menu::macro('back', function() {
14 14
             return Menu::new()
15 15
                 ->setActiveClass('-active')
16 16
                 ->setActiveFromRequest('/blender');
17 17
         });
18 18
 
19
-        Menu::macro('moduleGroup', function ($title) {
19
+        Menu::macro('moduleGroup', function($title) {
20 20
             return Menu::back()
21 21
                 ->addParentClass('menu__group')
22 22
                 ->setParentAttribute('data-menu-group', fragment("back.nav.{$title}"))
23
-                ->registerFilter(function (Link $link) {
23
+                ->registerFilter(function(Link $link) {
24 24
                     $link->addParentClass('menu__group__item');
25 25
                 });
26 26
         });
27 27
 
28
-        Menu::macro('module', function (string $action, string $name) {
28
+        Menu::macro('module', function(string $action, string $name) {
29 29
             return $this->action("Back\\{$action}", fragment("back.{$name}"));
30 30
         });
31 31
 
32
-        Menu::macro('backMain', function () {
32
+        Menu::macro('backMain', function() {
33 33
             return Menu::back()
34 34
                 ->addClass('menu__groups')
35 35
                 ->setAttribute('data-menu-groups')
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                     ->module('StatisticsController@index', 'statistics.menuTitle'));
51 51
         });
52 52
 
53
-        Menu::macro('backUser', function () {
53
+        Menu::macro('backUser', function() {
54 54
 
55 55
             $avatar = Html::avatar(current_user(), '-small').
56 56
                 el('span.:response-desktop-only', current_user()->email);
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
                 ->html(view('back.auth._partials.logoutForm'));
61 61
         });
62 62
 
63
-        Menu::macro('breadcrumbs', function (array $breadcrumbs) {
64
-            return Menu::build($breadcrumbs, function (Menu $menu, $actionWithParameters, $label) {
65
-                if (! is_array($actionWithParameters)) {
63
+        Menu::macro('breadcrumbs', function(array $breadcrumbs) {
64
+            return Menu::build($breadcrumbs, function(Menu $menu, $actionWithParameters, $label) {
65
+                if (!is_array($actionWithParameters)) {
66 66
                     $actionWithParameters = [$actionWithParameters];
67 67
                 }
68 68
 
Please login to merge, or discard this patch.
app/Services/Locale/TranslationLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@
 block discarded – undo
20 20
      */
21 21
     public function load($locale, $group, $namespace = null): array
22 22
     {
23
-        if (! is_null($namespace) && $namespace !== '*') {
23
+        if (!is_null($namespace) && $namespace !== '*') {
24 24
             return $this->loadNamespaced($locale, $group, $namespace);
25 25
         }
26 26
 
27
-        if (! $this->fragmentsAreAvailable()) {
27
+        if (!$this->fragmentsAreAvailable()) {
28 28
             return [];
29 29
         }
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/Services/Html/HtmlBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function flashMessage(): string
13 13
     {
14
-        if (! Session::has('flash_notification.message')) {
14
+        if (!Session::has('flash_notification.message')) {
15 15
             return '';
16 16
         }
17 17
 
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Api/MediaLibraryController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 
21 21
         $files = $request->file('file');
22 22
 
23
-        if (! is_array($files)) {
23
+        if (!is_array($files)) {
24 24
             $files = [$files];
25 25
         }
26 26
 
27 27
         $media = collect($files)
28
-            ->map(function (UploadedFile $file) use ($model, $request) {
28
+            ->map(function(UploadedFile $file) use ($model, $request) {
29 29
                 return $model
30 30
                     ->addMedia($file)
31 31
                     ->withCustomProperties(['temp' => $request->has('redactor') ? false : true])
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $collectionName = $request->get('collectionName');
47 47
 
48
-        $media = $model->getMedia($collectionName)->reduce(function (Collection $collection, Media $media) {
48
+        $media = $model->getMedia($collectionName)->reduce(function(Collection $collection, Media $media) {
49 49
             return $collection->push([
50 50
                 'thumb' => $media->getUrl('admin'),
51 51
                 'image' => $media->getUrl('redactor'),
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
 
59 59
     protected function getModelFromRequest(Request $request)
60 60
     {
61
-        if (! isset($request['model_name'])) {
61
+        if (!isset($request['model_name'])) {
62 62
             throw new Exception('No model name provided');
63 63
         }
64 64
 
65
-        if (! isset($request['model_id'])) {
65
+        if (!isset($request['model_id'])) {
66 66
             throw new Exception('No model id provided');
67 67
         }
68 68
 
Please login to merge, or discard this patch.
app/Http/Middleware/LoginAs.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             return $next($request);
19 19
         }
20 20
 
21
-        if (! $this->canLoginAs()) {
21
+        if (!$this->canLoginAs()) {
22 22
             throw new Exception("You can't log in as a specific user right now");
23 23
         }
24 24
 
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
     {
30 30
         // Just to be sure...
31 31
 
32
-        if (! app()->environment('local')) {
32
+        if (!app()->environment('local')) {
33 33
             return false;
34 34
         }
35 35
 
36
-        if (! ends_with(request()->getHost(), '.dev')) {
36
+        if (!ends_with(request()->getHost(), '.dev')) {
37 37
             return false;
38 38
         }
39 39
 
40
-        if (! in_array(env('DB_USERNAME'), ['homestead', 'root'])) {
40
+        if (!in_array(env('DB_USERNAME'), ['homestead', 'root'])) {
41 41
             return false;
42 42
         }
43 43
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     protected function getUser(string $identifier): Authenticatable
63 63
     {
64
-        if (! str_contains($identifier, '@')) {
64
+        if (!str_contains($identifier, '@')) {
65 65
             $identifier .= '@spatie.be';
66 66
         }
67 67
 
Please login to merge, or discard this patch.
app/Models/FormResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 
12 12
     public static function downloadAll()
13 13
     {
14
-        Excel::create('Responses '.date('Y-m-d'), function ($excel) {
15
-            $excel->sheet('Responses', function ($sheet) {
14
+        Excel::create('Responses '.date('Y-m-d'), function($excel) {
15
+            $excel->sheet('Responses', function($sheet) {
16 16
                 $sheet->freezeFirstRow();
17 17
 
18
-                $sheet->cells('A1:Z1', function ($cells) {
18
+                $sheet->cells('A1:Z1', function($cells) {
19 19
                     $cells->setFontWeight('bold');
20 20
                     $cells->setBorder('node', 'none', 'solid', 'none');
21 21
                 });
Please login to merge, or discard this patch.
app/Providers/ConfigServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
 
34 34
         try {
35
-            if (! class_exists('Memcached')) {
35
+            if (!class_exists('Memcached')) {
36 36
                 throw new Exception();
37 37
             }
38 38
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         config()->set(
52 52
             'mail.recipients',
53
-            collect(config('mail.recipients'))->map(function () {
53
+            collect(config('mail.recipients'))->map(function() {
54 54
                 return '[email protected]';
55 55
             })
56 56
         );
Please login to merge, or discard this patch.