Skip to content

Commit

Permalink
Minor code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Jun 4, 2023
1 parent 15c5a06 commit 20b1962
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Guest/LinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function index(Request $request): View

$orderBy = $request->input('orderBy', 'created_at');
$orderDir = $request->input('orderDir', 'desc');
if ($orderBy == 'random') {
if ($orderBy === 'random') {
$links->inRandomOrder();
} else {
$links->orderBy($orderBy, $orderDir);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Models/LinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function index(Request $request): View
$links = Link::byUser()
->with('tags');

if ($orderBy == 'random') {
if ($orderBy === 'random') {
$links->inRandomOrder();
} else {
$links->orderBy($orderBy, $orderDir);
Expand Down
1 change: 1 addition & 0 deletions resources/docker/nginx/dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ server {

try_files $uri /index.php;
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_keep_conn on;
fastcgi_intercept_errors on;
fastcgi_index index.php;
Expand Down

0 comments on commit 20b1962

Please sign in to comment.