From b63b95f5afea1edbc0172ef715b4cd964597d0d1 Mon Sep 17 00:00:00 2001 From: Wouter de Jong Date: Sat, 8 Apr 2023 15:05:25 +0200 Subject: [PATCH] Fix minor syntax errors --- components/filesystem.rst | 12 ++++++------ components/runtime.rst | 2 +- components/workflow.rst | 2 +- mercure.rst | 2 +- setup.rst | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/filesystem.rst b/components/filesystem.rst index 02be4175446..70fdf10d63e 100644 --- a/components/filesystem.rst +++ b/components/filesystem.rst @@ -478,12 +478,12 @@ Finding Directories/Root Directories PHP offers the function :phpfunction:`dirname` to obtain the directory path of a file path. This method has a few quirks:: -- `dirname()` does not accept backslashes on UNIX -- `dirname("C:/Programs")` returns "C:", not "C:/" -- `dirname("C:/")` returns ".", not "C:/" -- `dirname("C:")` returns ".", not "C:/" -- `dirname("Programs")` returns ".", not "" -- `dirname()` does not canonicalize the result +- ``dirname()`` does not accept backslashes on UNIX +- ``dirname("C:/Programs")`` returns "C:", not "C:/" +- ``dirname("C:/")`` returns ".", not "C:/" +- ``dirname("C:")`` returns ".", not "C:/" +- ``dirname("Programs")`` returns ".", not "" +- ``dirname()`` does not canonicalize the result :method:`Symfony\\Component\\Filesystem\\Path::getDirectory` fixes these shortcomings:: diff --git a/components/runtime.rst b/components/runtime.rst index f335cefa0b1..c1588bac187 100644 --- a/components/runtime.rst +++ b/components/runtime.rst @@ -384,7 +384,7 @@ application outside of the global state in 6 steps: returns a :class:`Symfony\\Component\\Runtime\\RunnerInterface`: an instance that knows how to "run" the application object. #. The ``RunnerInterface::run(object $application)`` is called and it returns the - exit status code as `int`. + exit status code as ``int``. #. The PHP engine is terminated with this status code. When creating a new runtime, there are two things to consider: First, what arguments diff --git a/components/workflow.rst b/components/workflow.rst index 5161db5f888..77a648a2e0f 100644 --- a/components/workflow.rst +++ b/components/workflow.rst @@ -28,7 +28,7 @@ a ``Definition`` and a way to write the states to the objects (i.e. an instance of a :class:`Symfony\\Component\\Workflow\\MarkingStore\\MarkingStoreInterface`). Consider the following example for a blog post. A post can have one of a number -of predefined statuses (`draft`, `reviewed`, `rejected`, `published`). In a workflow, +of predefined statuses (``draft``, ``reviewed``, ``rejected``, ``published``). In a workflow, these statuses are called **places**. You can define the workflow like this:: use Symfony\Component\Workflow\DefinitionBuilder; diff --git a/mercure.rst b/mercure.rst index 6ad0c05c3df..a627cdee92d 100644 --- a/mercure.rst +++ b/mercure.rst @@ -615,7 +615,7 @@ Testing During unit testing it's usually not needed to send updates to Mercure. -You can instead make use of the `MockHub` class:: +You can instead make use of the ``MockHub`` class:: // tests/FunctionalTest.php namespace App\Tests\Unit\Controller; diff --git a/setup.rst b/setup.rst index ec92fcb3d3a..ca52f8bfc69 100644 --- a/setup.rst +++ b/setup.rst @@ -145,7 +145,7 @@ the server by pressing ``Ctrl+C`` from your terminal. Symfony Docker Integration ~~~~~~~~~~~~~~~~~~~~~~~~~~ -If you'd like to use Docker with Symfony, see :doc:`setup/docker` +If you'd like to use Docker with Symfony, see :doc:`/setup/docker`. .. _symfony-flex: