Completed
Push — master ( 1b20ea...0b748b )
by Vladimir
02:26
created
src/Manager/DataManager.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,9 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function parseDataItems ($folders)
66 66
     {
67
-        if ($folders === null) { return; }
67
+        if ($folders === null)
68
+        {
69
+return; }
68 70
 
69 71
         foreach ($folders as $folder)
70 72
         {
@@ -84,7 +86,9 @@  discard block
 block discarded – undo
84 86
      */
85 87
     public function parseDataSets ($dataSets)
86 88
     {
87
-        if ($dataSets === null) { return; }
89
+        if ($dataSets === null)
90
+        {
91
+return; }
88 92
 
89 93
         /**
90 94
          * The information which each DataSet has from the configuration file
Please login to merge, or discard this patch.
src/Engines/Markdown/MarkdownEngine.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,9 @@
 block discarded – undo
25 25
                 $highlighted = $this->highlighter->highlight($language, $block['element']['text']['text']);
26 26
                 $block['element']['text']['text'] = $highlighted->value;
27 27
             }
28
-            catch (\DomainException $exception) {}
28
+            catch (\DomainException $exception)
29
+            {
30
+}
29 31
         }
30 32
 
31 33
         return $block;
Please login to merge, or discard this patch.
src/Object/ContentItem.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,10 +177,13 @@
 block discarded – undo
177 177
                     break;
178 178
             }
179 179
 
180
-            if (!is_null($pd)) // No parser needed
180
+            if (!is_null($pd))
181
+            {
182
+                // No parser needed
181 183
             {
182 184
                 $this->bodyContent = $pd->parse($this->bodyContent);
183 185
             }
186
+            }
184 187
 
185 188
             $this->bodyContentEvaluated = true;
186 189
         }
Please login to merge, or discard this patch.
src/System/FileSystem.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,9 @@
 block discarded – undo
76 76
             while (false !== $entry = $dir->read())
77 77
             {
78 78
                 // Skip pointers
79
-                if ($entry == '.' || $entry == '..') { continue; }
79
+                if ($entry == '.' || $entry == '..')
80
+                {
81
+continue; }
80 82
 
81 83
                 $this->copy("$originFile/$entry", "$targetFile/$entry", true);
82 84
             }
Please login to merge, or discard this patch.
src/Manager/AssetManager.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,9 @@
 block discarded – undo
37 37
      */
38 38
     protected function copyToCompiledSite ($file, $prefix = "")
39 39
     {
40
-        if (!$this->fs->exists($file)) { return; }
40
+        if (!$this->fs->exists($file))
41
+        {
42
+return; }
41 43
 
42 44
         $filePath = $file->getRealPath();
43 45
         $pathToStrip = $this->fs->appendPath(getcwd(), $prefix);
Please login to merge, or discard this patch.
src/Manager/PageManager.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@  discard block
 block discarded – undo
46 46
 
47 47
     public function setCollections ($collections)
48 48
     {
49
-        if (empty($collections)) { return; }
49
+        if (empty($collections))
50
+        {
51
+return; }
50 52
 
51 53
         $this->collections = $collections;
52 54
     }
@@ -85,7 +87,9 @@  discard block
 block discarded – undo
85 87
      */
86 88
     public function parsePageViews ($pageViewFolders)
87 89
     {
88
-        if (empty($pageViewFolders)) { return; }
90
+        if (empty($pageViewFolders))
91
+        {
92
+return; }
89 93
 
90 94
         /**
91 95
          * The name of the folder where PageViews are located
Please login to merge, or discard this patch.
src/Object/Website.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,8 @@
 block discarded – undo
182 182
 
183 183
         $this->output->notice('Watch started successfully');
184 184
 
185
-        $listener->onAnything(function (Event $event, FileResource $resouce, $path) use ($targetPath) {
185
+        $listener->onAnything(function (Event $event, FileResource $resouce, $path) use ($targetPath)
186
+        {
186 187
             $filePath = $this->fs->getRelativePath($path);
187 188
 
188 189
             if ((substr($filePath, 0, strlen($targetPath)) === $targetPath) ||
Please login to merge, or discard this patch.
src/Core/StakxLogger.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,8 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function log ($level, $message, array $context = array())
95 95
     {
96
-        if (!isset($this->verbosityLevelMap[$level])) {
96
+        if (!isset($this->verbosityLevelMap[$level]))
97
+        {
97 98
             throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $level));
98 99
         }
99 100
 
@@ -144,8 +145,10 @@  discard block
 block discarded – undo
144 145
     {
145 146
         // build a replacement array with braces around the context keys
146 147
         $replace = array();
147
-        foreach ($context as $key => $val) {
148
-            if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) {
148
+        foreach ($context as $key => $val)
149
+        {
150
+            if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString')))
151
+            {
149 152
                 $replace[sprintf('{%s}', $key)] = $val;
150 153
             }
151 154
         }
Please login to merge, or discard this patch.
src/Utlities/ArrayUtilities.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,9 @@
 block discarded – undo
9 9
         foreach ($array as $element)
10 10
         {
11 11
             if (is_array($element))
12
-                return true;
12
+            {
13
+                            return true;
14
+            }
13 15
         }
14 16
 
15 17
         return false;
Please login to merge, or discard this patch.