Skip to content

Commit

Permalink
dang ol' spaces and tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed May 26, 2024
1 parent f86a36a commit cc90316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@ public function addCondition(string $field, string $operator, $value, string $de
}
$name = strtolower($name);

// skip adding the `table.` prefix if it's already there or a function is being supplied.
$skip_table_prefix = (strpos($field, '.') !== false || strpos($field, '(') !== false);
// skip adding the `table.` prefix if it's already there or a function is being supplied.
$skip_table_prefix = (strpos($field, '.') !== false || strpos($field, '(') !== false);
$expressions = new Expressions([
'source' => ('where' === $name && $skip_table_prefix === false ? $this->table . '.' : '') . $field,
'operator' => $operator,
Expand Down
4 changes: 2 additions & 2 deletions src/commands/RecordCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public function __construct(array $config)
$this->argument('<table_name>', 'The name of the table to read from and create the active record');
$this->argument('[class_name]', 'The name of the active record class to create');
$this->usage(<<<TEXT
<bold> make:record users</end> ## Creates a file named UserRecord.php based on the users table<eol/>
<bold> make:record users Author</end> ## Creates a file named AuthorRecord.php based on the users table<eol/>
<bold> make:record users</end> ## Creates a file named UserRecord.php based on the users table<eol/>
<bold> make:record users Author</end> ## Creates a file named AuthorRecord.php based on the users table<eol/>
TEXT);
}

Expand Down

0 comments on commit cc90316

Please sign in to comment.