X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreMedium.php;h=260ee172b38cf460ce0220410add19d3a2f9aeca;hb=7a0574a6a33ca7863dd4fcabe1fd17dfa7c8cb6e;hp=a526df609c95764c00edbae928eb25ab5f65d70c;hpb=f90977bcc58fd88a806a50ca2d3faad0ee2dab2e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/externalstore/ExternalStoreMedium.php b/includes/externalstore/ExternalStoreMedium.php index a526df609c..260ee172b3 100644 --- a/includes/externalstore/ExternalStoreMedium.php +++ b/includes/externalstore/ExternalStoreMedium.php @@ -29,13 +29,13 @@ * @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; } @@ -55,7 +55,7 @@ abstract class ExternalStoreMedium { * @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. @@ -71,8 +71,8 @@ abstract class ExternalStoreMedium { /** * 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 */