Skip to content

Commit

Permalink
Tidy Query
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Nov 2, 2024
1 parent 80bf3c6 commit 4bd98fa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions lib/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public function save(bool $skip_validation = false): void
assert(is_numeric($id));
}

// @phpstan-ignore-next-line
$rc = $model->save($properties, $id);

if ($id === null) {
Expand Down
8 changes: 0 additions & 8 deletions lib/ActiveRecord/Driver/TableRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@

abstract class TableRenderer
{
/**
* @param non-empty-string $prefixed_table_name
*
* @return non-empty-string
*/
public function render(Schema $schema, string $prefixed_table_name): string
{
$column_defs = implode(",\n", $this->render_column_defs($schema));
Expand Down Expand Up @@ -54,9 +49,6 @@ abstract protected function render_table_constraints(Schema $schema): array;

/**
* @param Schema $schema
* @param non-empty-string $prefixed_table_name
*
* @return non-empty-string
*/
abstract protected function render_create_index(Schema $schema, string $prefixed_table_name): string;

Expand Down
4 changes: 0 additions & 4 deletions lib/ActiveRecord/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ private function make_select_join(): string

public Schema $extended_schema;

public Schema $extended_schema;

/**
* Returns the extended schema.
*/
Expand Down Expand Up @@ -486,8 +484,6 @@ public function update(array $values, int|string $key): void
$values[] = $key;

$this->execute($query, $values);

return true;
}

/**
Expand Down

0 comments on commit 4bd98fa

Please sign in to comment.