@@ -27,7 +27,6 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Создать новый скрипт |
30 | - * @param string $language=painless |
|
31 | 30 | */ |
32 | 31 | public function __construct($language='painless') |
33 | 32 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * Создать новый скрипт |
30 | 30 | * @param string $language=painless |
31 | 31 | */ |
32 | - public function __construct($language='painless') |
|
32 | + public function __construct($language = 'painless') |
|
33 | 33 | { |
34 | 34 | $this->language = $language; |
35 | 35 | } |
@@ -85,7 +85,9 @@ |
||
85 | 85 | ]; |
86 | 86 | |
87 | 87 | // because ES |
88 | - if (empty($script['script']['params'])) unset($script['script']['params']); |
|
88 | + if (empty($script['script']['params'])) { |
|
89 | + unset($script['script']['params']); |
|
90 | + } |
|
89 | 91 | |
90 | 92 | return $script; |
91 | 93 | } |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Bardex\Elastic; |
4 | 4 | |
5 | -use Bardex\Elastic\SearchResult; |
|
6 | - |
|
7 | 5 | |
8 | 6 | /** |
9 | 7 | * Fluent interface for ElasticSearch |