Passed
Push — dev6 ( e96c57...811cb3 )
by Ron
09:47
created
app/Traits/LogUtilitiesTrait.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     protected function getChannelDetails($channel)
50 50
     {
51
-        return Arr::first($this->logChannels, function($value) use ($channel)
52
-        {
51
+        return Arr::first($this->logChannels, function($value) use ($channel) {
53 52
             return $value['name'] == $channel;
54 53
         });
55 54
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         $this->configureRateLimiting();
21 21
 
22
-        $this->routes(function()
23
-        {
22
+        $this->routes(function() {
24 23
             //  Basic Login and Logout Routes
25 24
             Route::middleware('web')
26 25
                 ->namespace($this->namespace)
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerFileTypesController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,8 @@
 block discarded – undo
65 65
         $fileType = CustomerFileType::find($id);
66 66
         $this->authorize('delete', $fileType);
67 67
 
68
-        try {
68
+        try
69
+        {
69 70
             $fileType->delete();
70 71
         }
71 72
         //  The deletion may fail if the file type is currently in use
Please login to merge, or discard this patch.
app/Http/Controllers/TechTips/SearchTipsController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
             ->orderBy('sticky', 'DESC')
37 37
             ->orderBy('created_at', 'DESC')
38 38
             //  Search text fields
39
-            ->when($searchText, function($q) use($searchText)
40
-                {
39
+            ->when($searchText, function($q) use($searchText) {
41 40
                     foreach($searchText as $text)
42 41
                     {
43 42
                         $q->orWhere('subject', 'like', '%'.$text.'%')
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,10 @@
 block discarded – undo
18 18
     {
19 19
         $guards = empty($guards) ? [null] : $guards;
20 20
 
21
-        foreach($guards as $guard) {
22
-            if(Auth::guard($guard)->check()) {
21
+        foreach($guards as $guard)
22
+        {
23
+            if(Auth::guard($guard)->check())
24
+            {
23 25
                 return redirect(RouteServiceProvider::HOME);
24 26
             }
25 27
         }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@
 block discarded – undo
11 11
      */
12 12
     protected function redirectTo($request)
13 13
     {
14
-        if(!$request->expectsJson()) {
14
+        if(!$request->expectsJson())
15
+        {
15 16
             return route('login.index');
16 17
         }
17 18
     }
Please login to merge, or discard this patch.
app/Console/Commands/TbBackupRestoreCommand.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,8 @@
 block discarded – undo
239 239
         if(Storage::disk('backups')->exists($this->basename.'backup.sql'))
240 240
         {
241 241
             $this->line('Restoring database');
242
-            try{
242
+            try
243
+            {
243 244
 
244 245
                 DB::connection(DB::getDefaultConnection())
245 246
                 ->getSchemaBuilder()
Please login to merge, or discard this patch.
app/Console/Commands/MigrateDatabaseCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -273,8 +273,7 @@
 block discarded – undo
273 273
      */
274 274
     protected function getPermissionValue($permArray, $id)
275 275
     {
276
-        $obj = Arr::first($permArray, function($value, $key) use ($id)
277
-                {
276
+        $obj = Arr::first($permArray, function($value, $key) use ($id) {
278 277
                     return $value->perm_type_id == $id;
279 278
                 });
280 279
 
Please login to merge, or discard this patch.