Skip to content

Commit 317897d

Browse files
committed
Fixed CS issue + updated PHPCS ruleset
1 parent a2b6af4 commit 317897d

File tree

8 files changed

+3
-8
lines changed

8 files changed

+3
-8
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
"scripts": {
5454
"phpcs": [
5555
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp src",
56-
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests"
56+
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests --ignore=tests/Elasticsearch/Tests/Yaml"
5757
],
5858
"phpstan": [
59-
"@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan-src.neon src --level 2 --no-progress"
59+
"phpstan analyse src --level 2 --no-progress"
6060
]
6161
}
6262
}

ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
<ruleset name="Elasticsearch-PHP">
33
<rule ref="PSR2">
44
<exclude name="Generic.Files.LineLength.TooLong"/>
5+
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"/>
56
</rule>
67
</ruleset>

src/Elasticsearch/Endpoints/Bulk.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,4 @@ public function setBody($body): Bulk
9393
}
9494
return $this;
9595
}
96-
9796
}

src/Elasticsearch/Endpoints/Ml/FindFileStructure.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,4 @@ public function setBody($body): FindFileStructure
8888
}
8989
return $this;
9090
}
91-
9291
}

src/Elasticsearch/Endpoints/Ml/PostData.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,4 @@ public function setJobId($job_id): PostData
9595

9696
return $this;
9797
}
98-
9998
}

src/Elasticsearch/Endpoints/Monitoring/Bulk.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,4 @@ public function setBody($body): Bulk
8282
}
8383
return $this;
8484
}
85-
8685
}

src/Elasticsearch/Endpoints/Msearch.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,4 @@ public function setBody($body): Msearch
8989
}
9090
return $this;
9191
}
92-
9392
}

src/Elasticsearch/Endpoints/MsearchTemplate.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,4 @@ public function setBody($body): MsearchTemplate
8787
}
8888
return $this;
8989
}
90-
9190
}

0 commit comments

Comments
 (0)