@@ -203,7 +203,8 @@ |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | if (strpos($haystack, $query, $offset) !== false) |
206 | - { // stop on first true result |
|
206 | + { |
|
207 | +// stop on first true result |
|
207 | 208 | return true; |
208 | 209 | } |
209 | 210 | } |
@@ -18,7 +18,8 @@ |
||
18 | 18 | |
19 | 19 | public function filter($in, $out, &$consumed, $closing) |
20 | 20 | { |
21 | - while ($bucket = stream_bucket_make_writeable($in)) { |
|
21 | + while ($bucket = stream_bucket_make_writeable($in)) |
|
22 | + { |
|
22 | 23 | self::$output .= $bucket->data; |
23 | 24 | $consumed += $bucket->datalen; |
24 | 25 | } |
@@ -84,7 +84,8 @@ |
||
84 | 84 | { |
85 | 85 | $results = array(); |
86 | 86 | |
87 | - foreach ($elements as $element) { |
|
87 | + foreach ($elements as $element) |
|
88 | + { |
|
88 | 89 | $filename = (isset($element['filename'])) ? $element['filename'] : hash('sha256', uniqid(mt_rand(), true), false); |
89 | 90 | $frontMatter = (empty($element['frontmatter'])) ? '' : Yaml::dump($element['frontmatter'], 2); |
90 | 91 | $body = (isset($element['body'])) ? $element['body'] : 'Body Text'; |