<commit_before><?php

/**
 * Contao Open Source CMS
 *
 * Copyright (C) 2005-2014 Le<NAME>
 *
 * @package    translation-fields
 * @author     <NAME> <<EMAIL>>
 * @license    LGPL
 * @copyright  <NAME> 2013-2014
 */

/**
 * Namespace
 */
namespace TranslationFields;

/**
 * Class TranslationFieldsPageModel
 *
 * @copyright  <NAME> 2013-2014
 * @author     <NAME> <<EMAIL>>
 * @package    translation-fields
 */
class TranslationFieldsPageModel extends \Model
{
    /**
     * strTable
     *
     * @var string
     * @access protected
     * @static
     */
    protected static $strTable = 'tl_page';

    /**
     * findRootPages function.
     *
     * @access public
     * @static
     * @param array
     * @return object
     */
    public static function findRootPages(array $arrOptions = array())
    {
        $t = static::$strTable;
        $arrColumns = array("$t.type='root'");

        if (!isset($arrOptions['order'])) {
            $arrOptions['order'] = "$t.fallback DESC, $t.sorting ASC";
        }

        return static::findBy($arrColumns, $intPid, $arrOptions);
    }
}<commit_msg>fixed variable bug<commit_after><?php

/**
 * Contao Open Source CMS
 *
 * Copyright (C) 2005-2014 Leo Feyer
 *
 * @package    translation-fields
 * @author     <NAME> <<EMAIL>>
 * @license    LGPL
 * @copyright  <NAME> 2013-2014
 */

/**
 * Namespace
 */
namespace TranslationFields;

/**
 * Class TranslationFieldsPageModel
 *
 * @copyright  <NAME> 2013-2014
 * @author     <NAME> <<EMAIL>>
 * @package    translation-fields
 */
class TranslationFieldsPageModel extends \Model
{
    /**
     * strTable
     *
     * @var string
     * @access protected
     * @static
     */
    protected static $strTable = 'tl_page';

    /**
     * findRootPages function.
     *
     * @access public
     * @static
     * @param array
     * @return object
     */
    public static function findRootPages(array $arrOptions = array())
    {
        $t = static::$strTable;
        $arrColumns = array("$t.type=?");
        $arrValues = array('root');

        if (!isset($arrOptions['order'])) {
            $arrOptions['order'] = "$t.fallback DESC, $t.sorting ASC";
        }

        return static::findBy($arrColumns, $arrValues, $arrOptions);
    }
}
{'fraction_non_alphanumeric': 0.1492007104795737, 'fraction_numerical': 0.021314387211367674, 'mean_word_length': 2.3981900452488687, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 20, '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': '18139', 'n_tokens_mistral': 747, 'n_tokens_neox': 690, 'n_words': 157}