DeferredStringifier: Clean up comments and indentation in tests
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 29 Jan 2015 20:10:08 +0000 (12:10 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 29 Jan 2015 20:10:08 +0000 (12:10 -0800)
Change-Id: Ifdf2fe711a0be495465255c6fabb55fe34b79b27

includes/libs/DeferredStringifier.php
tests/phpunit/includes/libs/DeferredStringifierTest.php

index bd32949..a6fd11a 100644 (file)
 class DeferredStringifier {
        /** @var callable Callback used for result string generation */
        private $callback;
+
        /** @var array */
        private $params;
+
        /** @var string */
        private $result;
 
@@ -42,7 +44,7 @@ class DeferredStringifier {
        }
 
        /**
-        * Returns a string generated by callback
+        * Get the string generated from the callback
         *
         * @return string
         */
index 9aaf113..8b7610a 100644 (file)
@@ -15,13 +15,24 @@ class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
        public static function provideToString() {
                return array(
                        // No args
-                       array( array( function() {
-                               return 'foo';
-                       } ), 'foo' ),
+                       array(
+                               array(
+                                       function() {
+                                               return 'foo';
+                                       }
+                               ),
+                               'foo'
+                       ),
                        // Has args
-                       array( array( function( $i ) {
-                               return $i;
-                       }, 'bar' ), 'bar' ),
+                       array(
+                               array(
+                                       function( $i ) {
+                                               return $i;
+                                       },
+                                       'bar'
+                               ),
+                               'bar'
+                       ),
                );
        }