src/Kunstmaan/DashboardBundle/Helper/Google/Analytics/ConfigHelper.php
public function getActiveProfile()
    {
        $profiles = $this->getProfiles();
        $profileId = $this->getProfileId();

        if (!is_array($profiles)) {
            throw new \Exception('<fg=red>The config is invalid</fg=red>');
        }

        foreach ($profiles as $profile) {
            if ($profile['profileId'] == $profileId) {
                return $profile;
            }
        }
    }
public function getActiveProfile()
    {
        $profiles = $this->getProfiles();
        $profileId = $this->getProfileId();

        if (!is_array($profiles)) {
            throw new \Exception('<fg=red>The config is invalid</fg=red>');
        }

        foreach ($profiles as $profile) {
            if ($profile['profileId'] == $profileId) {
                return $profile;
            }
        }
    }
public function getActiveProfile ( ) { $ profiles = $ this -> getProfiles ( ) ; $ profileId = $ this -> getProfileId ( ) ; if ( ! is_array ( $ profiles ) ) { throw new \ Exception ( '<fg=red>The config is invalid</fg=red>' ) ; } foreach ( $ profiles as $ profile ) { if ( $ profile [ 'profileId' ] == $ profileId ) { return $ profile ; } } }
Get the active profile

@return the profile
Get the active profile