Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/Libraries/Validation/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.0.0
* @since 2.6.0
*/

namespace Quantum\Libraries\Validation;
Expand All @@ -24,16 +24,12 @@ class Rule

/**
* Sets the rule
* @param string $rule
* @param mixed|null $params
* @param string $rule
* @param mixed|null $params
* @return array
*/
public static function set(string $rule, $params = null): array
{
if (is_null($params)) {
$params = null;
}

return [$rule => $params];
}

Expand Down