Completed
Pull Request — master (#41)
by Vladimir
02:29
created
src/allejo/stakx/Object/RepeaterPageView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * {@inheritdoc}
21 21
      */
22
-    public function __construct($filePath)
22
+    public function __construct ($filePath)
23 23
     {
24 24
         parent::__construct($filePath);
25 25
 
Please login to merge, or discard this patch.
src/allejo/stakx/Object/ContentItem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $this->bodyContentEvaluated = true;
59 59
         }
60 60
 
61
-        return (string)$this->bodyContent;
61
+        return (string) $this->bodyContent;
62 62
     }
63 63
 
64 64
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @return PageView
105 105
      */
106
-    public function &getPageView ()
106
+    public function &getPageView()
107 107
     {
108 108
         return $this->parentPageView;
109 109
     }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * {@inheritdoc}
128 128
      */
129
-    public function jsonSerialize()
129
+    public function jsonSerialize ()
130 130
     {
131 131
         return array_merge($this->getFrontMatter(), array(
132 132
             'content' => $this->getContent(),
Please login to merge, or discard this patch.
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.