-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call clause #40
Call clause #40
Conversation
Partly solves issue #28 |
I like the decorator approach, but I would also like the |
Nice,
Can I add it to the github ci? Otherwise, I will keep forgetting. It will automatically block merges if the rules aren't met
…------- Original Message -------
On Monday, April 25th, 2022 at 4:44 PM, wgevaert ***@***.***> wrote:
@wgevaert commented on this pull request.
---------------------------------------------------------------
In [src/Query.php](#40 (comment)):
> @@ -21,6 +21,9 @@
namespace WikibaseSolutions\CypherDSL;
+use Closure;
+use Prophecy\Call\Call;
In case you are interested, I usually run it like path/to/vendor/bin/php-cs-fixer fix ***@***.***,align_multiline_comment,array_indentation,blank_line_before_statement,indentation_type,no_trailing_whitespace,no_unused_imports,no_useless_else,no_useless_return,ordered_imports,phpdoc_scalar,return_assignment,simplified_if_return,single_line_after_imports,switch_case_space,trailing_comma_in_multiline,ternary_operator_spaces ./src
or something along these lines. Fixes most codestyle issues I usually make. Personally I also like the operator_linebreak and single_quote rules but I won't enforce those on this package.
And there's also a bunch of nice risky fixes that are worth checking out.
—
Reply to this email directly, [view it on GitHub](#40 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AD5MVWXC4N2DENFNAT27EUDVG2VVNANCNFSM5UGUTEJA).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I'm okay with adding it to the github ci, I don't know how to do that haha. Concerning this pull request, note that CYPHER also allows for (ofc we do not have to think about that right now, but we could). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
I added support for the CALL clause for sub queries.
It's just a Clause accepting another query to build the subject with.
I also added a method on the Query object which uses a callable accepting a fresh query so the user can create something like this: