<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[7948] sites/trunk/api.wordpress.org/public_html/core/credits/wp-50.php: Credits API: Improve code styling.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/7948">7948</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/7948","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>ocean90</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2018-12-06 18:13:57 +0000 (Thu, 06 Dec 2018)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Credits API: Improve code styling.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkapiwordpressorgpublic_htmlcorecreditswp50php">sites/trunk/api.wordpress.org/public_html/core/credits/wp-50.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkapiwordpressorgpublic_htmlcorecreditswp50php"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/api.wordpress.org/public_html/core/credits/wp-50.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/api.wordpress.org/public_html/core/credits/wp-50.php  2018-12-06 15:12:59 UTC (rev 7947)
+++ sites/trunk/api.wordpress.org/public_html/core/credits/wp-50.php    2018-12-06 18:13:57 UTC (rev 7948)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,68 +2,68 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> class WP_50_Credits extends WP_Credits {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function groups() {
-               $groups = array(
-                       'core-developers' => array(
-                               'name'    => 'Noteworthy Contributors',
-                               'type'    => 'titles',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function groups() {
+               $groups = [
+                       'core-developers'         => [
+                               'name'    => 'Noteworthy Contributors',
+                               'type'    => 'titles',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'shuffle' => false,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'data'    => array(
-                                       'matt'                     => array( 'Matt Mullenweg',                        'Release Lead' ),
-                                       'allancole'                => array( 'Allan Cole',                            'Release Lead' ),
-                                       'antpb'                    => array( 'Anthony Burchell',              'Release Lead' ),
-                                       'pento'                    => array( 'Gary Pendergast',                       'Release Lead' ),
-                                       'chanthaboune'     => array( 'Josepha Haden Chomphosy',  'Release Lead' ),
-                                       'laurelfulford'    => array( 'Laurel Fulford',                        'Release Lead' ),
-                                       'omarreiss'                => array( 'Omar Reiss',                            'Release Lead' ),
-                                       'danielbachhuber'  => array( 'Daniel Bachhuber',              'Release Lead' ),
-                                       'matveb'                   => array( 'Matías Ventura',                        'Release Lead' ),
-                                       'mcsf'                     => array( 'Miguel Fonseca',                        'Release Lead' ),
-                                       'karmatosed'       => array( 'Tammie Lister',                         'Release Lead' ),
-                                       'lonelyvegan'      => array( 'Matthew Riley MacPherson', 'Release Lead' ),
-                                       'adamsilverstein'  => array( 'Adam Silverstein',        'Core Developer' ),
-                                       'afercia'          => array( 'Andrea Fercia',          'Core Developer' ),
-                                       'aduth'                    => array( 'Andrew Duthie',                   'Core Developer' ),
-                                       'bpayton'                  => array( 'Brandon Payton',                  'Core Developer' ),
-                                       'gziolo'                   => array( 'Grzegorz Ziółkowski',          'Core Developer' ),
-                                       'iseulde'                  => array( 'Ella Iseulde Van Dorpe', 'Core Developer' ),
-                                       'Joen'                     => array( 'Joen Asmussen',                   'Core Developer' ),
-                                       'jorgefilipecosta' => array( 'Jorge Costa',                     'Core Developer' ),
-                                       'talldan'                  => array( 'Daniel Richards',                 'Core Developer' ),
-                                       'youknowriad'      => array( 'Riad Benguella',                  'Core Developer' ),
-                                       'noisysocks'       => array( 'Robert Anderson',        'Core Developer' ),
-                                       'netweb'                   => 'Stephen Edgar',
-                               ),
-                       ),
-                        'contributing-developers' => array(
-                               'name'    => false,
-                               'type'    => 'titles',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'data'    => [
+                                       'matt'             => [ 'Matt Mullenweg', 'Release Lead' ],
+                                       'allancole'        => [ 'Allan Cole', 'Release Lead' ],
+                                       'antpb'            => [ 'Anthony Burchell', 'Release Lead' ],
+                                       'pento'            => [ 'Gary Pendergast', 'Release Lead' ],
+                                       'chanthaboune'     => [ 'Josepha Haden Chomphosy', 'Release Lead' ],
+                                       'laurelfulford'    => [ 'Laurel Fulford', 'Release Lead' ],
+                                       'omarreiss'        => [ 'Omar Reiss', 'Release Lead' ],
+                                       'danielbachhuber'  => [ 'Daniel Bachhuber', 'Release Lead' ],
+                                       'matveb'           => [ 'Matías Ventura', 'Release Lead' ],
+                                       'mcsf'             => [ 'Miguel Fonseca', 'Release Lead' ],
+                                       'karmatosed'       => [ 'Tammie Lister', 'Release Lead' ],
+                                       'lonelyvegan'      => [ 'Matthew Riley MacPherson', 'Release Lead' ],
+                                       'adamsilverstein'  => [ 'Adam Silverstein', 'Core Developer' ],
+                                       'afercia'          => [ 'Andrea Fercia', 'Core Developer' ],
+                                       'aduth'            => [ 'Andrew Duthie', 'Core Developer' ],
+                                       'bpayton'          => [ 'Brandon Payton', 'Core Developer' ],
+                                       'gziolo'           => [ 'Grzegorz Ziółkowski', 'Core Developer' ],
+                                       'iseulde'          => [ 'Ella Iseulde Van Dorpe', 'Core Developer' ],
+                                       'Joen'             => [ 'Joen Asmussen', 'Core Developer' ],
+                                       'jorgefilipecosta' => [ 'Jorge Costa', 'Core Developer' ],
+                                       'talldan'          => [ 'Daniel Richards', 'Core Developer' ],
+                                       'youknowriad'      => [ 'Riad Benguella', 'Core Developer' ],
+                                       'noisysocks'       => [ 'Robert Anderson', 'Core Developer' ],
+                                       'netweb'           => 'Stephen Edgar',
+                               ],
+                       ],
+                       'contributing-developers' => [
+                               'name'    => false,
+                               'type'    => 'titles',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'shuffle' => true,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'data'    => array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'data'    => [
</ins><span class="cx" style="display: block; padding: 0 10px">                                         'davidakennedy' => 'David Kennedy',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        'atimmer'               => 'Anton Timmer',
-                                       'melchoyce'             => 'Mel Choyce',
-                                       'herregroen'    => 'Herre Groen',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 'atimmer'       => 'Anton Timmer',
+                                       'melchoyce'     => 'Mel Choyce',
+                                       'herregroen'    => 'Herre Groen',
</ins><span class="cx" style="display: block; padding: 0 10px">                                         'peterwilsoncc' => 'Peter Wilson',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        'jorbin'                => 'Aaron Jorbin',
-                                       'kadamwhite'    => 'K.Adam White',
-                                       'ocean90'               => 'Dominik Schilling',
-                                       'DrewAPicture'  => 'Drew Jaynes',
-                                       'flixos90'              => 'Felix Arntz',
-                                       'johnbillion'   => 'John Blackbourn',
-                                       'boonebgorges'  => 'Boone Gorges',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 'jorbin'        => 'Aaron Jorbin',
+                                       'kadamwhite'    => 'K.Adam White',
+                                       'ocean90'       => 'Dominik Schilling',
+                                       'DrewAPicture'  => 'Drew Jaynes',
+                                       'flixos90'      => 'Felix Arntz',
+                                       'johnbillion'   => 'John Blackbourn',
+                                       'boonebgorges'  => 'Boone Gorges',
</ins><span class="cx" style="display: block; padding: 0 10px">                                         'joemcgill'     => 'Joe McGill',
</span><span class="cx" style="display: block; padding: 0 10px">                                        'mikeschroder'  => 'Mike Schroder',
</span><span class="cx" style="display: block; padding: 0 10px">                                        'kjellr'        => 'Kjell Reigstad',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                ),
-                       ),
-               );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         ],
+                       ],
+               ];
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return $groups;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function props() {
-               return array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function props() {
+               return [
</ins><span class="cx" style="display: block; padding: 0 10px">                         '0mirka00',
</span><span class="cx" style="display: block; padding: 0 10px">                        'abdullahramzan',
</span><span class="cx" style="display: block; padding: 0 10px">                        'abdulwahab610',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -526,53 +526,53 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'zebulan',
</span><span class="cx" style="display: block; padding: 0 10px">                        'ziyaddin',
</span><span class="cx" style="display: block; padding: 0 10px">                        '_dorsvenabili',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         ];
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function external_libraries() {
-               return array(
-                       array( 'Babel Polyfill', 'https://babeljs.io/docs/en/babel-polyfill' ),
-                       array( 'Backbone.js', 'http://backbonejs.org/' ),
-                       array( 'Class POP3', 'https://squirrelmail.org/' ),
-                       array( 'Closest', 'https://github.com/jonathantneal/closest' ),
-                       array( 'CodeMirror', 'https://codemirror.net/' ),
-                       array( 'Color Animations', 'https://plugins.jquery.com/color/' ),
-                       array( 'getID3()', 'http://getid3.sourceforge.net/' ),
-                       array( 'FormData', 'https://github.com/jimmywarting/FormData' ),
-                       array( 'Horde Text Diff', 'https://pear.horde.org/' ),
-                       array( 'hoverIntent', 'http://cherne.net/brian/resources/jquery.hoverIntent.html' ),
-                       array( 'imgAreaSelect', 'http://odyniec.net/projects/imgareaselect/' ),
-                       array( 'Iris', 'https://github.com/Automattic/Iris' ),
-                       array( 'jQuery', 'https://jquery.com/' ),
-                       array( 'jQuery UI', 'https://jqueryui.com/' ),
-                       array( 'jQuery Hotkeys', 'https://github.com/tzuryby/jquery.hotkeys' ),
-                       array( 'jQuery serializeObject', 'http://benalman.com/projects/jquery-misc-plugins/' ),
-                       array( 'jQuery.query', 'https://plugins.jquery.com/query-object/' ),
-                       array( 'jQuery.suggest', 'https://github.com/pvulgaris/jquery.suggest' ),
-                       array( 'jQuery UI Touch Punch', 'http://touchpunch.furf.com/' ),
-                       array( 'json2', 'https://github.com/douglascrockford/JSON-js' ),
-                       array( 'Lodash', 'https://lodash.com/' ),
-                       array( 'Masonry', 'http://masonry.desandro.com/' ),
-                       array( 'MediaElement.js', 'http://mediaelementjs.com/' ),
-                       array( 'Moment', 'http://momentjs.com/' ),
-                       array( 'PclZip', 'http://www.phpconcept.net/pclzip/' ),
-                       array( 'PemFTP', 'https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html' ),
-                       array( 'phpass', 'http://www.openwall.com/phpass/' ),
-                       array( 'PHPMailer', 'https://github.com/PHPMailer/PHPMailer' ),
-                       array( 'Plupload', 'http://www.plupload.com/' ),
-                       array( 'random_compat', 'https://github.com/paragonie/random_compat' ),
-                       array( 'React', 'https://reactjs.org/' ),
-                       array( 'Redux', 'https://redux.js.org/' ),
-                       array( 'Requests', 'http://requests.ryanmccue.info/' ),
-                       array( 'SimplePie', 'http://simplepie.org/' ),
-                       array( 'The Incutio XML-RPC Library', 'http://scripts.incutio.com/xmlrpc/' ),
-                       array( 'Thickbox', 'http://codylindley.com/thickbox/' ),
-                       array( 'TinyMCE', 'https://www.tinymce.com/' ),
-                       array( 'Twemoji', 'https://github.com/twitter/twemoji' ),
-                       array( 'Underscore.js', 'http://underscorejs.org/' ),
-                       array( 'whatwg-fetch', 'https://github.com/github/fetch' ),
-                       array( 'zxcvbn', 'https://github.com/dropbox/zxcvbn' ),
-               );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function external_libraries() {
+               return [
+                       [ 'Babel Polyfill', 'https://babeljs.io/docs/en/babel-polyfill' ],
+                       [ 'Backbone.js', 'http://backbonejs.org/' ],
+                       [ 'Class POP3', 'https://squirrelmail.org/' ],
+                       [ 'Closest', 'https://github.com/jonathantneal/closest' ],
+                       [ 'CodeMirror', 'https://codemirror.net/' ],
+                       [ 'Color Animations', 'https://plugins.jquery.com/color/' ],
+                       [ 'getID3()', 'http://getid3.sourceforge.net/' ],
+                       [ 'FormData', 'https://github.com/jimmywarting/FormData' ],
+                       [ 'Horde Text Diff', 'https://pear.horde.org/' ],
+                       [ 'hoverIntent', 'http://cherne.net/brian/resources/jquery.hoverIntent.html' ],
+                       [ 'imgAreaSelect', 'http://odyniec.net/projects/imgareaselect/' ],
+                       [ 'Iris', 'https://github.com/Automattic/Iris' ],
+                       [ 'jQuery', 'https://jquery.com/' ],
+                       [ 'jQuery UI', 'https://jqueryui.com/' ],
+                       [ 'jQuery Hotkeys', 'https://github.com/tzuryby/jquery.hotkeys' ],
+                       [ 'jQuery serializeObject', 'http://benalman.com/projects/jquery-misc-plugins/' ],
+                       [ 'jQuery.query', 'https://plugins.jquery.com/query-object/' ],
+                       [ 'jQuery.suggest', 'https://github.com/pvulgaris/jquery.suggest' ],
+                       [ 'jQuery UI Touch Punch', 'http://touchpunch.furf.com/' ],
+                       [ 'json2', 'https://github.com/douglascrockford/JSON-js' ],
+                       [ 'Lodash', 'https://lodash.com/' ],
+                       [ 'Masonry', 'http://masonry.desandro.com/' ],
+                       [ 'MediaElement.js', 'http://mediaelementjs.com/' ],
+                       [ 'Moment', 'http://momentjs.com/' ],
+                       [ 'PclZip', 'http://www.phpconcept.net/pclzip/' ],
+                       [ 'PemFTP', 'https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html' ],
+                       [ 'phpass', 'http://www.openwall.com/phpass/' ],
+                       [ 'PHPMailer', 'https://github.com/PHPMailer/PHPMailer' ],
+                       [ 'Plupload', 'http://www.plupload.com/' ],
+                       [ 'random_compat', 'https://github.com/paragonie/random_compat' ],
+                       [ 'React', 'https://reactjs.org/' ],
+                       [ 'Redux', 'https://redux.js.org/' ],
+                       [ 'Requests', 'http://requests.ryanmccue.info/' ],
+                       [ 'SimplePie', 'http://simplepie.org/' ],
+                       [ 'The Incutio XML-RPC Library', 'http://scripts.incutio.com/xmlrpc/' ],
+                       [ 'Thickbox', 'http://codylindley.com/thickbox/' ],
+                       [ 'TinyMCE', 'https://www.tinymce.com/' ],
+                       [ 'Twemoji', 'https://github.com/twitter/twemoji' ],
+                       [ 'Underscore.js', 'http://underscorejs.org/' ],
+                       [ 'whatwg-fetch', 'https://github.com/github/fetch' ],
+                       [ 'zxcvbn', 'https://github.com/dropbox/zxcvbn' ],
+               ];
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre>
</div>
</div>

</body>
</html>