Completed
Pull Request — master (#10)
by Tomáš
04:50 queued 01:55
created
DependencyInjection/Compiler/CustomMimeTypesRepositoryPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         }
53 53
 
54 54
         foreach ($data as $type => $extensions) {
55
-            $data[$type] = array_filter($extensions, function ($var) {
55
+            $data[$type] = array_filter($extensions, function($var) {
56 56
                 return strlen($var) > 0;
57 57
             });
58 58
         }
Please login to merge, or discard this patch.
Bundle/SculpinBundle/DependencyInjection/Compiler/PathConfiguratorPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $matcher = $this->matcher;
69 69
 
70 70
         return array_map(
71
-            function ($path) use ($matcher) {
71
+            function($path) use ($matcher) {
72 72
                 if ($matcher->isPattern($path)) {
73 73
                     return $path;
74 74
                 }
Please login to merge, or discard this patch.
Bundle/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.
src/Bundle/SculpinBundle/HttpServer/HttpServer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     {
72 72
         $this->port = $port;
73 73
 
74
-        $this->reactHttpServer->on('request', function (Request $request, Response $response) {
74
+        $this->reactHttpServer->on('request', function(Request $request, Response $response) {
75 75
             $path = $this->outputDirectory.'/'.ltrim(rawurldecode($request->getPath()), '/');
76 76
             if (is_dir($path)) {
77 77
                 $path .= '/index.html';
Please login to merge, or discard this patch.
src/Bundle/SculpinBundle/Command/GenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 
110 110
             $this->httpServer->init();
111 111
             if ($watch) {
112
-                $this->httpServer->addPeriodicTimer(1, function () use ($sourceSet) {
112
+                $this->httpServer->addPeriodicTimer(1, function() use ($sourceSet) {
113 113
                     clearstatcache();
114 114
                     $sourceSet->reset();
115 115
 
Please login to merge, or discard this patch.
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/Bundle/PostsBundle/Posts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         // We have special sorting rules for our items based on the date
21 21
         // and title. This assumes that the items are actually Post instances.
22
-        uasort($this->items, function ($a, $b) {
22
+        uasort($this->items, function($a, $b) {
23 23
             return strnatcmp($b->date().' '.$b->title(), $a->date().' '.$a->title());
24 24
         });
25 25
         parent::init();
Please login to merge, or discard this patch.
src/DataProvider/DataProviderManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is a part of Sculpin.
Please login to merge, or discard this patch.
src/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.