Test Setup Failed
Push — 0.7 ( c7a77e...ebb93c )
by
unknown
05:51
created
app/Providers/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     {
18 18
         $this->registerPolicies();
19 19
 
20
-        Auth::provider('chief-eloquent', function ($app, array $config) {
20
+        Auth::provider('chief-eloquent', function($app, array $config) {
21 21
             return new ChiefUserProvider($app['hash'], $config['model']);
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
app/Http/Middleware/OptimizeImages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
12 12
     {
13 13
         $optimizerChain = app(OptimizerChain::class);
14 14
 
15
-        collect($request->allFiles())->each(function ($file) use ($optimizerChain) {
15
+        collect($request->allFiles())->each(function($file) use ($optimizerChain) {
16 16
             if (is_array($file)) {
17
-                collect($file)->each(function ($media) use ($optimizerChain) {
17
+                collect($file)->each(function($media) use ($optimizerChain) {
18 18
                     $optimizerChain->optimize($media->getPathname());
19 19
                 });
20
-            } else {
20
+            }else {
21 21
                 $optimizerChain->optimize($file->getPathname());
22 22
             }
23 23
         });
Please login to merge, or discard this patch.
app/Providers/EventServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
     {
25 25
         Event::listen(Login::class, LogSuccessfulLogin::class);
26 26
         Event::listen(UserInvited::class, SendInvite::class);
27
-        Event::listen(InviteAccepted::class, EnableUser::class . '@onAcceptingInvite');
27
+        Event::listen(InviteAccepted::class, EnableUser::class.'@onAcceptingInvite');
28 28
 
29
-        Event::listen(ManagedModelCreated::class, CreateUrlForPage::class . '@onManagedModelCreated');
29
+        Event::listen(ManagedModelCreated::class, CreateUrlForPage::class.'@onManagedModelCreated');
30 30
         Event::listen(FragmentDetached::class, DeleteFragment::class.'@onFragmentDetached');
31 31
         Event::listen(FragmentDetached::class, UpdateFragmentMetadata::class.'@onFragmentDetached');
32 32
         Event::listen(FragmentAdded::class, UpdateFragmentMetadata::class.'@onFragmentAdded');
Please login to merge, or discard this patch.
app/Providers/ChiefRoutesServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
 
26 26
     private function loadOpenAdminRoutes(): void
27 27
     {
28
-        Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web']], function () {
29
-            $this->loadRoutesFrom(__DIR__ . '/../../routes/chief-open-routes.php');
28
+        Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web']], function() {
29
+            $this->loadRoutesFrom(__DIR__.'/../../routes/chief-open-routes.php');
30 30
         });
31 31
     }
32 32
 
33 33
     private function loadAdminRoutes(): void
34 34
     {
35
-        Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web-chief', 'auth:chief']], function () {
36
-            $this->loadRoutesFrom(__DIR__ . '/../../routes/chief-admin-routes.php');
35
+        Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web-chief', 'auth:chief']], function() {
36
+            $this->loadRoutesFrom(__DIR__.'/../../routes/chief-admin-routes.php');
37 37
 
38 38
             // Add project specific chief routing...
39 39
             $projectChiefRoutePath = config('chief.route.admin-filepath', null);
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
             return;
54 54
         }
55 55
 
56
-        app()->booted(function () {
56
+        app()->booted(function() {
57 57
             $routeName = config('chief.route.name');
58 58
 
59
-            Route::get('{slug?}', function ($slug = '/') {
59
+            Route::get('{slug?}', function($slug = '/') {
60 60
                 return ChiefResponse::fromSlug($slug);
61 61
             })->name($routeName)
62 62
                 ->where('slug', '(.*)?')
Please login to merge, or discard this patch.
app/Http/Requests/MenuRequest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
                 continue;
49 49
             }
50 50
 
51
-            $rules['trans.' . $locale . '.label'] = 'required';
52
-            if ($this->request->get('trans.' . $locale . '.url') != null) {
53
-                $rules['trans.' . $locale . '.url'] = 'url';
51
+            $rules['trans.'.$locale.'.label'] = 'required';
52
+            if ($this->request->get('trans.'.$locale.'.url') != null) {
53
+                $rules['trans.'.$locale.'.url'] = 'url';
54 54
             }
55 55
         }
56 56
 
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
         $attributes = [];
63 63
 
64 64
         foreach (array_keys($this->request->get('trans', [])) as $locale) {
65
-            $attributes['trans.' . $locale . '.label'] = $locale . ' label';
66
-            $attributes['trans.' . $locale . '.url'] = $locale . ' link';
65
+            $attributes['trans.'.$locale.'.label'] = $locale.' label';
66
+            $attributes['trans.'.$locale.'.url'] = $locale.' link';
67 67
         }
68 68
 
69 69
         $attributes['owner_reference'] = 'Interne pagina';
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
 
95 95
             // Check if it is a relative
96 96
             if ($this->isRelativeUrl($trans['url'])) {
97
-                $data['trans'][$locale]['url'] = '/' . trim($trans['url'], '/');
98
-            } else {
97
+                $data['trans'][$locale]['url'] = '/'.trim($trans['url'], '/');
98
+            }else {
99 99
                 $data['trans'][$locale]['url'] = Url::fromString($trans['url'])->secure()->get();
100 100
             }
101 101
 
@@ -112,6 +112,6 @@  discard block
 block discarded – undo
112 112
         // Check if passed url is not intended as a host instead of a relative path
113 113
         $notIntentedAsRoot = (null == Root::fromString($url)->scheme() && false === strpos($url, '.'));
114 114
 
115
-        return ($notIntentedAsRoot && in_array($url, [$nakedUrl, '/' . $nakedUrl]));
115
+        return ($notIntentedAsRoot && in_array($url, [$nakedUrl, '/'.$nakedUrl]));
116 116
     }
117 117
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Api/InternalLinksController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
 
19 19
         $onlineModels = UrlHelper::onlineModels();
20 20
 
21
-        $links = $onlineModels->reject(function (Visitable $model) {
22
-            return ! $model->url();
23
-        })->map(function ($model) {
21
+        $links = $onlineModels->reject(function(Visitable $model) {
22
+            return !$model->url();
23
+        })->map(function($model) {
24 24
             $name = (method_exists($model, 'menuLabel') && $model->menuLabel()) ? $model->menuLabel() : (isset($model->title) ? $model->title : $model->url());
25 25
 
26 26
             return [
Please login to merge, or discard this patch.
app/Http/Controllers/Api/MediaGalleryController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
 
22 22
         $excluded = isset($request->query()['excluded']) ? explode(",", $request->query()['excluded']) : $excluded;
23 23
 
24
-        $links = Asset::with('media')->orderBy('created_at', 'DESC')->whereNotIn('id', $excluded)->whereHas('media', function (Builder $query) use ($search) {
24
+        $links = Asset::with('media')->orderBy('created_at', 'DESC')->whereNotIn('id', $excluded)->whereHas('media', function(Builder $query) use ($search) {
25 25
             $query->where('mime_type', 'LIKE', '%image%');
26
-            $query->where('name', 'LIKE', '%' . $search . '%');
27
-        })->offset($offset)->limit($limit)->get()->map(function ($asset) {
26
+            $query->where('name', 'LIKE', '%'.$search.'%');
27
+        })->offset($offset)->limit($limit)->get()->map(function($asset) {
28 28
             return [
29 29
                 "id" => $asset->id,
30 30
                 "url" => $asset->url(),
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ResetPasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         // Here we will attempt to reset the user's password. If it is successful we
66 66
         // will update the password on an actual user model and persist it to the
67 67
         // database. Otherwise we will parse the error and return the response.
68
-        $response = $this->broker()->reset($this->credentials($request), function ($user, $password) {
68
+        $response = $this->broker()->reset($this->credentials($request), function($user, $password) {
69 69
             $this->resetPassword($user, $password);
70 70
         });
71 71
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ChangePasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         $user = auth()->guard('chief')->user();
18 18
 
19
-        return view('chief::admin.auth.passwords.edit', ['new_password' => ! $user->password]);
19
+        return view('chief::admin.auth.passwords.edit', ['new_password' => !$user->password]);
20 20
     }
21 21
 
22 22
     public function update(Request $request)
Please login to merge, or discard this patch.