Skip to content

Commit

Permalink
fix: added php-cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcostaParedes committed May 7, 2021
1 parent 16f0250 commit fe6233b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
- name: Install Composer
run: composer install

- name: PHPCS check
uses: chekalsky/phpcs-action@v1
with:
enable_warnings: true

- name: Execute tests
run: vendor/bin/codecept run --coverage --coverage-text --coverage-xml

Expand Down
2 changes: 1 addition & 1 deletion src/Spanner/Builder/Interfaces/Fetchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ public function take($value): Builder;
public function find($id, $columns = ['*']): array;
public function get(array $columns = ['*']): Collection;
public function delete($id = null): Timestamp;
}
}
2 changes: 1 addition & 1 deletion src/Spanner/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function __callStatic($method, $parameters)

public static function query(): Builder
{
return (new static)->newQuery();
return (new static())->newQuery();
}

public static function all($columns = ['*']): Collection
Expand Down

0 comments on commit fe6233b

Please sign in to comment.