Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Push — add-translatable-support-for-s... ( 457d96...958ddd )
by Pedro
35:25
created
src/app/Library/CrudPanel/Traits/Search.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -301,10 +301,10 @@  discard block
 block discarded – undo
301 301
         // add the details_row button to the first column
302 302
         if ($this->getOperationSetting('detailsRow')) {
303 303
             $details_row_button = \View::make('crud::columns.inc.details_row_button')
304
-                                           ->with('crud', $this)
305
-                                           ->with('entry', $entry)
306
-                                           ->with('row_number', $rowNumber)
307
-                                           ->render();
304
+                                            ->with('crud', $this)
305
+                                            ->with('entry', $entry)
306
+                                            ->with('row_number', $rowNumber)
307
+                                            ->render();
308 308
             $row_items[0] = $details_row_button.$row_items[0];
309 309
         }
310 310
 
@@ -500,14 +500,14 @@  discard block
 block discarded – undo
500 500
                 if ($isJsonColumn) {
501 501
                     $subQuery->$localeOperation(function ($localeQuery) use ($searchColumn, $locale, $parsedDate) {
502 502
                         $localeQuery->whereNotNull("{$searchColumn}->{$locale}")
503
-                                   ->whereDate("{$searchColumn}->{$locale}", $parsedDate);
503
+                                    ->whereDate("{$searchColumn}->{$locale}", $parsedDate);
504 504
                     });
505 505
                 } else {
506 506
                     // For non-JSON columns storing date as string in serialized data
507 507
                     $subQuery->$localeOperation(function ($localeQuery) use ($searchColumn, $locale, $parsedDate) {
508 508
                         $dateString = $parsedDate->format('Y-m-d');
509 509
                         $localeQuery->whereRaw("LOWER({$searchColumn}) LIKE LOWER(?)", ['%"' . $locale . '":"' . $dateString . '%"%'])
510
-                                   ->orWhereRaw("LOWER({$searchColumn}) LIKE LOWER(?)", ['%s:' . strlen($locale) . ':"' . $locale . '"%' . $dateString . '%']);
510
+                                    ->orWhereRaw("LOWER({$searchColumn}) LIKE LOWER(?)", ['%s:' . strlen($locale) . ':"' . $locale . '"%' . $dateString . '%']);
511 511
                     });
512 512
                 }
513 513
             }
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
                 $query->$localeOperation(function ($localeQuery) use ($searchColumn, $locale, $searchTerm, $searchOperator, $isJsonColumn) {
541 541
                     if ($isJsonColumn) {
542 542
                         $localeQuery->whereNotNull("{$searchColumn}->{$locale}")
543
-                                   ->where("{$searchColumn}->{$locale}", $searchOperator, $searchTerm);
543
+                                    ->where("{$searchColumn}->{$locale}", $searchOperator, $searchTerm);
544 544
                     } else {
545 545
                         // For non-JSON columns, we need to search within the serialized/JSON string
546 546
                         $localeQuery->whereRaw("LOWER({$searchColumn}) LIKE LOWER(?)", ['%"' . $locale . '":"' . $searchTerm . '"%']);
@@ -565,15 +565,15 @@  discard block
 block discarded – undo
565 565
         if ($isJsonColumn) {
566 566
             // Use proper JSON functions for JSON columns with case-insensitive search
567 567
             $query->whereRaw("JSON_EXTRACT({$searchColumn}, '$.{$locale}') IS NOT NULL")
568
-                  ->whereRaw("LOWER(JSON_UNQUOTE(JSON_EXTRACT({$searchColumn}, '$.{$locale}'))) LIKE LOWER(?)", ['%' . $searchTerm . '%']);
568
+                    ->whereRaw("LOWER(JSON_UNQUOTE(JSON_EXTRACT({$searchColumn}, '$.{$locale}'))) LIKE LOWER(?)", ['%' . $searchTerm . '%']);
569 569
         } else {
570 570
             // For text columns storing JSON as string, search within the serialized data
571 571
             // This handles both PHP serialized arrays and JSON strings with case-insensitive search
572 572
             $query->where(function ($subQuery) use ($searchColumn, $locale, $searchTerm) {
573 573
                 // Search for JSON format: "locale":"value" (case-insensitive)
574 574
                 $subQuery->whereRaw("LOWER({$searchColumn}) LIKE LOWER(?)", ['%"' . $locale . '":"%' . $searchTerm . '%"%'])
575
-                         // Also search for PHP serialized format (case-insensitive)
576
-                         ->orWhereRaw("LOWER({$searchColumn}) LIKE LOWER(?)", ['%s:' . strlen($locale) . ':"' . $locale . '"%' . $searchTerm . '%']);
575
+                            // Also search for PHP serialized format (case-insensitive)
576
+                            ->orWhereRaw("LOWER({$searchColumn}) LIKE LOWER(?)", ['%s:' . strlen($locale) . ':"' . $locale . '"%' . $searchTerm . '%']);
577 577
             });
578 578
         }
579 579
     }
Please login to merge, or discard this patch.