* @since 1.21
*/
abstract class ExternalStoreMedium {
- /** @var Array */
- protected $params = array();
+ /** @var array */
+ protected $params = [];
/**
* @param array $params Options
*/
- public function __construct( array $params = array() ) {
+ public function __construct( array $params = [] ) {
$this->params = $params;
}
* @return array Map from the url to the text stored. Unfound data is not represented
*/
public function batchFetchFromURLs( array $urls ) {
- $retval = array();
+ $retval = [];
foreach ( $urls as $url ) {
$data = $this->fetchFromURL( $url );
// Dont return when false to allow for simpler implementations.
/**
* Insert a data item into a given location
*
- * @param string $location the location name
- * @param string $data the data item
+ * @param string $location The location name
+ * @param string $data The data item
* @return string|bool The URL of the stored data item, or false on error
* @throws MWException
*/