From cc90316fd24125fec9bb5b5f4a48afc07c2f9e37 Mon Sep 17 00:00:00 2001 From: n0nag0n Date: Sat, 25 May 2024 22:53:13 -0600 Subject: [PATCH] dang ol' spaces and tabs --- src/ActiveRecord.php | 4 ++-- src/commands/RecordCommand.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ActiveRecord.php b/src/ActiveRecord.php index 1d9bc28..47c224d 100644 --- a/src/ActiveRecord.php +++ b/src/ActiveRecord.php @@ -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, diff --git a/src/commands/RecordCommand.php b/src/commands/RecordCommand.php index d5e2a29..22ae27a 100644 --- a/src/commands/RecordCommand.php +++ b/src/commands/RecordCommand.php @@ -21,8 +21,8 @@ public function __construct(array $config) $this->argument('', '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(<< make:record users ## Creates a file named UserRecord.php based on the users table - make:record users Author ## Creates a file named AuthorRecord.php based on the users table + make:record users ## Creates a file named UserRecord.php based on the users table + make:record users Author ## Creates a file named AuthorRecord.php based on the users table TEXT); }