Skip to content

Commit d6826a7

Browse files
committed
Reviewing more syntax errors
1 parent b100079 commit d6826a7

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

http_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ To abort a request (e.g. because it didn't complete in due time, or you want to
885885
fetch only the first bytes of the response, etc.), you can either use the
886886
``cancel()`` method of ``ResponseInterface``::
887887

888-
$response->cancel()
888+
$response->cancel();
889889

890890
Or throw an exception from a progress callback::
891891

introduction/from_flat_php_to_symfony.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ and uses Twig:
580580

581581
.. code-block:: html+twig
582582

583-
<!-- templates/blog/list.html.twig -->
583+
{# templates/blog/list.html.twig #}
584584
{% extends 'base.html.twig' %}
585585

586586
{% block title %}List of Posts{% endblock %}

service_container.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,15 +344,18 @@ you can type-hint the new ``SiteUpdateManager`` class and use it::
344344
// ...
345345
use App\Service\SiteUpdateManager;
346346

347-
public function new(SiteUpdateManager $siteUpdateManager)
347+
class SiteController extends AbstractController
348348
{
349-
// ...
349+
public function new(SiteUpdateManager $siteUpdateManager)
350+
{
351+
// ...
350352

351-
if ($siteUpdateManager->notifyOfSiteUpdate()) {
352-
$this->addFlash('success', 'Notification mail was sent successfully.');
353-
}
353+
if ($siteUpdateManager->notifyOfSiteUpdate()) {
354+
$this->addFlash('success', 'Notification mail was sent successfully.');
355+
}
354356

355-
// ...
357+
// ...
358+
}
356359
}
357360

358361
Thanks to autowiring and your type-hints in ``__construct()``, the container creates

testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ configuration adds tests from a custom ``lib/tests`` directory:
10691069
<!-- ... -->
10701070
<testsuites>
10711071
<testsuite name="Project Test Suite">
1072-
<!-- ... --->
1072+
<!-- ... -->
10731073
<directory>lib/tests</directory>
10741074
</testsuite>
10751075
</testsuites>

0 commit comments

Comments
 (0)