<commit_before><?php

namespace Chris48s\GeoDistance\Test\TestCase\Model\Behavior;

use Cake\Datasource\ConnectionManager;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\TestCase;
use Chris48s\GeoDistance\Exception\GeoDistanceFatalException;
use Chris48s\GeoDistance\Exception\GeoDistanceInvalidArgumentException;
use Chris48s\GeoDistance\Model\Behavior\GeoDistanceBehavior;

class GeoDistanceBehaviorTest extends TestCase
{
    public $fixtures = [
        'plugin.Chris48s\GeoDistance.foo'
    ];

    public function tearDown()
    {
        parent::tearDown();
        TableRegistry::clear();
    }

    // set up a table to use for testing
    private function getValidTable()
    {
        $table = TableRegistry::get('Foo');
        $table->addBehavior('Chris48s/GeoDistance.GeoDistance', [
            'latitudeColumn' => 'lat',
            'longitudeColumn' => 'lng'
        ]);
        return $table;
    }
<commit_msg>match latest CakePHP coding standards<commit_after><?php

namespace Chris48s\GeoDistance\Test\TestCase\Model\Behavior;

use Cake\Datasource\ConnectionManager;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\TestCase;
use Chris48s\GeoDistance\Exception\GeoDistanceFatalException;
use Chris48s\GeoDistance\Exception\GeoDistanceInvalidArgumentException;
use Chris48s\GeoDistance\Model\Behavior\GeoDistanceBehavior;

class GeoDistanceBehaviorTest extends TestCase
{
    public $fixtures = [
        'plugin.Chris48s\GeoDistance.foo'
    ];

    public function tearDown()
    {
        parent::tearDown();
        TableRegistry::clear();
    }

    // set up a table to use for testing
    private function getValidTable()
    {
        $table = TableRegistry::get('Foo');
        $table->addBehavior('Chris48s/GeoDistance.GeoDistance', [
            'latitudeColumn' => 'lat',
            'longitudeColumn' => 'lng'
        ]);

        return $table;
    }

{'fraction_non_alphanumeric': 0.10727562400424855, 'fraction_numerical': 0.012745618693574084, 'mean_word_length': 3.4018691588785046, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7147899', 'n_tokens_mistral': 582, 'n_tokens_neox': 547, 'n_words': 98}