rspec/rules/S107/php/rule.adoc

42 lines
631 B
Plaintext
Raw Normal View History

== Why is this an issue?
2020-06-30 10:16:44 +02:00
include::../description.adoc[]
=== Noncompliant code example
2020-06-30 10:16:44 +02:00
With a maximum number of 4 parameters:
2022-02-04 17:28:24 +01:00
[source,php]
2020-06-30 10:16:44 +02:00
----
function doSomething($param1, $param2, $param3, $param4, $param5) {
...
}
----
=== Compliant solution
2020-06-30 10:16:44 +02:00
2022-02-04 17:28:24 +01:00
[source,php]
2020-06-30 10:16:44 +02:00
----
function doSomething($param1, $param2, $param3, $param4) {
...
}
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]