abbadon1334/sun-position-spa-php

View on GitHub

Showing 2 of 4 total issues

Method calcSunRiseTransitSet has 120 lines of code (exceeds 100 allowed). Consider refactoring.
Open

    public function calcSunRiseTransitSet()
    {
        $observer = clone $this->Observer;
        $observer->ObserverTime->Hour = 0;
        $observer->ObserverTime->Minute = 0;
Severity: Major
Found in src/SunPosition.php - About 1 hr to fix

    Method calculate has 105 lines of code (exceeds 100 allowed). Consider refactoring.
    Open

        public function calculate()
        {
            $this->PrimeHourAngle = -1 * (self::SUN_RADIUS + $this->PrimeHourAtmosfericRefraction);
            /**
             * 3.2. Calculate the Earth heliocentric longitude, latitude, and radius vector (L, B, and R):
    Severity: Major
    Found in src/SunPosition.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language