<commit_before><?php

/**
 * Linna Framework.
 *
 * @author <NAME> <<EMAIL>>
 * @copyright (c) 2017, <NAME>
 * @license http://opensource.org/licenses/MIT MIT License
 */
declare(strict_types=1);

namespace Linna\Auth;

/**
 * Class for manage password, using PHP 5.5.0 password, see php documentation for more information.
 *
 * http://php.net/manual/en/ref.password.php.
 */
class Password
{
    /**
     * @var array An associative array containing options
     *
     * http://php.net/manual/en/password.constants.php
     */
    protected $options = [
            'cost' => 11,
            'algo' => PASSWORD_DEFAULT,
        ];

    /**
     * Constructor.
     * 
     * @param array $options Options for password hashing
     */
    public function __construct(array $options = [])
    {
        //set options
        $this->options = array_replace_recursive($this->options, $options);
    }

    /**
     * Verifies that a password matches a hash.
     *
     * @param string $password Password to be verified
     * @param string $hash     Hash for password
     *
     * @return bool Result of password_verify PHP function.
     */
    public function verify(string $password, string $hash): bool
    {
        return password_verify($password, $hash);
    }<commit_msg>CS fix<commit_after><?php

/**
 * Linna Framework.
 *
 * @author <NAME> <<EMAIL>>
 * @copyright (c) 2017, <NAME>
 * @license http://opensource.org/licenses/MIT MIT License
 */
declare(strict_types=1);

namespace Linna\Auth;

/**
 * Class for manage password, using PHP 5.5.0 password, see php documentation for more information.
 *
 * http://php.net/manual/en/ref.password.php.
 */
class Password
{
    /**
     * @var array An associative array containing options
     *
     * http://php.net/manual/en/password.constants.php
     */
    protected $options = [
            'cost' => 11,
            'algo' => PASSWORD_DEFAULT,
        ];

    /**
     * Constructor.
     *
     * @param array $options Options for password hashing
     */
    public function __construct(array $options = [])
    {
        //set options
        $this->options = array_replace_recursive($this->options, $options);
    }

    /**
     * Verifies that a password matches a hash.
     *
     * @param string $password Password to be verified
     * @param string $hash     Hash for password
     *
     * @return bool Result of password_verify PHP function.
     */
    public function verify(string $password, string $hash): bool
    {
        return password_verify($password, $hash);
    }
{'fraction_non_alphanumeric': 0.1284259984338293, 'fraction_numerical': 0.007830853563038372, 'mean_word_length': 2.3662714097496704, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2332487', 'n_tokens_mistral': 775, 'n_tokens_neox': 740, 'n_words': 205}