Passed
Push — master ( 3f5deb...09d4f1 )
by Georgi
03:22
created
src/Dashboard/DashboardCore.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	{
32 32
 		// create user default dashboard as copy of the system default
33 33
 		User::created(function(User $user) {
34
-			if (! $defaultDashboard = Dashboard::where('user_id', 0)->first()) return;
34
+			if (!$defaultDashboard = Dashboard::where('user_id', 0)->first()) return;
35 35
 			
36 36
 			$userDefaultDashboard = $defaultDashboard->replicate();
37 37
 			
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
 	{
32 32
 		// create user default dashboard as copy of the system default
33 33
 		User::created(function(User $user) {
34
-			if (! $defaultDashboard = Dashboard::where('user_id', 0)->first()) return;
34
+			if (! $defaultDashboard = Dashboard::where('user_id', 0)->first()) {
35
+				return;
36
+			}
35 37
 			
36 38
 			$userDefaultDashboard = $defaultDashboard->replicate();
37 39
 			
Please login to merge, or discard this patch.