Completed
Pull Request — master (#48)
by Vladimir
03:15
created
src/allejo/stakx/System/FileExplorer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,8 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
tests/allejo/stakx/Test/StreamInterceptor.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
tests/allejo/stakx/Test/PHPUnit_Stakx_TestCase.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,8 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/allejo/stakx/Website.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,8 +218,12 @@
 block discarded – undo
218 218
                 $exclusions, FileExplorer::$vcsPatterns, array(Configuration::CACHE_FOLDER)
219 219
             ))
220 220
             ->setIterator($fileExplorer->getExplorer())
221
-            ->addListener(Create::NAME, function ($e) { $this->watchListenerFunction($e); })
222
-            ->addListener(Modify::NAME, function ($e) { $this->watchListenerFunction($e); })
221
+            ->addListener(Create::NAME, function ($e)
222
+            {
223
+$this->watchListenerFunction($e); })
224
+            ->addListener(Modify::NAME, function ($e)
225
+            {
226
+$this->watchListenerFunction($e); })
223 227
         ;
224 228
 
225 229
         $this->output->writeln('Watch started successfully');
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/CollectionManager.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,9 @@
 block discarded – undo
69 69
          */
70 70
         foreach ($this->trackedItemsFlattened as &$item)
71 71
         {
72
-            if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item['draft']) { continue; }
72
+            if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item['draft'])
73
+            {
74
+continue; }
73 75
 
74 76
             $jailItems[$item->getNamespace()][$item->getName()] = $item->createJail();
75 77
         }
Please login to merge, or discard this patch.