@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * Configuration constructor. |
35 | 35 | * |
36 | 36 | * @param string $configFile |
37 | - * @param ConsoleInterface|OutputInterface|null $output |
|
37 | + * @param ConsoleInterface $output |
|
38 | 38 | */ |
39 | 39 | public function __construct($configFile, $output = null) |
40 | 40 | { |
@@ -83,11 +83,17 @@ discard block |
||
83 | 83 | return $base; |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @return string[] |
|
88 | + */ |
|
86 | 89 | public function getDataFolders () |
87 | 90 | { |
88 | 91 | return $this->returnConfigOption('data'); |
89 | 92 | } |
90 | 93 | |
94 | + /** |
|
95 | + * @return string[] |
|
96 | + */ |
|
91 | 97 | public function getDataSets () |
92 | 98 | { |
93 | 99 | return $this->returnConfigOption('datasets'); |
@@ -133,6 +139,9 @@ discard block |
||
133 | 139 | return $this->configuration['twig']['autoescape']; |
134 | 140 | } |
135 | 141 | |
142 | + /** |
|
143 | + * @param string $name |
|
144 | + */ |
|
136 | 145 | private function returnConfigOption ($name, $default = null) |
137 | 146 | { |
138 | 147 | return (isset($this->configuration[$name]) ? $this->configuration[$name] : $default); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $this->handleDeprecations(); |
62 | 62 | } |
63 | 63 | |
64 | - public function isDebug () |
|
64 | + public function isDebug() |
|
65 | 65 | { |
66 | 66 | return $this->returnConfigOption('debug', false); |
67 | 67 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @return mixed|null |
73 | 73 | */ |
74 | - public function getBaseUrl () |
|
74 | + public function getBaseUrl() |
|
75 | 75 | { |
76 | 76 | $base = $this->returnConfigOption('base'); |
77 | 77 | |
@@ -83,62 +83,62 @@ discard block |
||
83 | 83 | return $base; |
84 | 84 | } |
85 | 85 | |
86 | - public function getDataFolders () |
|
86 | + public function getDataFolders() |
|
87 | 87 | { |
88 | 88 | return $this->returnConfigOption('data'); |
89 | 89 | } |
90 | 90 | |
91 | - public function getDataSets () |
|
91 | + public function getDataSets() |
|
92 | 92 | { |
93 | 93 | return $this->returnConfigOption('datasets'); |
94 | 94 | } |
95 | 95 | |
96 | - public function getIncludes () |
|
96 | + public function getIncludes() |
|
97 | 97 | { |
98 | 98 | return $this->returnConfigOption('include', array()); |
99 | 99 | } |
100 | 100 | |
101 | - public function getExcludes () |
|
101 | + public function getExcludes() |
|
102 | 102 | { |
103 | 103 | return $this->returnConfigOption('exclude', array()); |
104 | 104 | } |
105 | 105 | |
106 | - public function getTheme () |
|
106 | + public function getTheme() |
|
107 | 107 | { |
108 | 108 | return $this->returnConfigOption('theme'); |
109 | 109 | } |
110 | 110 | |
111 | - public function getConfiguration () |
|
111 | + public function getConfiguration() |
|
112 | 112 | { |
113 | 113 | return $this->configuration; |
114 | 114 | } |
115 | 115 | |
116 | - public function getPageViewFolders () |
|
116 | + public function getPageViewFolders() |
|
117 | 117 | { |
118 | 118 | return $this->returnConfigOption('pageviews'); |
119 | 119 | } |
120 | 120 | |
121 | - public function getTargetFolder () |
|
121 | + public function getTargetFolder() |
|
122 | 122 | { |
123 | 123 | return $this->returnConfigOption('target'); |
124 | 124 | } |
125 | 125 | |
126 | - public function getCollectionsFolders () |
|
126 | + public function getCollectionsFolders() |
|
127 | 127 | { |
128 | 128 | return $this->returnConfigOption('collections'); |
129 | 129 | } |
130 | 130 | |
131 | - public function getTwigAutoescape () |
|
131 | + public function getTwigAutoescape() |
|
132 | 132 | { |
133 | 133 | return $this->configuration['twig']['autoescape']; |
134 | 134 | } |
135 | 135 | |
136 | - private function returnConfigOption ($name, $default = null) |
|
136 | + private function returnConfigOption($name, $default = null) |
|
137 | 137 | { |
138 | 138 | return (isset($this->configuration[$name]) ? $this->configuration[$name] : $default); |
139 | 139 | } |
140 | 140 | |
141 | - private function defaultConfiguration () |
|
141 | + private function defaultConfiguration() |
|
142 | 142 | { |
143 | 143 | $defaultConfig = array( |
144 | 144 | 'baseurl' => '', |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | } |
166 | 166 | } |
167 | 167 | |
168 | - private function handleDeprecations () |
|
168 | + private function handleDeprecations() |
|
169 | 169 | { |
170 | 170 | // @TODO 1.0.0 handle 'base' deprecation in _config.yml |
171 | 171 | $base = $this->returnConfigOption('base'); |
@@ -47,8 +47,7 @@ discard block |
||
47 | 47 | try |
48 | 48 | { |
49 | 49 | $this->configuration = Yaml::parse(file_get_contents($configFile)); |
50 | - } |
|
51 | - catch (ParseException $e) |
|
50 | + } catch (ParseException $e) |
|
52 | 51 | { |
53 | 52 | $this->output->error("Parsing the configuration failed: {message}", array( |
54 | 53 | "message" => $e->getMessage() |
@@ -158,8 +157,7 @@ discard block |
||
158 | 157 | if (is_array($this->configuration)) |
159 | 158 | { |
160 | 159 | $this->configuration = ArrayUtilities::array_merge_defaults($defaultConfig, $this->configuration, 'name'); |
161 | - } |
|
162 | - else |
|
160 | + } else |
|
163 | 161 | { |
164 | 162 | $this->configuration = $defaultConfig; |
165 | 163 | } |
@@ -140,6 +140,9 @@ |
||
140 | 140 | return pathinfo($filename, PATHINFO_EXTENSION); |
141 | 141 | } |
142 | 142 | |
143 | + /** |
|
144 | + * @param string $folderPath |
|
145 | + */ |
|
143 | 146 | public function isDir ($folderPath) |
144 | 147 | { |
145 | 148 | return is_dir($folderPath); |
@@ -66,9 +66,9 @@ discard block |
||
66 | 66 | { |
67 | 67 | $finder = new Finder(); |
68 | 68 | $finder->files() |
69 | - ->ignoreVCS(true) |
|
70 | - ->ignoreDotFiles(true) |
|
71 | - ->ignoreUnreadableDirs(); |
|
69 | + ->ignoreVCS(true) |
|
70 | + ->ignoreDotFiles(true) |
|
71 | + ->ignoreUnreadableDirs(); |
|
72 | 72 | |
73 | 73 | $finder->in( |
74 | 74 | empty(trim($searchIn)) ? getcwd() : $searchIn |
@@ -155,9 +155,9 @@ discard block |
||
155 | 155 | public function removeExtension ($filename) |
156 | 156 | { |
157 | 157 | return $this->appendPath( |
158 | - $this->getFolderPath($filename), |
|
159 | - $this->getBaseName($filename) |
|
160 | - ); |
|
158 | + $this->getFolderPath($filename), |
|
159 | + $this->getBaseName($filename) |
|
160 | + ); |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @return string |
32 | 32 | */ |
33 | - public function absolutePath ($pathFragments) |
|
33 | + public function absolutePath($pathFragments) |
|
34 | 34 | { |
35 | 35 | $args = func_get_args(); |
36 | 36 | array_unshift($args, getcwd()); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @return string |
47 | 47 | */ |
48 | - public function appendPath ($pathFragments) |
|
48 | + public function appendPath($pathFragments) |
|
49 | 49 | { |
50 | 50 | return implode(DIRECTORY_SEPARATOR, func_get_args()); |
51 | 51 | } |
@@ -57,12 +57,12 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return string |
59 | 59 | */ |
60 | - public function getRelativePath ($path) |
|
60 | + public function getRelativePath($path) |
|
61 | 61 | { |
62 | 62 | return str_replace(getcwd() . DIRECTORY_SEPARATOR, '', $path); |
63 | 63 | } |
64 | 64 | |
65 | - public function getFinder ($explicitIncludes = array(), $explicitIgnores = array(), $searchIn = "") |
|
65 | + public function getFinder($explicitIncludes = array(), $explicitIgnores = array(), $searchIn = "") |
|
66 | 66 | { |
67 | 67 | $finder = new Finder(); |
68 | 68 | $finder->files() |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * |
100 | 100 | * @return string |
101 | 101 | */ |
102 | - public function getBaseName ($filePath) |
|
102 | + public function getBaseName($filePath) |
|
103 | 103 | { |
104 | 104 | return pathinfo($filePath, PATHINFO_FILENAME); |
105 | 105 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * |
112 | 112 | * @return string |
113 | 113 | */ |
114 | - public function getFileName ($filePath) |
|
114 | + public function getFileName($filePath) |
|
115 | 115 | { |
116 | 116 | return pathinfo($filePath, PATHINFO_BASENAME); |
117 | 117 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * |
124 | 124 | * @return string |
125 | 125 | */ |
126 | - public function getFolderPath ($filePath) |
|
126 | + public function getFolderPath($filePath) |
|
127 | 127 | { |
128 | 128 | return pathinfo($filePath, PATHINFO_DIRNAME); |
129 | 129 | } |
@@ -135,12 +135,12 @@ discard block |
||
135 | 135 | * |
136 | 136 | * @return string The extension of the file |
137 | 137 | */ |
138 | - public function getExtension ($filename) |
|
138 | + public function getExtension($filename) |
|
139 | 139 | { |
140 | 140 | return pathinfo($filename, PATHINFO_EXTENSION); |
141 | 141 | } |
142 | 142 | |
143 | - public function isDir ($folderPath) |
|
143 | + public function isDir($folderPath) |
|
144 | 144 | { |
145 | 145 | return is_dir($folderPath); |
146 | 146 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * |
153 | 153 | * @return string |
154 | 154 | */ |
155 | - public function removeExtension ($filename) |
|
155 | + public function removeExtension($filename) |
|
156 | 156 | { |
157 | 157 | return $this->appendPath( |
158 | 158 | $this->getFolderPath($filename), |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * |
170 | 170 | * @return SplFileInfo A reference to the newly created file |
171 | 171 | */ |
172 | - public function writeFile ($targetDir, $fileName, $content) |
|
172 | + public function writeFile($targetDir, $fileName, $content) |
|
173 | 173 | { |
174 | 174 | $outputFolder = $this->getFolderPath($this->absolutePath($targetDir, $fileName)); |
175 | 175 | $targetFile = $this->getFileName($fileName); |
@@ -62,6 +62,10 @@ discard block |
||
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $absolutePath |
|
67 | + * @param string $targetPath |
|
68 | + */ |
|
65 | 69 | public function copyFile ($absolutePath, $targetPath) |
66 | 70 | { |
67 | 71 | $targetPath = ltrim($targetPath, DIRECTORY_SEPARATOR); |
@@ -73,6 +77,10 @@ discard block |
||
73 | 77 | ); |
74 | 78 | } |
75 | 79 | |
80 | + /** |
|
81 | + * @param string $targetPath |
|
82 | + * @param string $fileContent |
|
83 | + */ |
|
76 | 84 | public function writeFile ($targetPath, $fileContent) |
77 | 85 | { |
78 | 86 | $outputFolder = $this->fs->getFolderPath($targetPath); |
@@ -98,6 +106,9 @@ discard block |
||
98 | 106 | )); |
99 | 107 | } |
100 | 108 | |
109 | + /** |
|
110 | + * @param string $pathFragments |
|
111 | + */ |
|
101 | 112 | private function buildPath ($pathFragments) |
102 | 113 | { |
103 | 114 | $paths = func_get_args(); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | protected $absolutePath; |
17 | 17 | protected $targetDirectories; |
18 | 18 | |
19 | - public function __construct ($folderPath) |
|
19 | + public function __construct($folderPath) |
|
20 | 20 | { |
21 | 21 | $this->fs = new Filesystem(); |
22 | 22 | $this->targetDirectories = array(); |
@@ -45,12 +45,12 @@ discard block |
||
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
48 | - public function __toString () |
|
48 | + public function __toString() |
|
49 | 49 | { |
50 | 50 | return rtrim($this->absolutePath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
51 | 51 | } |
52 | 52 | |
53 | - public function setTargetDirectory ($folderName) |
|
53 | + public function setTargetDirectory($folderName) |
|
54 | 54 | { |
55 | 55 | if (is_null($folderName) || empty($folderName)) |
56 | 56 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
65 | - public function copyFile ($absolutePath, $targetPath) |
|
65 | + public function copyFile($absolutePath, $targetPath) |
|
66 | 66 | { |
67 | 67 | $targetPath = ltrim($targetPath, DIRECTORY_SEPARATOR); |
68 | 68 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ); |
74 | 74 | } |
75 | 75 | |
76 | - public function writeFile ($targetPath, $fileContent) |
|
76 | + public function writeFile($targetPath, $fileContent) |
|
77 | 77 | { |
78 | 78 | $outputFolder = $this->fs->getFolderPath($targetPath); |
79 | 79 | $targetFileName = $this->fs->getFileName($outputFolder); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | )); |
99 | 99 | } |
100 | 100 | |
101 | - private function buildPath ($pathFragments) |
|
101 | + private function buildPath($pathFragments) |
|
102 | 102 | { |
103 | 103 | $paths = func_get_args(); |
104 | 104 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * |
111 | 111 | * @return string |
112 | 112 | */ |
113 | - private function getCwd () |
|
113 | + private function getCwd() |
|
114 | 114 | { |
115 | 115 | $location = array_merge(array($this->absolutePath), $this->targetDirectories); |
116 | 116 |
@@ -25,8 +25,7 @@ discard block |
||
25 | 25 | if (substr($folderPath, 0, 1) === DIRECTORY_SEPARATOR) |
26 | 26 | { |
27 | 27 | $this->absolutePath = $folderPath; |
28 | - } |
|
29 | - else |
|
28 | + } else |
|
30 | 29 | { |
31 | 30 | $this->absolutePath = $this->fs->absolutePath($folderPath); |
32 | 31 | } |
@@ -55,8 +54,7 @@ discard block |
||
55 | 54 | if (is_null($folderName) || empty($folderName)) |
56 | 55 | { |
57 | 56 | $this->targetDirectories = array(); |
58 | - } |
|
59 | - else |
|
57 | + } else |
|
60 | 58 | { |
61 | 59 | $this->targetDirectories[] = trim($folderName, DIRECTORY_SEPARATOR); |
62 | 60 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Returns a list of filters. |
17 | 17 | * |
18 | - * @return array |
|
18 | + * @return Twig_SimpleFilter[] |
|
19 | 19 | */ |
20 | 20 | public function getFilters() |
21 | 21 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $length = $breakpoint; |
50 | 50 | } |
51 | 51 | |
52 | - return rtrim(mb_substr($value, 0, $length, $env->getCharset())).$separator; |
|
52 | + return rtrim(mb_substr($value, 0, $length, $env->getCharset())) . $separator; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | return $value; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
89 | - return rtrim(substr($value, 0, $length)).$separator; |
|
89 | + return rtrim(substr($value, 0, $length)) . $separator; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | return $value; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | /** |
11 | 11 | * {@inheritdoc} |
12 | 12 | */ |
13 | - protected function configure () |
|
13 | + protected function configure() |
|
14 | 14 | { |
15 | 15 | parent::configure(); |
16 | 16 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * {@inheritdoc} |
23 | 23 | */ |
24 | - protected function execute (InputInterface $input, OutputInterface $output) |
|
24 | + protected function execute(InputInterface $input, OutputInterface $output) |
|
25 | 25 | { |
26 | 26 | parent::execute($input, $output); |
27 | 27 |
@@ -33,8 +33,7 @@ |
||
33 | 33 | $output->writeln(sprintf("Your site built successfully! It can be found at: %s", |
34 | 34 | $this->website->getConfiguration()->getTargetFolder() . DIRECTORY_SEPARATOR |
35 | 35 | )); |
36 | - } |
|
37 | - catch (\Exception $e) |
|
36 | + } catch (\Exception $e) |
|
38 | 37 | { |
39 | 38 | $output->writeln(sprintf("Your website failed to build with the following error: %s", |
40 | 39 | $e->getMessage() |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | |
8 | 8 | class WatchCommand extends BuildableCommand |
9 | 9 | { |
10 | - protected function configure () |
|
10 | + protected function configure() |
|
11 | 11 | { |
12 | 12 | parent::configure(); |
13 | 13 | |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | $this->setDescription('Watch the source folder and rebuild the website as files change'); |
16 | 16 | } |
17 | 17 | |
18 | - protected function execute (InputInterface $input, OutputInterface $output) |
|
18 | + protected function execute(InputInterface $input, OutputInterface $output) |
|
19 | 19 | { |
20 | 20 | parent::execute($input, $output); |
21 | 21 |
@@ -28,8 +28,7 @@ |
||
28 | 28 | )); |
29 | 29 | |
30 | 30 | $this->website->watch(); |
31 | - } |
|
32 | - catch (\Exception $e) |
|
31 | + } catch (\Exception $e) |
|
33 | 32 | { |
34 | 33 | $output->writeln(sprintf("Your website failed to build with the following error: %s", |
35 | 34 | $e->getMessage() |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * {@inheritdoc} |
39 | 39 | */ |
40 | - protected function configure () |
|
40 | + protected function configure() |
|
41 | 41 | { |
42 | 42 | $this->fs = new Filesystem(); |
43 | 43 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * {@inheritdoc} |
51 | 51 | */ |
52 | - protected function execute (InputInterface $input, OutputInterface $output) |
|
52 | + protected function execute(InputInterface $input, OutputInterface $output) |
|
53 | 53 | { |
54 | 54 | $this->website = new Website($output); |
55 | 55 | $this->website->setConfLess($input->getOption('no-conf')); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @return bool True if the website was configured properly |
64 | 64 | */ |
65 | - protected function configureBuild (InputInterface $input) |
|
65 | + protected function configureBuild(InputInterface $input) |
|
66 | 66 | { |
67 | 67 | $this->website->setConfiguration($input->getOption('conf')); |
68 | 68 | $this->website->setSafeMode($input->getOption('safe')); |
@@ -76,10 +76,10 @@ |
||
76 | 76 | |
77 | 77 | $finder = new Finder(); |
78 | 78 | $finder->files() |
79 | - ->name('/\.(html|twig)/') |
|
80 | - ->ignoreDotFiles(true) |
|
81 | - ->ignoreUnreadableDirs() |
|
82 | - ->in($pageViewFolder); |
|
79 | + ->name('/\.(html|twig)/') |
|
80 | + ->ignoreDotFiles(true) |
|
81 | + ->ignoreUnreadableDirs() |
|
82 | + ->in($pageViewFolder); |
|
83 | 83 | |
84 | 84 | foreach ($finder as $viewFile) |
85 | 85 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @return array |
47 | 47 | */ |
48 | - public function getSiteMenu () |
|
48 | + public function getSiteMenu() |
|
49 | 49 | { |
50 | 50 | return $this->siteMenu; |
51 | 51 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param $pageViewFolders |
58 | 58 | */ |
59 | - public function parsePageViews ($pageViewFolders) |
|
59 | + public function parsePageViews($pageViewFolders) |
|
60 | 60 | { |
61 | 61 | if (empty($pageViewFolders)) { return; } |
62 | 62 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @param ContentItem[] $collections |
109 | 109 | */ |
110 | - public function prepareDynamicPageViews ($collections) |
|
110 | + public function prepareDynamicPageViews($collections) |
|
111 | 111 | { |
112 | 112 | if (empty($collections)) { return; } |
113 | 113 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * @param ContentItem[][] $collections The collections that will be used to compile dynamic PageViews |
137 | 137 | * @param Folder $targetDir The relative target directory as specified from the configuration file |
138 | 138 | */ |
139 | - public function compile (&$twig, &$collections, &$targetDir) |
|
139 | + public function compile(&$twig, &$collections, &$targetDir) |
|
140 | 140 | { |
141 | 141 | $this->compileDynamicPageViews($twig, $collections, $targetDir); |
142 | 142 | $this->compileStaticPageViews($twig, $targetDir); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * @param ContentItem[][] $collections The collections that will be used to compile dynamic PageViews |
151 | 151 | * @param Folder $targetDir The relative target directory as specified from the configuration file |
152 | 152 | */ |
153 | - private function compileDynamicPageViews (&$twig, &$collections, &$targetDir) |
|
153 | + private function compileDynamicPageViews(&$twig, &$collections, &$targetDir) |
|
154 | 154 | { |
155 | 155 | foreach ($this->dynamicPageViews as $pageView) |
156 | 156 | { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * |
181 | 181 | * @throws \Exception |
182 | 182 | */ |
183 | - private function compileStaticPageViews (&$twig, &$targetDir) |
|
183 | + private function compileStaticPageViews(&$twig, &$targetDir) |
|
184 | 184 | { |
185 | 185 | foreach ($this->staticPageViews as $pageView) |
186 | 186 | { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * |
201 | 201 | * @param array $frontMatter |
202 | 202 | */ |
203 | - private function addToSiteMenu ($frontMatter) |
|
203 | + private function addToSiteMenu($frontMatter) |
|
204 | 204 | { |
205 | 205 | if (!array_key_exists('permalink', $frontMatter) || |
206 | 206 | (array_key_exists('menu', $frontMatter) && !$frontMatter['menu'])) |
@@ -88,8 +88,7 @@ |
||
88 | 88 | if ($newPageView->isDynamicPage()) |
89 | 89 | { |
90 | 90 | $this->dynamicPageViews[] = $newPageView; |
91 | - } |
|
92 | - else |
|
91 | + } else |
|
93 | 92 | { |
94 | 93 | $this->addToSiteMenu($newPageView->getFrontMatter()); |
95 | 94 | $this->staticPageViews[] = $newPageView; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | protected $fs; |
20 | 20 | |
21 | - public function __construct () |
|
21 | + public function __construct() |
|
22 | 22 | { |
23 | 23 | $this->fs = new Filesystem(); |
24 | 24 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * @param ConsoleInterface|OutputInterface|null $output |
28 | 28 | */ |
29 | - public function setConsoleOutput ($output) |
|
29 | + public function setConsoleOutput($output) |
|
30 | 30 | { |
31 | 31 | $this->output = new ConsoleInterface($output); |
32 | 32 | } |