original_string: public function getBodyAttributes()
      {
          $attributes = [];
          
          $api = GoogleAPI::singleton();
          
          if ($key = $api->getAPIKey()) {
              $attributes['data-google-api-key'] = $key;
          }
          
          if ($lang = $api->getAPILanguage()) {
              $attributes['data-google-api-lang'] = $lang;
          }
          
          if ($api->isAnalyticsEnabled()) {
              $attributes['data-google-tracking-id'] = $api->getAnalyticsTrackingID();
          }
          
          return $attributes;
      }
code: public function getBodyAttributes()
      {
          $attributes = [];
          
          $api = GoogleAPI::singleton();
          
          if ($key = $api->getAPIKey()) {
              $attributes['data-google-api-key'] = $key;
          }
          
          if ($lang = $api->getAPILanguage()) {
              $attributes['data-google-api-lang'] = $lang;
          }
          
          if ($api->isAnalyticsEnabled()) {
              $attributes['data-google-tracking-id'] = $api->getAnalyticsTrackingID();
          }
          
          return $attributes;
      }
code_tokens: public function getBodyAttributes ( ) { $ attributes = [ ] ; $ api = GoogleAPI :: singleton ( ) ; if ( $ key = $ api -> getAPIKey ( ) ) { $ attributes [ 'data-google-api-key' ] = $ key ; } if ( $ lang = $ api -> getAPILanguage ( ) ) { $ attributes [ 'data-google-api-lang' ] = $ lang ; } if ( $ api -> isAnalyticsEnabled ( ) ) { $ attributes [ 'data-google-tracking-id' ] = $ api -> getAnalyticsTrackingID ( ) ; } return $ attributes ; }
docstring: Answers the HTML tag attributes for the body as an array.
  
  @return array
docstring_tokens: Answers the HTML tag attributes for the body as an array .