@@ -18,14 +18,14 @@ |
||
18 | 18 | * @param string $text |
19 | 19 | * @param string $locale - a Valid ISO 639-3 locale (eng = English), if set to `none` lexing will be disabled |
20 | 20 | */ |
21 | - public function __construct(string $collection, string $bucket, string $object, string $text, string $locale=null) |
|
21 | + public function __construct(string $collection, string $bucket, string $object, string $text, string $locale = null) |
|
22 | 22 | { |
23 | 23 | $this->parameters = [ |
24 | 24 | 'collection' => $collection, |
25 | 25 | 'bucket' => $bucket, |
26 | 26 | 'object' => $object, |
27 | 27 | 'text' => self::wrapInQuotes($text), |
28 | - 'locale' => $locale ? "LANG($locale)": null, |
|
28 | + 'locale' => $locale ? "LANG($locale)" : null, |
|
29 | 29 | ]; |
30 | 30 | |
31 | 31 | parent::__construct($this->command, $this->parameters); |
@@ -24,9 +24,9 @@ |
||
24 | 24 | 'collection' => $collection, |
25 | 25 | 'bucket' => $bucket, |
26 | 26 | 'terms' => self::wrapInQuotes($terms), |
27 | - 'limit' => $limit ? "LIMIT($limit)": null, |
|
28 | - 'offset' => $offset ? "OFFSET($offset)": null, |
|
29 | - 'locale' => $locale ? "LANG($locale)": null, |
|
27 | + 'limit' => $limit ? "LIMIT($limit)" : null, |
|
28 | + 'offset' => $offset ? "OFFSET($offset)" : null, |
|
29 | + 'locale' => $locale ? "LANG($locale)" : null, |
|
30 | 30 | ]; |
31 | 31 | |
32 | 32 | parent::__construct($this->command, $this->parameters); |