Skip to content

Commit 26d0d02

Browse files
committed
fabbot
1 parent a13ade3 commit 26d0d02

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,20 +836,21 @@ private function addAssetMapperSection(ArrayNodeDefinition $rootNode, callable $
836836
$result = [];
837837
foreach ($v as $key => $item) {
838838
// "dir" => "namespace"
839-
if (is_string($key)) {
839+
if (\is_string($key)) {
840840
$result[$key] = $item;
841841

842842
continue;
843843
}
844844

845-
if (is_array($item)) {
845+
if (\is_array($item)) {
846846
// $item = ["namespace" => "the/namespace", "value" => "the/dir"]
847-
$result[$item['value']] = isset($item['namespace']) ? $item['namespace'] : '';
847+
$result[$item['value']] = $item['namespace'] ?? '';
848848
} else {
849849
// $item = "the/dir"
850850
$result[$item] = '';
851851
}
852852
}
853+
853854
return $result;
854855
})
855856
->end()

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/XmlFrameworkExtensionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Config\FileLocator;
1515
use Symfony\Component\DependencyInjection\ContainerBuilder;
1616
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
17-
use Symfony\Component\RateLimiter\Policy\SlidingWindowLimiter;
1817

1918
class XmlFrameworkExtensionTest extends FrameworkExtensionTestCase
2019
{

src/Symfony/Component/AssetMapper/AssetDependency.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
final class AssetDependency
2020
{
2121
/**
22-
* @param bool $isLazy Whether this dependency is immediately needed.
22+
* @param bool $isLazy whether this dependency is immediately needed
2323
*/
2424
public function __construct(
2525
public readonly MappedAsset $asset,

src/Symfony/Component/AssetMapper/AssetMapper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Finds and returns assets in the pipeline.
1616
*
1717
* @experimental
18+
*
1819
* @final
1920
*/
2021
class AssetMapper implements AssetMapperInterface

src/Symfony/Component/AssetMapper/AssetMapperCompiler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Runs a chain of compiles intended to adjust the source of assets.
1818
*
1919
* @experimental
20+
*
2021
* @final
2122
*/
2223
class AssetMapperCompiler

src/Symfony/Component/AssetMapper/AssetMapperInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ interface AssetMapperInterface
2222
{
2323
/**
2424
* The path that should be prefixed on all asset paths to point to the output location.
25-
*
26-
* @return string
2725
*/
2826
public function getPublicPrefix(): string;
2927

src/Symfony/Component/AssetMapper/AssetMapperRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @experimental
2121
*
2222
* @author Ryan Weaver <ryan@symfonycasts.com>
23+
*
2324
* @final
2425
*/
2526
class AssetMapperRepository

0 commit comments

Comments
 (0)