Completed
Pull Request — master (#9)
by Tomáš
06:36
created
src/Bundle/TwigBundle/Twig/FlexibleExtensionFilesystemLoader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,21 +43,21 @@
 block discarded – undo
43 43
      */
44 44
     public function __construct($sourceDir, array $sourcePaths, array $paths, array $extensions)
45 45
     {
46
-        $mappedSourcePaths = array_map(function ($path) use ($sourceDir) {
46
+        $mappedSourcePaths = array_map(function($path) use ($sourceDir) {
47 47
             return $sourceDir.'/'.$path;
48 48
         }, $sourcePaths);
49 49
 
50 50
         $allPaths = array_merge(
51
-            array_filter($mappedSourcePaths, function ($path) {
51
+            array_filter($mappedSourcePaths, function($path) {
52 52
                 return file_exists($path);
53 53
             }),
54
-            array_filter($paths, function ($path) {
54
+            array_filter($paths, function($path) {
55 55
                 return file_exists($path);
56 56
             })
57 57
         );
58 58
 
59 59
         $this->filesystemLoader = new FilesystemLoader($allPaths);
60
-        $this->extensions = array_map(function ($ext) {
60
+        $this->extensions = array_map(function($ext) {
61 61
             return $ext ? '.'.$ext : $ext;
62 62
         }, $extensions);
63 63
     }
Please login to merge, or discard this patch.
src/Core/Sculpin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 
89 89
         $this->eventDispatcher->dispatch(SculpinEvents::EVENT_BEFORE_RUN, new SourceSetEvent($sourceSet));
90 90
 
91
-        if ($updatedSources = array_filter($sourceSet->updatedSources(), function ($source) {
91
+        if ($updatedSources = array_filter($sourceSet->updatedSources(), function($source) {
92 92
             return !$source->isGenerated();
93 93
         })) {
94 94
             if (!$found) {
Please login to merge, or discard this patch.
src/Bundle/SculpinBundle/HttpKernel/AbstractKernel.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Symplify\PHP7_Sculpin\Bundle\MarkdownTwigCompatBundle\SculpinMarkdownTwigCompatBundle;
17 17
 use Symplify\PHP7_Sculpin\Bundle\PaginationBundle\SculpinPaginationBundle;
18 18
 use Symplify\PHP7_Sculpin\Bundle\SculpinBundle\SculpinBundle;
19
-use Symplify\PHP7_Sculpin\Bundle\StandaloneBundle\SculpinStandaloneBundle;
20 19
 use Symplify\PHP7_Sculpin\Bundle\TwigBundle\SculpinTwigBundle;
21 20
 use Symfony\Component\Config\FileLocator;
22 21
 use Symfony\Component\Config\Loader\LoaderInterface;
Please login to merge, or discard this patch.
src/Bundle/SculpinBundle/DI/SculpinStandaloneExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         Compiler::loadDefinitions(
25 25
             $this->getContainerBuilder(),
26
-            $this->loadFromFile(__DIR__ . '/../Resources/config/services.yml')
26
+            $this->loadFromFile(__DIR__.'/../Resources/config/services.yml')
27 27
         );
28 28
     }
29 29
 
Please login to merge, or discard this patch.