@@ -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 |
@@ -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 |
@@ -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')); |
@@ -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'])) |
@@ -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 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * DataManager constructor. |
40 | 40 | */ |
41 | - public function __construct () |
|
41 | + public function __construct() |
|
42 | 42 | { |
43 | 43 | parent::__construct(); |
44 | 44 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @return array |
52 | 52 | */ |
53 | - public function getDataItems () |
|
53 | + public function getDataItems() |
|
54 | 54 | { |
55 | 55 | return $this->dataItems; |
56 | 56 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @param string[] $folders An array of folders to be searched for to contain DataItems |
64 | 64 | */ |
65 | - public function parseDataItems ($folders) |
|
65 | + public function parseDataItems($folders) |
|
66 | 66 | { |
67 | 67 | if ($folders === null) { return; } |
68 | 68 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @param string[] $dataSets An array of DataSets |
84 | 84 | */ |
85 | - public function parseDataSets ($dataSets) |
|
85 | + public function parseDataSets($dataSets) |
|
86 | 86 | { |
87 | 87 | if ($dataSets === null) { return; } |
88 | 88 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @return array |
109 | 109 | */ |
110 | - private function parseFinderFiles ($folder) |
|
110 | + private function parseFinderFiles($folder) |
|
111 | 111 | { |
112 | 112 | $dataItems = array(); |
113 | 113 | $finder = new Finder(); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * |
145 | 145 | * @return array |
146 | 146 | */ |
147 | - private function fromCsv ($content) |
|
147 | + private function fromCsv($content) |
|
148 | 148 | { |
149 | 149 | $rows = array_map("str_getcsv", explode("\n", trim($content))); |
150 | 150 | $columns = array_shift($rows); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * |
166 | 166 | * @return array |
167 | 167 | */ |
168 | - private function fromJson ($content) |
|
168 | + private function fromJson($content) |
|
169 | 169 | { |
170 | 170 | return json_decode($content, true); |
171 | 171 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * |
178 | 178 | * @return array |
179 | 179 | */ |
180 | - private function fromXml ($content) |
|
180 | + private function fromXml($content) |
|
181 | 181 | { |
182 | 182 | return json_decode(json_encode(simplexml_load_string($content)), true); |
183 | 183 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * |
190 | 190 | * @return array |
191 | 191 | */ |
192 | - private function fromYaml ($content) |
|
192 | + private function fromYaml($content) |
|
193 | 193 | { |
194 | 194 | return Yaml::parse($content); |
195 | 195 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * |
202 | 202 | * @throws DependencyMissingException |
203 | 203 | */ |
204 | - private function handleDependencies ($extension) |
|
204 | + private function handleDependencies($extension) |
|
205 | 205 | { |
206 | 206 | if ($extension === 'xml' && !function_exists('simplexml_load_string')) |
207 | 207 | { |
@@ -19,12 +19,12 @@ |
||
19 | 19 | $this->collections = array(); |
20 | 20 | } |
21 | 21 | |
22 | - public function getCollections () |
|
22 | + public function getCollections() |
|
23 | 23 | { |
24 | 24 | return $this->collections; |
25 | 25 | } |
26 | 26 | |
27 | - public function parseCollections ($folders) |
|
27 | + public function parseCollections($folders) |
|
28 | 28 | { |
29 | 29 | if ($folders === null) |
30 | 30 | { |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | abstract class ArrayUtilities |
6 | 6 | { |
7 | - public static function array_merge_defaults (array &$array1, array &$array2, $keyField) |
|
7 | + public static function array_merge_defaults(array &$array1, array &$array2, $keyField) |
|
8 | 8 | { |
9 | 9 | $merged = $array1; |
10 | 10 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $highlighter; |
10 | 10 | |
11 | - public function __construct () |
|
11 | + public function __construct() |
|
12 | 12 | { |
13 | 13 | $this->highlighter = new Highlighter(); |
14 | 14 | } |