Skip to content

Commit

Permalink
Move query statements to .php.inc file
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbacon authored Dec 7, 2023
1 parent 711110f commit 2a32580
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ $query->orderBy('created_at', 'desc');
$query->orderBy('submitted_at');
$query->orderByDesc('submitted_at');
$query->orderBy($allowed_variable_name);
$query->orderBy($unallowed_variable_name);
$query->orderBy('unallowed_column_name');

?>
-----
Expand All @@ -31,7 +29,5 @@ $query->latest();
$query->oldest('submitted_at');
$query->latest('submitted_at');
$query->oldest($allowed_variable_name);
$query->orderBy($unallowed_variable_name);
$query->orderBy('unallowed_column_name');

?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace RectorLaravel\Tests\Rector\Cast\DatabaseExpressionCastsToMethodCall\Fixture;

$query->orderBy($unallowed_variable_name);
$query->orderBy('unallowed_column_name');

?>

0 comments on commit 2a32580

Please sign in to comment.