-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve workflows * Increase PHPStan level * Increase PHPStan level * Increase PHPStan level * Increase PHPStan level * Increase PHPStan level * Improve contributing manual * Refactoring
- Loading branch information
1 parent
120fd74
commit f560c6f
Showing
26 changed files
with
187 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
includes: | ||
- ./vendor/larastan/larastan/extension.neon | ||
parameters: | ||
level: 1 | ||
level: 9 | ||
paths: | ||
- src | ||
- tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
namespace Staudenmeir\LaravelCte\Query\Grammars; | ||
|
||
use Illuminate\Database\Query\Builder; | ||
|
||
interface ExpressionGrammar | ||
{ | ||
/** | ||
* Compile an insert statement using a subquery into SQL. | ||
* | ||
* @param \Illuminate\Database\Query\Builder $query | ||
* @param list<string|\Illuminate\Database\Query\Expression> $columns | ||
* @param string $sql | ||
* @return string | ||
*/ | ||
public function compileInsertUsing(Builder $query, array $columns, string $sql); | ||
|
||
/** | ||
* Compile an update statement into SQL. | ||
* | ||
* @param \Illuminate\Database\Query\Builder $query | ||
* @param array<string, mixed> $values | ||
* @return string | ||
*/ | ||
public function compileUpdate(Builder $query, array $values); | ||
|
||
/** | ||
* Prepare the bindings for an update statement. | ||
* | ||
* @param array{expressions: list<mixed>, select: list<mixed>, from: list<mixed>, join: list<mixed>, | ||
* where: list<mixed>, having: list<mixed>, order: list<mixed>, union: list<mixed>, | ||
* unionOrder: list<mixed>} $bindings | ||
* @param array<string, mixed> $values | ||
* @return list<mixed> | ||
*/ | ||
public function prepareBindingsForUpdate(array $bindings, array $values); | ||
|
||
/** | ||
* Get the bindings for an update statement. | ||
* | ||
* @param \Illuminate\Database\Query\Builder $query | ||
* @param array{expressions: list<mixed>, select: list<mixed>, from: list<mixed>, join: list<mixed>, | ||
* where: list<mixed>, having: list<mixed>, order: list<mixed>, union: list<mixed>, | ||
* unionOrder: list<mixed>} $bindings | ||
* @param array<string, mixed> $values | ||
* @return list<mixed> | ||
*/ | ||
public function getBindingsForUpdate(Builder $query, array $bindings, array $values); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.