Completed
Pull Request — master (#2)
by Tomáš
20:25
created
src/Core/Permalink/SourcePermalinkFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
                 } else {
86 86
                     $pretty = preg_replace('/(\.[^\.\/]+|\.[^\.\/]+\.[^\.\/]+)$/', '', $pathname);
87 87
                     if (basename($pretty) == 'index') {
88
-                        return $pretty . '.html';
88
+                        return $pretty.'.html';
89 89
                     } else {
90
-                        return $pretty . '/index.html';
90
+                        return $pretty.'/index.html';
91 91
                     }
92 92
                 }
93 93
                 break;
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                 $permalink = preg_replace('/:filename/', $filename, $permalink);
116 116
                 $permalink = preg_replace('/:slug_filename/', $this->normalize($slug ?: $filename), $permalink);
117 117
                 if (strrpos($filename, DIRECTORY_SEPARATOR) !== false) {
118
-                    $basename = substr($filename, strrpos($filename, DIRECTORY_SEPARATOR)+1);
118
+                    $basename = substr($filename, strrpos($filename, DIRECTORY_SEPARATOR) + 1);
119 119
                 } else {
120 120
                     $basename = $filename;
121 121
                 }
Please login to merge, or discard this patch.
src/Core/Source/FileSource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                         } catch (\InvalidArgumentException $e) {
93 93
                             // Likely not actually YAML front matter available,
94 94
                             // treat the entire file as pure content.
95
-                            echo ' ! ' . $this->sourceId() . ' ' . $e->getMessage() . ' !' . PHP_EOL;
95
+                            echo ' ! '.$this->sourceId().' '.$e->getMessage().' !'.PHP_EOL;
96 96
                             $this->content = $content;
97 97
                             $this->data = new Data;
98 98
                         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         }
110 110
 
111 111
         if ($this->data->get('date')) {
112
-            if (! is_numeric($this->data->get('date'))) {
112
+            if (!is_numeric($this->data->get('date'))) {
113 113
                 $this->data->set('date', strtotime($this->data->get('date')));
114 114
             }
115 115
 
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/ConfigFilesystemDataSource.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
     public function refresh(SourceSet $sourceSet)
96 96
     {
97
-        if (! is_dir($this->sourceDir)) {
97
+        if (!is_dir($this->sourceDir)) {
98 98
             return;
99 99
         }
100 100
 
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/Core/Source/Filter/ChainFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
                 $matched = true;
42 42
             } else {
43
-                if (! $this->or) {
43
+                if (!$this->or) {
44 44
                     // If we would not have accepted any filter ("and") we can
45 45
                     // return false at this point since at least one failed.
46 46
                     return false;
Please login to merge, or discard this patch.
src/Core/Source/Map/DraftsMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
                     }
31 31
                 }
32 32
 
33
-                if (! in_array('drafts', $tags)) {
33
+                if (!in_array('drafts', $tags)) {
34 34
                     // only add drafts if it isn't already in tags.
35 35
                     $tags[] = 'drafts';
36 36
                 }
Please login to merge, or discard this patch.
src/Core/Io/ConsoleIo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
             $messages = (array) $messages;
98 98
             $messages[0] = sprintf(
99 99
                 '[%.1fMB/%.2fs] %s',
100
-                memory_get_usage() / 1024 / 1024,
100
+                memory_get_usage()/1024/1024,
101 101
                 microtime(true) - $this->startTime,
102 102
                 $messages[0]
103 103
             );
Please login to merge, or discard this patch.