Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / externalstore / ExternalStoreMedium.php
index a526df6..260ee17 100644 (file)
  * @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
         */