Passed
Push — analysis-z4G20e ( fbc4ca )
by Greg
09:39
created
app/Module/TopPageViewsModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 
71 71
         $top10 = DB::table('hit_counter')
72 72
             ->where('gedcom_id', '=', $tree->id())
73
-            ->whereIn('page_name', ['individual.php','family.php','source.php','repo.php','note.php','mediaviewer.php'])
73
+            ->whereIn('page_name', ['individual.php', 'family.php', 'source.php', 'repo.php', 'note.php', 'mediaviewer.php'])
74 74
             ->orderByDesc('page_count')
75 75
             ->limit((int) $num)
76 76
             ->pluck('page_count', 'page_parameter');
Please login to merge, or discard this patch.
app/Http/Controllers/AdminLocationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -494,7 +494,7 @@
 block discarded – undo
494 494
         // ... and process the differences
495 495
         $inserted = 0;
496 496
         if (!empty($diff)) {
497
-            $nextRecordId    = 1 + (int) DB::table('placelocation')->max('pl_id');
497
+            $nextRecordId = 1 + (int) DB::table('placelocation')->max('pl_id');
498 498
 
499 499
             foreach ($diff as $place) {
500 500
                 // For Westminster, London, England, we must also create England and London, England
Please login to merge, or discard this patch.
app/Http/Controllers/AutocompleteController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         $pages = [];
104 104
 
105 105
         // Escape the query for MySQL and PHP, converting spaces to wildcards.
106
-        $like_query  = strtr($query, [
106
+        $like_query = strtr($query, [
107 107
             '_' => '\\_',
108 108
             '%' => '\\%',
109 109
             ' ' => '%',
Please login to merge, or discard this patch.