Commit 8fee3be3 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

CS.

parent bc62bf32
No related merge requests found
Pipeline #5740 passed with stages
in 1 minute and 47 seconds
Showing with 8 additions and 4 deletions
+8 -4
......@@ -5,5 +5,5 @@
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<rule ref="vendor/irstea/phpmd-config/strict.xml"/>
<rule ref="vendor/irstea/phpmd-config/loose.xml"/>
</ruleset>
......@@ -54,19 +54,21 @@ abstract class Maybe implements \IteratorAggregate
abstract public function resolve(callable $withJust, callable $withNothing);
/**
* @param $default
* @param mixed $default
*
* @return mixed
*/
abstract public function valueOr($default);
/**
* @throws NothingException
*
* @return mixed
*/
abstract public function value();
/**
* @return mixed
* @return array
*/
abstract public function toArray(): array;
......@@ -108,6 +110,8 @@ abstract class Maybe implements \IteratorAggregate
/**
* @param callable $generator
*
* @return Maybe
*/
public static function run(callable $generator): Maybe
{
......
......@@ -22,7 +22,7 @@ final class Just extends Maybe
/**
* Just constructor.
*
* @param $value
* @param mixed $value
*/
private function __construct($value)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment