10BC0 cs · symfony/symfony@07d6d40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07d6d40

Browse files
committed
cs
1 parent 9d40c78 commit 07d6d40

File tree

15 files changed

+97
-9
lines changed

15 files changed

+97
-9
lines changed

src/Symfony/Component/Dsn/Configuration/Dsn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function getParameters(): array
4949

5050
public function getParameter(string $key, $default = null)
5151
{
52-
return array_key_exists($key, $this->parameters) ? $this->parameters[$key] : $default;
52+
return \array_key_exists($key, $this->parameters) ? $this->parameters[$key] : $default;
5353
}
5454

5555
public function getHost(): ?string

src/Symfony/Component/Dsn/Configuration/DsnFunction.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Symfony\Component\Dsn\Configuration;
@@ -56,7 +65,7 @@ public function getParameters(): array
5665

5766
public function getParameter(string $key, $default = null)
5867
{
59-
return array_key_exists($key, $this->parameters) ? $this->parameters[$key] : $default;
68+
return \array_key_exists($key, $this->parameters) ? $this->parameters[$key] : $default;
6069
}
6170

6271
/**

src/Symfony/Component/Dsn/Configuration/Path.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Symfony\Component\Dsn\Configuration;

src/Symfony/Component/Dsn/Configuration/Url.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Symfony\Component\Dsn\Configuration;

src/Symfony/Component/Dsn/Configuration/UserPasswordTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Symfony\Component\Dsn\Configuration;

src/Symfony/Component/Dsn/DsnParser.php

Lines changed: 10 additions & 1 deletion
1C91
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Symfony\Component\Dsn;
@@ -40,7 +49,7 @@ public static function parse(string $dsn): DsnFunction
4049
}
4150

4251
if (empty($arguments)) {
43-
throw new SyntaxException($dsn, $functionName === 'dsn' ? 'The DSN is empty' : 'A function must have arguments, an empty string was provided.');
52+
throw new SyntaxException($dsn, 'dsn' === $functionName ? 'The DSN is empty' : 'A function must have arguments, an empty string was provided.');
4453
}
4554

4655
// explode arguments and respect function parentheses

src/Symfony/Component/Dsn/Exception/DsnTypeNotSupported.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
<?php
22

3-
declare(strict_types=1);
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
411

12+
declare(strict_types=1);
513

614
namespace Symfony\Component\Dsn\Exception;
715

src/Symfony/Component/Dsn/Exception/FunctionNotSupportedException.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Symfony\Component\Dsn\Exception;

src/Symfony/Component/Dsn/Exception/FunctionsNotAllowedException.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Symfony\Component\Dsn\Exception;

src/Symfony/Component/Dsn/Exception/InvalidDsnException.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Symfony\Component\Dsn\Exception;

0 commit comments

Comments
 (0)
0