Completed
Pull Request — master (#14)
by Tomáš
03:35
created
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.
src/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/Output/FileSystemWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         foreach ($fileInfos as $fileInfo) {
37 37
             $relativeDestination = substr($fileInfo->getPathname(), strlen($this->sourceDirectory));
38
-            $absoluteDestination = $this->outputDirectory . $relativeDestination;
38
+            $absoluteDestination = $this->outputDirectory.$relativeDestination;
39 39
 
40 40
             FileSystem::copy($fileInfo->getRealPath(), $absoluteDestination, true);
41 41
         }
Please login to merge, or discard this patch.
src/PostsBundle/SortPosts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 
14 14
     // We have special sorting rules for our items based on the date
15 15
 // and title. This assumes that the items are actually Post instances.
16
-uasort($this->items, function ($a, $b) {
16
+uasort($this->items, function($a, $b) {
17 17
     return strnatcmp($b->date().' '.$b->title(), $a->date().' '.$a->title());
18 18
 });
19 19
\ No newline at end of file
Please login to merge, or discard this patch.