Completed
Pull Request — master (#4)
by Tomáš
05:01 queued 01:57
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.
src/Bundle/SculpinBundle/Command/GenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
             );
91 91
 
92 92
             if ($watch) {
93
-                $httpServer->addPeriodicTimer(1, function () use ($sculpin, $dataSource, $sourceSet, $consoleIo) {
93
+                $httpServer->addPeriodicTimer(1, function() use ($sculpin, $dataSource, $sourceSet, $consoleIo) {
94 94
                     clearstatcache();
95 95
                     $sourceSet->reset();
96 96
 
Please login to merge, or discard this patch.
src/Core/Source/CompositeDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public function dataSourceId()
64 64
     {
65
-        return 'CompositeDataSource('.implode(',', array_map(function ($dataSource) {
65
+        return 'CompositeDataSource('.implode(',', array_map(function($dataSource) {
66 66
             return $dataSource->dataSourceId();
67 67
         }, $this->dataSources));
68 68
     }
Please login to merge, or discard this patch.
src/Core/Source/SourceSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public function updatedSources()
89 89
     {
90
-        return array_filter($this->sources, function (SourceInterface $source) {
90
+        return array_filter($this->sources, function(SourceInterface $source) {
91 91
             return $source->hasChanged();
92 92
         });
93 93
     }
Please login to merge, or discard this patch.
src/Core/Source/Filter/AntPathFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         if (null === $antPathMatcher) {
29 29
             $antPathMatcher = new AntPathMatcher;
30 30
         }
31
-        $this->patterns = array_map(function ($path) use ($antPathMatcher) {
31
+        $this->patterns = array_map(function($path) use ($antPathMatcher) {
32 32
             return $antPathMatcher->isPattern($path) ? $path : $path.'/**';
33 33
         }, $paths);
34 34
         $this->antPathMatcher = $antPathMatcher;
Please login to merge, or discard this patch.
src/Bundle/ContentTypesBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                         // Default case is we want the user to specify just one
46 46
                         // path but we can allow for multiple if they want to.
47 47
                         ->ifString()
48
-                        ->then(function ($v) {
48
+                        ->then(function($v) {
49 49
                             return array($v);
50 50
                         })
51 51
                     ->end()
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
                         // Default case is we want the user to specify just one
62 62
                         // taxonomy but we can allow for multiple if they want to.
63 63
                         ->ifString()
64
-                        ->then(function ($v) {
64
+                        ->then(function($v) {
65 65
                             return array(array('name' => $v));
66 66
                         })
67 67
                     ->end()
68 68
                     ->prototype('array')
69 69
                         ->beforeNormalization()
70 70
                             ->ifString()
71
-                            ->then(function ($v) {
71
+                            ->then(function($v) {
72 72
                                 return array('name' => $v);
73 73
                             })
74 74
                         ->end()
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
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $this->loop = new StreamSelectLoop();
51 51
         $socketServer = new ReactSocketServer($this->loop);
52 52
         $httpServer = new ReactHttpServer($socketServer);
53
-        $httpServer->on('request', function ($request, $response) use ($repository, $docroot, $output) {
53
+        $httpServer->on('request', function($request, $response) use ($repository, $docroot, $output) {
54 54
             $path = $docroot.'/'.ltrim(rawurldecode($request->getPath()), '/');
55 55
             if (is_dir($path)) {
56 56
                 $path .= '/index.html';
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.
src/Bundle/TwigBundle/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.