Completed
Pull Request — master (#10)
by Tomáš
03:17
created
src/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/MarkdownTwigCompatBundle/EventSubscriber/ConvertEventSubscriber.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
      * @var array
31 31
      */
32 32
     protected static $addPlaceholderRe = array(
33
-        '/^({%\s+block\s+(\w+).+?%})$/m',  // {% %} style code
34
-        '/^({%\s+endblock\s+%})$/m',       // {% %} style code
35
-        '/^({{.+?}})$/m',                  // {{ }} style code
33
+        '/^({%\s+block\s+(\w+).+?%})$/m', // {% %} style code
34
+        '/^({%\s+endblock\s+%})$/m', // {% %} style code
35
+        '/^({{.+?}})$/m', // {{ }} style code
36 36
     );
37 37
 
38 38
     /**
Please login to merge, or discard this patch.