From a0ea52c4fa1cdc9e66588e3e70dcac10add2522b Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Wed, 5 Nov 2014 11:55:06 -0500 Subject: [PATCH] [#4243] Tweaks to the new var-dumper component --- components/var_dumper/advanced.rst | 4 ++-- components/var_dumper/introduction.rst | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/var_dumper/advanced.rst b/components/var_dumper/advanced.rst index fb261dfc157..bc78998ef25 100644 --- a/components/var_dumper/advanced.rst +++ b/components/var_dumper/advanced.rst @@ -12,7 +12,7 @@ You can change the behavior of this function by calling Calls to ``dump()`` will then be forwarded to ``$callable``. By adding a handler, you can customize the `Cloners`_, `Dumpers`_ and `Casters`_ -as explained below. A simple implementation of a handler function might look +explained below. A simple implementation of a handler function might look like this:: use Symfony\Component\VarDumper\VarDumper; @@ -41,7 +41,7 @@ object this way:: $cloner = new VarCloner(); $data = $cloner->cloneVar($myVar); - // this is commonly then passed to the dumper + // this is commonly then passed to the dumpe // see the example at the top of this page // $dumper->dump($data); diff --git a/components/var_dumper/introduction.rst b/components/var_dumper/introduction.rst index 869c73fc6fe..960651e82ef 100644 --- a/components/var_dumper/introduction.rst +++ b/components/var_dumper/introduction.rst @@ -193,9 +193,9 @@ then its dump representation:: .. code-block:: php $var = new \ErrorException( - "For some objects, properties have special values\n" - ."that are best represented as constants, like\n" - ."`severity` below. Hovering displays the value (`2`).\n", + "For some objects, properties have special values + that are best represented as constants, like + `severity` below. Hovering displays the value (`2`).", 0, E_WARNING ); @@ -229,11 +229,11 @@ then its dump representation:: .. code-block:: php $var = new AcmeController( - "When a dump goes over its maximum items limit,\n" - ."or when some special objects are encountered,\n" - ."children can be replaced by an ellipsis and\n" - ."optionally followed by a number that says how\n" - ."many have been removed; `9` in this case.\n" + "When a dump goes over its maximum items limit, + or when some special objects are encountered, + children can be replaced by an ellipsis and + optionnally followed by a number that says how + many have been removed; `9` in this case." ); dump($var);