Skip to content

Commit 4476646

Browse files
committed
Fix code example to be more readable
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets |
1 parent cd1dfa4 commit 4476646

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

components/http_foundation/sessions.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,12 @@ data is an array, for example a set of tokens. In this case, managing the array
190190
becomes a burden because you have to retrieve the array then process it and
191191
store it again::
192192

193-
$tokens = array('tokens' => array('a' => 'a6c1e0b6',
194-
'b' => 'f4a7b1f3'));
193+
$tokens = array(
194+
'tokens' => array(
195+
'a' => 'a6c1e0b6',
196+
'b' => 'f4a7b1f3',
197+
)
198+
);
195199

196200
So any processing of this might quickly get ugly, even simply adding a token to
197201
the array::
@@ -201,7 +205,7 @@ the array::
201205
$session->set('tokens', $tokens);
202206

203207
With structured namespacing, the key can be translated to the array
204-
structure like this using a namespace character (defaults to `/`)::
208+
structure like this using a namespace character (defaults to ``/``)::
205209

206210
$session->set('tokens/c', $value);
207211

0 commit comments

Comments
 (0)