Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/88133


Change subject: Cleanup and remove unused use in EntitySerializer
......................................................................

Cleanup and remove unused use in EntitySerializer

Change-Id: I670a5b3ecb2791867647749db4726a9bc7374944
---
M lib/includes/serializers/EntitySerializer.php
1 file changed, 1 insertion(+), 20 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/33/88133/1

diff --git a/lib/includes/serializers/EntitySerializer.php 
b/lib/includes/serializers/EntitySerializer.php
index 82c69e8..e2c4f9e 100644
--- a/lib/includes/serializers/EntitySerializer.php
+++ b/lib/includes/serializers/EntitySerializer.php
@@ -5,30 +5,11 @@
 use ApiResult;
 use MWException;
 use Wikibase\Entity;
-use Wikibase\Repo\WikibaseRepo;
 
 /**
  * Serializer for entities.
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
  * @since 0.2
- *
- * @file
- * @ingroup WikibaseLib
  *
  * @licence GNU GPL v2+
  * @author Jeroen De Dauw < [email protected] >
@@ -67,7 +48,7 @@
         * @return array
         * @throws MWException
         */
-       public final function getSerialized( $entity ) {
+       final public function getSerialized( $entity ) {
                if ( !( $entity instanceof Entity ) ) {
                        throw new MWException( 'EntitySerializer can only 
serialize Entity objects' );
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/88133
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I670a5b3ecb2791867647749db4726a9bc7374944
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to