Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ee48c4

Browse files
committed
minor #40180 Fix: Article (localheinz)
This PR was merged into the 4.4 branch. Discussion ---------- Fix: Article | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | n/a | License | MIT | Doc PR | n/a This pull request * [x] fixes usages of the indefinite article `a` where `an` should be used instead Commits ------- 34b320b Fix: Article
2 parents e62ef2a + 34b320b commit 4ee48c4

File tree

25 files changed

+30
-30
lines changed

25 files changed

+30
-30
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ private function addHttpClientSection(ArrayNodeDefinition $rootNode)
14311431
->info('A network interface name, IP address, a host name or a UNIX socket to bind to.')
14321432
->end()
14331433
->booleanNode('verify_peer')
1434-
->info('Indicates if the peer should be verified in a SSL/TLS context.')
1434+
->info('Indicates if the peer should be verified in an SSL/TLS context.')
14351435
->end()
14361436
->booleanNode('verify_host')
14371437
->info('Indicates if the host should exist as a certificate common name.')
@@ -1570,7 +1570,7 @@ private function addHttpClientSection(ArrayNodeDefinition $rootNode)
15701570
->info('A network interface name, IP address, a host name or a UNIX socket to bind to.')
15711571
->end()
15721572
->booleanNode('verify_peer')
1573-
->info('Indicates if the peer should be verified in a SSL/TLS context.')
1573+
->info('Indicates if the peer should be verified in an SSL/TLS context.')
15741574
->end()
15751575
->booleanNode('verify_host')
15761576
->info('Indicates if the host should exist as a certificate common name.')

src/Symfony/Component/BrowserKit/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function submit(Form $form, array $values = []/*, array $serverParameters
331331
* @param string $button The text content, id, value or name of the form <button> or <input type="submit">
332332
* @param array $fieldValues Use this syntax: ['my_form[name]' => '...', 'my_form[email]' => '...']
333333
* @param string $method The HTTP method used to submit the form
334-
* @param array $serverParameters These values override the ones stored in $_SERVER (HTTP headers must include a HTTP_ prefix as PHP does)
334+
* @param array $serverParameters These values override the ones stored in $_SERVER (HTTP headers must include an HTTP_ prefix as PHP does)
335335
*/
336336
public function submitForm(string $button, array $fieldValues = [], string $method = 'POST', array $serverParameters = []): Crawler
337337
{
@@ -352,7 +352,7 @@ public function submitForm(string $button, array $fieldValues = [], string $meth
352352
* @param string $uri The URI to fetch
353353
* @param array $parameters The Request parameters
354354
* @param array $files The files
355-
* @param array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
355+
* @param array $server The server parameters (HTTP headers are referenced with an HTTP_ prefix as PHP does)
356356
* @param string $content The raw body data
357357
* @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
358358
*

src/Symfony/Component/Config/Definition/Dumper/XmlReferenceDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symfony\Component\Config\Definition\PrototypedArrayNode;
1919

2020
/**
21-
* Dumps a XML reference configuration for the given configuration/node instance.
21+
* Dumps an XML reference configuration for the given configuration/node instance.
2222
*
2323
* @author Wouter J <[email protected]>
2424
*/

src/Symfony/Component/DependencyInjection/Compiler/ResolveClassPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function process(ContainerBuilder $container)
3131
}
3232
if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)++$/', $id)) {
3333
if ($definition instanceof ChildDefinition && !class_exists($id)) {
34-
throw new InvalidArgumentException(sprintf('Service definition "%s" has a parent but no class, and its name looks like a FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.', $id));
34+
throw new InvalidArgumentException(sprintf('Service definition "%s" has a parent but no class, and its name looks like an FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.', $id));
3535
}
3636
$definition->setClass($id);
3737
}

src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/BindTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trait BindTrait
2626
* injected in the matching parameters (of the constructor, of methods
2727
* called and of controller actions).
2828
*
29-
* @param string $nameOrFqcn A parameter name with its "$" prefix, or a FQCN
29+
* @param string $nameOrFqcn A parameter name with its "$" prefix, or an FQCN
3030
* @param mixed $valueOrRef The value or reference to bind
3131
*
3232
* @return $this

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ private function parseDefinition(\DOMElement $service, string $file, array $defa
386386
}
387387

388388
/**
389-
* Parses a XML file to a \DOMDocument.
389+
* Parses an XML file to a \DOMDocument.
390390
*
391391
* @throws InvalidArgumentException When loading of XML file returns error
392392
*/

src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveClassPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testClassFoundChildDefinition()
8686
public function testAmbiguousChildDefinition()
8787
{
8888
$this->expectException(InvalidArgumentException::class);
89-
$this->expectExceptionMessage('Service definition "App\Foo\Child" has a parent but no class, and its name looks like a FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.');
89+
$this->expectExceptionMessage('Service definition "App\Foo\Child" has a parent but no class, and its name looks like an FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.');
9090
$container = new ContainerBuilder();
9191
$container->register('App\Foo', null);
9292
$container->setDefinition('App\Foo\Child', new ChildDefinition('App\Foo'));

src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* ChoiceFormField represents a choice form field.
1616
*
17-
* It is constructed from a HTML select tag, or a HTML checkbox, or radio inputs.
17+
* It is constructed from an HTML select tag, or an HTML checkbox, or radio inputs.
1818
*
1919
* @author Fabien Potencier <[email protected]>
2020
*/

src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToHtml5LocalDateTimeTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DateTimeToHtml5LocalDateTimeTransformer extends BaseDateTimeTransformer
2626
* Transforms a \DateTime into a local date and time string.
2727
*
2828
* According to the HTML standard, the input string of a datetime-local
29-
* input is a RFC3339 date followed by 'T', followed by a RFC3339 time.
29+
* input is an RFC3339 date followed by 'T', followed by an RFC3339 time.
3030
* https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-local-date-and-time-string
3131
*
3232
* @param \DateTime|\DateTimeInterface $dateTime A DateTime object

src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
213213
{
214214
$view->vars['widget'] = $options['widget'];
215215

216-
// Change the input to a HTML5 datetime input if
216+
// Change the input to an HTML5 datetime input if
217217
// * the widget is set to "single_text"
218218
// * the format matches the one expected by HTML5
219219
// * the html5 is set to true

src/Symfony/Component/Form/Extension/Core/Type/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function finishView(FormView $view, FormInterface $form, array $options)
189189
{
190190
$view->vars['widget'] = $options['widget'];
191191

192-
// Change the input to a HTML5 date input if
192+
// Change the input to an HTML5 date input if
193193
// * the widget is set to "single_text"
194194
// * the format matches the one expected by HTML5
195195
// * the html5 is set to true

src/Symfony/Component/Form/Extension/Core/Type/TimeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
220220
'with_seconds' => $options['with_seconds'],
221221
]);
222222

223-
// Change the input to a HTML5 time input if
223+
// Change the input to an HTML5 time input if
224224
// * the widget is set to "single_text"
225225
// * the html5 is set to true
226226
if ($options['html5'] && 'single_text' === $options['widget']) {

src/Symfony/Component/HttpFoundation/HeaderUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static function unquote(string $s): string
146146
}
147147

148148
/**
149-
* Generates a HTTP Content-Disposition field-value.
149+
* Generates an HTTP Content-Disposition field-value.
150150
*
151151
* @param string $disposition One of "inline" or "attachment"
152152
* @param string $filename A unicode string

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ public function getAcceptableContentTypes()
17161716
}
17171717

17181718
/**
1719-
* Returns true if the request is a XMLHttpRequest.
1719+
* Returns true if the request is an XMLHttpRequest.
17201720
*
17211721
* It works if your JavaScript library sets an X-Requested-With HTTP header.
17221722
* It is known to work with common JavaScript frameworks:

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ public function getQueryStringNormalizationData()
806806
['bar=&foo=bar', 'bar=&foo=bar', '->works with empty parameters'],
807807
['foo=bar&bar=', 'bar=&foo=bar', 'sorts keys alphabetically'],
808808

809-
// GET parameters, that are submitted from a HTML form, encode spaces as "+" by default (as defined in enctype application/x-www-form-urlencoded).
809+
// GET parameters, that are submitted from an HTML form, encode spaces as "+" by default (as defined in enctype application/x-www-form-urlencoded).
810810
// PHP also converts "+" to spaces when filling the global _GET or when using the function parse_str.
811811
['baz=Foo%20Baz&bar=Foo+Bar', 'bar=Foo%20Bar&baz=Foo%20Baz', 'normalizes spaces in both encodings "%20" and "+"'],
812812

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQ
205205
}
206206

207207
/**
208-
* Gets a HTTP kernel from the container.
208+
* Gets an HTTP kernel from the container.
209209
*
210210
* @return HttpKernelInterface
211211
*/

src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function execute()
150150
}
151151

152152
/**
153-
* Returns a LDAP search resource. If this query resulted in multiple searches, only the first
153+
* Returns an LDAP search resource. If this query resulted in multiple searches, only the first
154154
* page will be returned.
155155
*
156156
* @return resource

src/Symfony/Component/Lock/Store/PdoStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ private function getDriver(): string
366366
}
367367

368368
/**
369-
* Provides a SQL function to get the current timestamp regarding the current connection's driver.
369+
* Provides an SQL function to get the current timestamp regarding the current connection's driver.
370370
*/
371371
private function getCurrentTimestampStatement(): string
372372
{

src/Symfony/Component/Mime/Header/ParameterizedHeader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected function toTokens(string $string = null): array
102102
}
103103

104104
/**
105-
* Render a RFC 2047 compliant header parameter from the $name and $value.
105+
* Render an RFC 2047 compliant header parameter from the $name and $value.
106106
*/
107107
private function createParameter(string $name, string $value): string
108108
{

src/Symfony/Component/Security/Http/RememberMe/RememberMeServicesInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function loginFail(Request $request, \Exception $exception = null);
6666
* although this is not recommended.
6767
*
6868
* Instead, implementations should typically look for a request parameter
69-
* (such as a HTTP POST parameter) that indicates the browser has explicitly
69+
* (such as an HTTP POST parameter) that indicates the browser has explicitly
7070
* requested for the authentication to be remembered.
7171
*/
7272
public function loginSuccess(Request $request, Response $response, TokenInterface $token);

src/Symfony/Component/Security/Http/SecurityEvents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class SecurityEvents
1818
* into your website. It is important to distinguish this action from
1919
* non-interactive authentication methods, such as:
2020
* - authentication based on your session.
21-
* - authentication using a HTTP basic or HTTP digest header.
21+
* - authentication using an HTTP basic or HTTP digest header.
2222
*
2323
* @Event("Symfony\Component\Security\Http\Event\InteractiveLoginEvent")
2424
*/

src/Symfony/Component/Serializer/Mapping/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function getMappedClasses()
106106
}
107107

108108
/**
109-
* Parses a XML File.
109+
* Parses an XML File.
110110
*
111111
* @throws MappingException
112112
*/

src/Symfony/Component/Translation/Command/XliffLintCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public function __construct(string $name = null, callable $directoryIteratorProv
5353
protected function configure()
5454
{
5555
$this
56-
->setDescription('Lints a XLIFF file and outputs encountered errors')
56+
->setDescription('Lints an XLIFF file and outputs encountered errors')
5757
->addArgument('filename', InputArgument::IS_ARRAY, 'A file, a directory or "-" for reading from STDIN')
5858
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt')
5959
->setHelp(<<<EOF
60-
The <info>%command.name%</info> command lints a XLIFF file and outputs to STDOUT
60+
The <info>%command.name%</info> command lints an XLIFF file and outputs to STDOUT
6161
the first encountered syntax error.
6262
6363
You can validates XLIFF contents passed from STDIN:

src/Symfony/Component/Translation/Loader/MoFileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
class MoFileLoader extends FileLoader
2020
{
2121
/**
22-
* Magic used for validating the format of a MO file as well as
22+
* Magic used for validating the format of an MO file as well as
2323
* detecting if the machine used to create that file was little endian.
2424
*/
2525
public const MO_LITTLE_ENDIAN_MAGIC = 0x950412de;
2626

2727
/**
28-
* Magic used for validating the format of a MO file as well as
28+
* Magic used for validating the format of an MO file as well as
2929
* detecting if the machine used to create that file was big endian.
3030
*/
3131
public const MO_BIG_ENDIAN_MAGIC = 0xde120495;
3232

3333
/**
34-
* The size of the header of a MO file in bytes.
34+
* The size of the header of an MO file in bytes.
3535
*/
3636
public const MO_HEADER_SIZE = 28;
3737

src/Symfony/Component/WebLink/HttpHeaderSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Psr\Link\LinkInterface;
1515

1616
/**
17-
* Serializes a list of Link instances to a HTTP Link header.
17+
* Serializes a list of Link instances to an HTTP Link header.
1818
*
1919
* @see https://tools.ietf.org/html/rfc5988
2020
*

0 commit comments

Comments
 (0)