Requested fixes

Authored by Sophivorus on Jan 25 2017, 12:46 PM.


Requested fixes

  • Break code into smaller methods
  • Add error handling
  • Build <span> with Html::rawElement
  • Short array syntax
  • Add Parser typehint
  • Remove extract()
  • API requests to formatversion=2
  • Add user agent to API requests
  • Validate language codes
  • Remove <WikipediaExtract> tag and duplicate code
  • Declare public and private variables and methods
  • Add wgWikipediaExtractsAddCredits config variable
  • Add \n to EOF

Bug: T149766
Change-Id: I33d016e0ca0c2b7a68d8760c6835efb19ea713f2