original_string: private function makeLink($args)
      {
          if (!isset($args['href'])) {
              Core::i()->log->warning('Unable to add stylesheet, no href attribute.');
              return false;
          }
          if (!isset($args['rel'])) {
              $args['rel'] = 'stylesheet';
          }
          if (!isset($args['type']) && $args['rel'] == 'stylesheet') {
              $args['type'] = 'text/css';
          }
  
          $link = '<link';
          foreach ($args as $key => $value) {
              $link .= ' ' . $key . '="' . $value . '"';
          }
          $link .= ' />';
          return $link;
      }
code: private function makeLink($args)
      {
          if (!isset($args['href'])) {
              Core::i()->log->warning('Unable to add stylesheet, no href attribute.');
              return false;
          }
          if (!isset($args['rel'])) {
              $args['rel'] = 'stylesheet';
          }
          if (!isset($args['type']) && $args['rel'] == 'stylesheet') {
              $args['type'] = 'text/css';
          }
  
          $link = '<link';
          foreach ($args as $key => $value) {
              $link .= ' ' . $key . '="' . $value . '"';
          }
          $link .= ' />';
          return $link;
      }
code_tokens: private function makeLink ( $ args ) { if ( ! isset ( $ args [ 'href' ] ) ) { Core :: i ( ) -> log -> warning ( 'Unable to add stylesheet, no href attribute.' ) ; return false ; } if ( ! isset ( $ args [ 'rel' ] ) ) { $ args [ 'rel' ] = 'stylesheet' ; } if ( ! isset ( $ args [ 'type' ] ) && $ args [ 'rel' ] == 'stylesheet' ) { $ args [ 'type' ] = 'text/css' ; } $ link = '<link' ; foreach ( $ args as $ key => $ value ) { $ link .= ' ' . $ key . '="' . $ value . '"' ; } $ link .= ' />' ; return $ link ; }
docstring: Generate a link to the stylesheet based on the passed parameters.
  
  @param $args
  
  @return bool|string
docstring_tokens: Generate a link to the stylesheet based on the passed parameters .