creof/doctrine2-spatial

View on GitHub

Showing 66 of 447 total issues

Method testSTContainsWhereParameter has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSTContainsWhereParameter()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Method testSelectSTCrosses has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTCrosses()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 10)

Method testSelectSTMakeEnvelope has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTMakeEnvelope()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(2, 0),

Method onNotSuccessfulTest has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function onNotSuccessfulTest(\Exception $e)
    {
        if (! $GLOBALS['opt_use_debug_stack'] || $e instanceof \PHPUnit_Framework_AssertionFailedError) {
            throw $e;
        }
Severity: Minor
Found in tests/CrEOF/Spatial/Tests/OrmTestCase.php - About 1 hr to fix

Method testSTLineCrossingDirectionWhereParameter has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSTLineCrossingDirectionWhereParameter()
    {
        $lineString1 = new LineString(array(
            new Point(8, 15),
            new Point(4, 8)

Method testSelectSTContains has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTContains()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Method testSelectSTCoveredBy has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTCoveredBy()
    {
        $lineString1 = new LineString(array(
            new Point(6, 6),
            new Point(10, 6),

Method testSelectContains has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectContains()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Method testSelectSTCovers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTCovers()
    {
        $lineString1 = new LineString(array(
            new Point(6, 6),
            new Point(10, 6),

Method testSelectSTClosestPoint has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTClosestPoint()
    {
        $ring1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Method testSelectMBRContains has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectMBRContains()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Method testSelectSTContainsProperly has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTContainsProperly()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Method testSelectSTCentroid has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTCentroid()
    {
        $lineString1 = new LineString(array(
            new Point(6, 6),
            new Point(10, 6),

Method testMultiPolygonFromObjectsGetLastPolygon has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testMultiPolygonFromObjectsGetLastPolygon()
    {
        $polygon1 = new Polygon(
            array(
                new LineString(
Severity: Minor
Found in tests/CrEOF/Spatial/Tests/PHP/Types/Geometry/MultiPolygonTest.php - About 1 hr to fix

Method testMultiPolygonFromObjectsGetSinglePolygon has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testMultiPolygonFromObjectsGetSinglePolygon()
    {
        $polygon1 = new Polygon(
            array(
                new LineString(
Severity: Minor
Found in tests/CrEOF/Spatial/Tests/PHP/Types/Geometry/MultiPolygonTest.php - About 1 hr to fix

Method testSTCoversWhereParameter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSTCoversWhereParameter()
    {
        $lineString1 = new LineString(array(
            new Point(6, 6),
            new Point(10, 6),

Method testSTCoveredByWhereParameter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSTCoveredByWhereParameter()
    {
        $lineString1 = new LineString(array(
            new Point(6, 6),
            new Point(10, 6),

Method testSTContainsProperlyWhereParameter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSTContainsProperlyWhereParameter()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Method testAsBinary has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testAsBinary()
    {
        $lineString1 = array(
            new Point(0, 0),
            new Point(2, 2),

Method validateArguments has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function validateArguments(array $argv = null)
    {
        $argc = count($argv);

        if (1 == $argc && is_array($argv[0])) {
Severity: Minor
Found in lib/CrEOF/Spatial/PHP/Types/AbstractPoint.php - About 1 hr to fix
Severity
Category
Status
Source
Language