Completed
Pull Request — master (#41)
by Vladimir
02:38
created
src/allejo/stakx/Object/PageView.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * {@inheritdoc}
42 42
      */
43
-    public function __construct($filePath)
43
+    public function __construct ($filePath)
44 44
     {
45 45
         parent::__construct($filePath);
46 46
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @return PageView[]
88 88
      */
89
-    public function &getChildren ()
89
+    public function &getChildren()
90 90
     {
91 91
         return $this->children;
92 92
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             self::$fileSys = new Filesystem();
170 170
         }
171 171
 
172
-        $frontMatter  = array(
172
+        $frontMatter = array(
173 173
             'permalink' => $redirectFrom,
174 174
             'redirect'  => $redirectTo,
175 175
             'menu' => false
Please login to merge, or discard this patch.
src/allejo/stakx/Utilities/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.
src/allejo/stakx/Engines/Markdown/MarkdownEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         $this->highlighter = new Highlighter();
14 14
     }
15 15
 
16
-    protected function blockHeader($line)
16
+    protected function blockHeader ($line)
17 17
     {
18 18
         $Block = parent::blockHeader($line);
19 19
 
Please login to merge, or discard this patch.
src/allejo/stakx/Engines/PlainTextEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
 class PlainTextEngine implements ParsingEngine
11 11
 {
12
-    public function parse($context)
12
+    public function parse ($context)
13 13
     {
14 14
         return $context;
15 15
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Engines/ParsingEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
4 4
 
5 5
 interface ParsingEngine
6 6
 {
7
-    public function parse($context);
7
+    public function parse ($context);
8 8
 }
9 9
\ No newline at end of file
Please login to merge, or discard this patch.
src/allejo/stakx/Exception/FileAwareException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     private $lineNumber;
18 18
     private $filePath;
19 19
 
20
-    public function __construct($message = "", $code = 0, \Exception $previous = null, $path = "", $line = -1)
20
+    public function __construct ($message = "", $code = 0, \Exception $previous = null, $path = "", $line = -1)
21 21
     {
22 22
         parent::__construct($message, $code, $previous);
23 23
 
Please login to merge, or discard this patch.
src/allejo/stakx/Core/StakxLogger.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
      *
141 141
      * @return string
142 142
      */
143
-    private function interpolate($message, array $context)
143
+    private function interpolate ($message, array $context)
144 144
     {
145 145
         // build a replacement array with braces around the context keys
146 146
         $replace = array();
Please login to merge, or discard this 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/allejo/stakx/Twig/GroupByFilter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
10 10
 
11 11
         foreach ($array as $key => $item)
12 12
         {
13
-            if (!isset($item[$sortKey])) { continue; }
13
+            if (!isset($item[$sortKey]))
14
+            {
15
+continue; }
14 16
 
15 17
             $groupBy = $item[$sortKey];
16 18
 
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/WhereFilter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
 
137 137
         if ($array->coreInstanceOf(FrontMatterObject::class) && !isset($array[$key]))
138 138
         {
139
-            if ($comparison == '==' && is_null($value))  { return true; }
139
+            if ($comparison == '==' && is_null($value)) { return true; }
140 140
             if ($comparison == '!=' && !is_null($value)) { return true; }
141 141
         }
142 142
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,12 @@
 block discarded – undo
136 136
 
137 137
         if ($array->coreInstanceOf(FrontMatterObject::class) && !isset($array[$key]))
138 138
         {
139
-            if ($comparison == '==' && is_null($value))  { return true; }
140
-            if ($comparison == '!=' && !is_null($value)) { return true; }
139
+            if ($comparison == '==' && is_null($value))
140
+            {
141
+return true; }
142
+            if ($comparison == '!=' && !is_null($value))
143
+            {
144
+return true; }
141 145
         }
142 146
 
143 147
         return false;
Please login to merge, or discard this patch.