original_string: protected function getRecursiveDirectoryIterator($dir)
      {
          return new \RecursiveIteratorIterator(
                  new \RecursiveDirectoryIterator($dir, \FilesystemIterator::CURRENT_AS_FILEINFO),
                  \RecursiveIteratorIterator::SELF_FIRST,
                  \RecursiveIteratorIterator::CATCH_GET_CHILD
                  );
      }
code: protected function getRecursiveDirectoryIterator($dir)
      {
          return new \RecursiveIteratorIterator(
                  new \RecursiveDirectoryIterator($dir, \FilesystemIterator::CURRENT_AS_FILEINFO),
                  \RecursiveIteratorIterator::SELF_FIRST,
                  \RecursiveIteratorIterator::CATCH_GET_CHILD
                  );
      }
code_tokens: protected function getRecursiveDirectoryIterator ( $ dir ) { return new \ RecursiveIteratorIterator ( new \ RecursiveDirectoryIterator ( $ dir , \ FilesystemIterator :: CURRENT_AS_FILEINFO ) , \ RecursiveIteratorIterator :: SELF_FIRST , \ RecursiveIteratorIterator :: CATCH_GET_CHILD ) ; }
docstring: Iterator for looping thorugh all files in a directory and i's sub directories
  
  @param string $dir
  @return \RecursiveIteratorIterator
docstring_tokens: Iterator for looping thorugh all files in a directory and i s sub directories