original_string: protected function moveImportsToTop($content)
      {
          if (preg_match_all('/@import[^;]+;/', $content, $matches)) {
              // remove from content
              foreach ($matches[0] as $import) {
                  $content = str_replace($import, '', $content);
              }
  
              // add to top
              $content = implode('', $matches[0]).$content;
          }
  
          return $content;
      }
code: protected function moveImportsToTop($content)
      {
          if (preg_match_all('/@import[^;]+;/', $content, $matches)) {
              // remove from content
              foreach ($matches[0] as $import) {
                  $content = str_replace($import, '', $content);
              }
  
              // add to top
              $content = implode('', $matches[0]).$content;
          }
  
          return $content;
      }
code_tokens: protected function moveImportsToTop ( $ content ) { if ( preg_match_all ( '/@import[^;]+;/' , $ content , $ matches ) ) { // remove from content foreach ( $ matches [ 0 ] as $ import ) { $ content = str_replace ( $ import , '' , $ content ) ; } // add to top $ content = implode ( '' , $ matches [ 0 ] ) . $ content ; } return $ content ; }
docstring: Move any import statements to the top.
  
  @param string $content Nearly finished CSS content
  
  @return string
docstring_tokens: Move any import statements to the top .