@@ -385,9 +385,9 @@ |
||
385 | 385 | if ($this->submitted) { |
386 | 386 | $submitted = array(); |
387 | 387 | foreach ($this->data as $field => $data) { |
388 | - $value =& $submitted; |
|
388 | + $value = & $submitted; |
|
389 | 389 | foreach ($data['field'] as $index) { |
390 | - $value =& $value[$index]; |
|
390 | + $value = & $value[$index]; |
|
391 | 391 | } |
392 | 392 | $value = $this->values[$field]; |
393 | 393 | if (isset($data['rules']['required']) && empty($value)) { |
@@ -845,7 +845,7 @@ |
||
845 | 845 | { |
846 | 846 | if (empty($value)) { |
847 | 847 | $this->page->session->remove('bootpress/cookie'); |
848 | - $expires = 1; |
|
848 | + $expires = 1; |
|
849 | 849 | } else { |
850 | 850 | $this->page->session->set('bootpress/cookie', $value); |
851 | 851 | $value = base64_encode($value); |
@@ -257,7 +257,7 @@ |
||
257 | 257 | } |
258 | 258 | if (isset($this->prompt['prepend'])) { |
259 | 259 | if (!$this->prompt['prepend']['required'] || $this->validator->required($name)) { |
260 | - $prompt = $this->prompt['prepend']['html'] . $prompt; |
|
260 | + $prompt = $this->prompt['prepend']['html'].$prompt; |
|
261 | 261 | } |
262 | 262 | } |
263 | 263 | if (isset($this->prompt['append'])) { |
@@ -79,8 +79,8 @@ |
||
79 | 79 | $config = array(); |
80 | 80 | $previous = ''; |
81 | 81 | foreach (explode('/', substr($theme, 0, -1)) as $folder) { |
82 | - $previous .= $folder . '/'; |
|
83 | - $file = $this->folder . $previous . 'config.yml'; |
|
82 | + $previous .= $folder.'/'; |
|
83 | + $file = $this->folder.$previous.'config.yml'; |
|
84 | 84 | if (is_file($file)) { // any child values will override the parents |
85 | 85 | $config = array_merge($config, (array) Yaml::parse(file_get_contents($file))); |
86 | 86 | } |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | if (empty($folders)) { |
375 | 375 | return $dir; |
376 | 376 | } |
377 | - $folders = array_filter(array_map(function($path){ |
|
377 | + $folders = array_filter(array_map(function($path) { |
|
378 | 378 | return trim($path, '/'); |
379 | 379 | }, $folders)); |
380 | 380 | |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | if (empty($paths)) { |
420 | 420 | return $base_url; |
421 | 421 | } |
422 | - $paths = array_filter(array_map(function($path){ |
|
422 | + $paths = array_filter(array_map(function($path) { |
|
423 | 423 | return trim($path, '/'); |
424 | 424 | }, $paths)); |
425 | 425 | |
@@ -1288,7 +1288,7 @@ discard block |
||
1288 | 1288 | if (!isset($this->filters[$section])) { |
1289 | 1289 | return $param; |
1290 | 1290 | } |
1291 | - usort($this->filters[$section], function ($a, $b) { |
|
1291 | + usort($this->filters[$section], function($a, $b) { |
|
1292 | 1292 | return $a["order"] - $b["order"]; |
1293 | 1293 | }); |
1294 | 1294 | foreach ($this->filters[$section] as $key => $filter) { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | return $response; |
88 | 88 | } |
89 | 89 | $file = new \SplFileInfo($file); |
90 | - $response = new StreamedResponse(function () use ($file) { |
|
90 | + $response = new StreamedResponse(function() use ($file) { |
|
91 | 91 | if ($fp = fopen($file->getPathname(), 'rb')) { |
92 | 92 | rewind($fp); |
93 | 93 | fpassthru($fp); |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | $array = (is_array($html)) ? $html : false; |
234 | 234 | if ($array) { |
235 | 235 | $html = array(); |
236 | - array_walk_recursive($array, function ($value) use (&$html) { |
|
236 | + array_walk_recursive($array, function($value) use (&$html) { |
|
237 | 237 | $html[] = $value; |
238 | 238 | }); |
239 | 239 | $html = implode(' ', $html); |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | $mime = array('image/gif'); |
360 | 360 | break; |
361 | 361 | case 'png': |
362 | - $mime = array('image/png', 'image/x-png'); |
|
362 | + $mime = array('image/png', 'image/x-png'); |
|
363 | 363 | break; |
364 | 364 | case 'ico': |
365 | 365 | $mime = array('image/x-icon', 'image/vnd.microsoft.icon'); |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | } |
482 | 482 | $rnr = array(); |
483 | 483 | $base = phpUri::parse($row['file']); |
484 | - $common = dirname($row['file']) . '/'; |
|
484 | + $common = dirname($row['file']).'/'; |
|
485 | 485 | foreach ($matches as $match) { |
486 | 486 | if (preg_match('/(?P<file>[^#\?]*)(?P<extra>.*)/', ltrim($match['path'], '/'), $path)) { |
487 | 487 | if (static::mime(pathinfo($path['file'], PATHINFO_EXTENSION))) { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | return Asset::dispatch('xml', array($last_modified => implode("\n", $xml), 'expires' => $expires)); |
179 | 179 | } else { |
180 | - $page->filter('response', function ($page, $response, $type) { |
|
180 | + $page->filter('response', function($page, $response, $type) { |
|
181 | 181 | if ($type == 'html') { |
182 | 182 | $sitemap = new Component(); |
183 | 183 | $sitemap->delete($page->url['path']); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | if ($page->url['format'] != 'html') { |
205 | 205 | return; |
206 | 206 | } |
207 | - $page->filter('response', function ($page, $response) use ($category, $content, $save) { |
|
207 | + $page->filter('response', function($page, $response) use ($category, $content, $save) { |
|
208 | 208 | if (empty($page->url['query'])) { |
209 | 209 | $sitemap = new Component(); |
210 | 210 | $sitemap->upsert($category, array_merge(array( |