<commit_before><?php
/**
 * This file is part of the Axstrad library.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright 2014-2015 <NAME> <<EMAIL>>
 */

namespace Axstrad\DoctrineExtensions\Activatable;

/**
 * Axstrad\DoctrineExtensions\Activatable\ActivatableTrait
 *
 * @author <NAME> <<EMAIL>>
 * @license MIT
 * @package Axstrad/DoctrineExtensions
 * @subpackage Activatable
 */
trait ActivatableTrait{

    /**
     * @ORM\Column(type="boolean", options={"default":true})
     * @var boolean
     */
    protected $active = true;

    /**
     * Get active
     *
     * @return boolean
     */
    public function isActive()
    {
        return $this->active;
    }

    /**
     * Set active
     *
     * @param  boolean $active
     * @return self
     */
    public function setActive($active = true)
    {
        $this->active = $active === true;

        return $this;
    }
}
<commit_msg>Scrutinizer Auto-Fixes<commit_after><?php
/**
 * This file is part of the Axstrad library.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright 2014-2015 <NAME> <<EMAIL>>
 */

namespace Axstrad\DoctrineExtensions\Activatable;

/**
 * Axstrad\DoctrineExtensions\Activatable\ActivatableTrait
 *
 * @author <NAME> <<EMAIL>>
 * @license MIT
 * @package Axstrad/DoctrineExtensions
 * @subpackage Activatable
 */
trait ActivatableTrait
{

    /**
     * @ORM\Column(type="boolean", options={"default":true})
     * @var boolean
     */
    protected $active = true;

    /**
     * Get active
     *
     * @return boolean
     */
    public function isActive()
    {
        return $this->active;
    }

    /**
     * Set active
     *
     * @param  boolean $active
     * @return self
     */
    public function setActive($active = true)
    {
        $this->active = $active === true;

        return $this;
    }
}

{'fraction_non_alphanumeric': 0.13420542635658914, 'fraction_numerical': 0.007751937984496124, 'mean_word_length': 2.511904761904762, 'pattern_counts': {'":': 2, '<': 23, '<?xml version=': 0, '>': 25, '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': '7035991', 'n_tokens_mistral': 650, 'n_tokens_neox': 630, 'n_words': 163}