Skip to content

Commit d20a5bc

Browse files
committed
Added the license header
1 parent 4d9ffa1 commit d20a5bc

File tree

222 files changed

+3162
-1024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+3162
-1024
lines changed

src/Elasticsearch/Client.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -26,11 +40,6 @@
2640
/**
2741
* Class Client
2842
*
29-
* @category Elasticsearch
30-
* @package Elasticsearch
31-
* @author Zachary Tong <[email protected]>
32-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
33-
* @link http://elastic.co
3443
*/
3544
class Client
3645
{

src/Elasticsearch/ClientBuilder.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -25,11 +39,6 @@
2539
/**
2640
* Class ClientBuilder
2741
*
28-
* @category Elasticsearch
29-
* @package Elasticsearch\Common\Exceptions
30-
* @author Zachary Tong <[email protected]>
31-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
32-
* @link http://elastic.co
3342
*/
3443
class ClientBuilder
3544
{

src/Elasticsearch/Common/EmptyLogger.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -13,11 +27,6 @@
1327
* Logger that doesn't do anything. Similar to Monolog's NullHandler,
1428
* but avoids the overhead of partially loading Monolog
1529
*
16-
* @category Elasticsearch
17-
* @package Elasticsearch\Common
18-
* @author Zachary Tong <[email protected]>
19-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
20-
* @link http://elastic.co
2130
*/
2231
class EmptyLogger extends AbstractLogger implements LoggerInterface
2332
{

src/Elasticsearch/Common/Exceptions/AlreadyExpiredException.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -7,11 +21,6 @@
721
/**
822
* AlreadyExpiredException, thrown when a document has already expired
923
*
10-
* @category Elasticsearch
11-
* @package Elasticsearch\Common\Exceptions
12-
* @author Zachary Tong <[email protected]>
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
14-
* @link http://elastic.co
1524
*/
1625
class AlreadyExpiredException extends \Exception implements ElasticsearchException
1726
{

src/Elasticsearch/Common/Exceptions/BadMethodCallException.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -9,11 +23,6 @@
923
*
1024
* Denote problems with a method call (e.g. incorrect number of arguments)
1125
*
12-
* @category Elasticsearch
13-
* @package Elasticsearch\Common\Exceptions
14-
* @author Zachary Tong <[email protected]>
15-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
16-
* @link http://elastic.co
1726
*/
1827
class BadMethodCallException extends \BadMethodCallException implements ElasticsearchException
1928
{

src/Elasticsearch/Common/Exceptions/BadRequest400Exception.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -7,11 +21,6 @@
721
/**
822
* BadRequest400Exception, thrown on 400 conflict http error
923
*
10-
* @category Elasticsearch
11-
* @package Elasticsearch\Common\Exceptions
12-
* @author Zachary Tong <[email protected]>
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
14-
* @link http://elastic.co
1524
*/
1625
class BadRequest400Exception extends \Exception implements ElasticsearchException
1726
{

src/Elasticsearch/Common/Exceptions/ClientErrorResponseException.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -7,11 +21,6 @@
721
/**
822
* Class ClientErrorResponseException
923
*
10-
* @category Elasticsearch
11-
* @package Elasticsearch\Common\Exceptions
12-
* @author Zachary Tong <[email protected]>
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
14-
* @link http://elastic.co
1524
*/
1625
class ClientErrorResponseException extends TransportException implements ElasticsearchException
1726
{

src/Elasticsearch/Common/Exceptions/Conflict409Exception.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -7,11 +21,6 @@
721
/**
822
* Conflict409Exception, thrown on 409 conflict http error
923
*
10-
* @category Elasticsearch
11-
* @package Elasticsearch\Common\Exceptions
12-
* @author Zachary Tong <[email protected]>
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
14-
* @link http://elastic.co
1524
*/
1625
class Conflict409Exception extends \Exception implements ElasticsearchException
1726
{

src/Elasticsearch/Common/Exceptions/Curl/CouldNotConnectToHost.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -10,11 +24,6 @@
1024
/**
1125
* Class CouldNotConnectToHost
1226
*
13-
* @category Elasticsearch
14-
* @package Elasticsearch\Common\Exceptions\Curl
15-
* @author Zachary Tong <[email protected]>
16-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
17-
* @link http://elastic.co
1827
*/
1928
class CouldNotConnectToHost extends TransportException implements ElasticsearchException
2029
{

src/Elasticsearch/Common/Exceptions/Curl/CouldNotResolveHostException.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -10,11 +24,6 @@
1024
/**
1125
* Class CouldNotResolveHostException
1226
*
13-
* @category Elasticsearch
14-
* @package Elasticsearch\Common\Exceptions\Curl
15-
* @author Zachary Tong <[email protected]>
16-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
17-
* @link http://elastic.co
1827
*/
1928
class CouldNotResolveHostException extends TransportException implements ElasticsearchException
2029
{

0 commit comments

Comments
 (0)