Skip to content

Commit 6024427

Browse files
committed
Conflict resolution
2 parents 971ac9a + 6692e16 commit 6024427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules_reference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ On creating a new service you will be redirected to the service page where you w
1010

1111
### Rules Syntax definition
1212
Rules is based on a PHP method chain. Which is a bunch of methods you call together to get particular results.
13-
Just like method chains in any language, you may chain up a bunch of methods like so `beforeQuering()->assign(input_name)->to(name)`.
13+
Just like method chains in any language, you may chain up a bunch of methods like so `->beforeQuering()->assign(input_name)->to(name)`.
1414
A couple of things to note though is that:
1515
* Rules in DevLess uses the arrow operator `->` for joining methods together instead of `.` as seen in PHP .
1616

1717
* To concatenate strings together you are advised to use the `concatenate` method as `.` is used for concatenation in PHP and this might be a little confusing. So instead of `->beforeQuerying()->assign("hello "." world")->to(greetings)` `->beforeQuerying()->concatenate("hello ","world" )->storeAs(greetings)`
18-
* Although PHP variables starts with a `$` prefix you may choose to omit this when working with rules , eg `beforeQuering()->assign(input_name)->to(name)` and `->beforeQuering()->assign($input_name)->to($name)` will work fine with DevLess Rules.
18+
* Although PHP variables starts with a `$` prefix you may choose to omit this when working with rules , eg `->beforeQuering()->assign(input_name)->to(name)` and `->beforeQuering()->assign($input_name)->to($name)` will work fine with DevLess Rules.
1919
* There are times you might have to work with DevLess arrays. DevLess Rules implement [arrays as seen in PHP](http://php.net/manual/en/function.array.php) eg `["key" => "value"]`
2020

2121
### Database events

0 commit comments

Comments
 (0)