Completed
Push — master ( 124fed...6caa0a )
by Tomáš
12s
created
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/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/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/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/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/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/Sculpin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
         $this->eventDispatcher->dispatch(SculpinEvents::EVENT_BEFORE_RUN, new SourceSetEvent($this->sourceSet));
96 96
 
97
-        if ($updatedSources = array_filter($this->sourceSet->updatedSources(), function ($source) {
97
+        if ($updatedSources = array_filter($this->sourceSet->updatedSources(), function($source) {
98 98
             return !$source->isGenerated();
99 99
         })) {
100 100
             if (!$found) {
Please login to merge, or discard this patch.
src/Permalink/SourcePermalinkFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
         return new Permalink($relativeFilePath, $relativeUrlPath);
56 56
     }
57 57
 
58
+    /**
59
+     * @return string
60
+     */
58 61
     private function generatePermalinkPathname(SourceInterface $source)
59 62
     {
60 63
         $pathname = $source->relativePathname();
Please login to merge, or discard this patch.
src/Console/Command/GenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
             $this->httpServer->init();
91 91
 
92
-            $this->httpServer->addPeriodicTimer(1, function () {
92
+            $this->httpServer->addPeriodicTimer(1, function() {
93 93
                 clearstatcache();
94 94
 
95 95
                 $this->sculpin->resetSources();
Please login to merge, or discard this patch.