Skip to content

Commit

Permalink
Using pre in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed Mar 13, 2024
1 parent 19b8ea4 commit cc6a826
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Views/ArrayIndexListView.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
*
* Each element in the view is based on the specified indexes.
*
* <code>
* <pre>
*
* $source = [1, 2, 3, 4, 5];
* $view = ArrayView::toView($source)->subview(new IndexListSelector([0, 2, 4]));
* $view->toArray(); // [1, 3, 5]
*
* </code>
* </pre>
*
* @template T Type of array source elements.
*
Expand Down
6 changes: 2 additions & 4 deletions src/Views/ArrayMaskView.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
*
* Each element in the view is included or excluded based on the specified boolean mask.
*
* <code>
* <pre>
*
* $source = [1, 2, 3, 4, 5];
*
* $view = ArrayView::toView($source)->subview(new MaskSelector([true, false, true, false, true]));
*
* $view->toArray(); // [1, 3, 5]
*
* </code>
* </pre>
*
* @template T
*
Expand Down
6 changes: 2 additions & 4 deletions src/Views/ArraySliceView.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
* Class representing a slice-based view of an array or another ArrayView
* for accessing elements within a specified slice range.
*
* <code>
* <pre>
*
* $source = [1, 2, 3, 4, 5];
*
* $view = ArrayView::toView($source)->subview(new SliceSelector('::2'));
*
* $view->toArray(); // [1, 3, 5]
*
* </code>
* </pre>
*
* @template T
*
Expand Down

0 comments on commit cc6a826

Please sign in to comment.