Completed
Push — master ( 4e7200...c701d8 )
by Vladimir
02:43
created
src/allejo/stakx/System/FileExplorer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * A bitwise flag to have FileExplorer search files starting with a period as well
22 22
      */
23
-    const ALLOW_DOT_FILES    = 0x2;
23
+    const ALLOW_DOT_FILES = 0x2;
24 24
 
25 25
     /**
26 26
      * A list of common version control folders to ignore.
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @var string[]
38 38
      */
39
-    public static $vcsPatterns =  array('.git', '.hg', '.svn', '_svn');
39
+    public static $vcsPatterns = array('.git', '.hg', '.svn', '_svn');
40 40
 
41 41
     /**
42 42
      * A list of phrases to exclude from the search
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param array              $includes
68 68
      * @param int|null           $flags
69 69
      */
70
-    public function __construct(\RecursiveIterator $iterator, array $excludes = array(), array $includes = array(), $flags = null)
70
+    public function __construct (\RecursiveIterator $iterator, array $excludes = array(), array $includes = array(), $flags = null)
71 71
     {
72 72
         parent::__construct($iterator);
73 73
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     /**
80 80
      * @return string
81 81
      */
82
-    public function __toString()
82
+    public function __toString ()
83 83
     {
84 84
         return $this->current()->getFilename();
85 85
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      *
106 106
      * @return SplFileInfo
107 107
      */
108
-    public function current()
108
+    public function current ()
109 109
     {
110 110
         /** @var \SplFileInfo $current */
111 111
         $current = parent::current();
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     /**
121 121
      * {@inheritdoc}
122 122
      */
123
-    public function getChildren()
123
+    public function getChildren ()
124 124
     {
125 125
         return (new self(
126 126
             $this->getInnerIterator()->getChildren(),
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 1 patch
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.
src/allejo/stakx/Twig/TextExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function getFilters ()
21 21
     {
22 22
         return array(
23
-            new Twig_SimpleFilter('summary',  'twig_summary_filter'),
23
+            new Twig_SimpleFilter('summary', 'twig_summary_filter'),
24 24
             new Twig_SimpleFilter('truncate', 'twig_truncate_filter', array('needs_environment' => true)),
25 25
             new Twig_SimpleFilter('wordwrap', 'twig_wordwrap_filter', array('needs_environment' => true)),
26 26
         );
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $length = $breakpoint;
74 74
         }
75 75
 
76
-        return rtrim(mb_substr($value, 0, $length, $env->getCharset())).$separator;
76
+        return rtrim(mb_substr($value, 0, $length, $env->getCharset())) . $separator;
77 77
     }
78 78
 
79 79
     return $value;
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/WhereFilter.php 1 patch
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.
src/allejo/stakx/Manager/TrackingManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     protected $tracking;
82 82
 
83
-    public function __construct()
83
+    public function __construct ()
84 84
     {
85 85
         parent::__construct();
86 86
 
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/TwigManager.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
      */
18 18
     private static $twig;
19 19
 
20
-    public static function &getInstance ()
20
+    public static function &getInstance()
21 21
     {
22 22
         return self::$twig;
23 23
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/ThemeManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * {@inheritdoc}
52 52
      */
53
-    public function refreshItem($filePath)
53
+    public function refreshItem ($filePath)
54 54
     {
55 55
         $relativeFilePath = str_replace($this->themeFolderRelative . '/', '', $filePath);
56 56
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * {@inheritdoc}
62 62
      */
63
-    public function isHandled($filePath)
63
+    public function isHandled ($filePath)
64 64
     {
65 65
         $isThemeAsset = (substr($filePath, 0, strlen($this->themeFolderRelative)) === $this->themeFolderRelative);
66 66
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * {@inheritdoc}
72 72
      */
73
-    public function createNewItem($filePath)
73
+    public function createNewItem ($filePath)
74 74
     {
75 75
         $relativeFilePath = str_replace($this->themeFolderRelative . '/', '', $filePath);
76 76
 
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/PageManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     /**
59 59
      * PageManager constructor
60 60
      */
61
-    public function __construct()
61
+    public function __construct ()
62 62
     {
63 63
         parent::__construct();
64 64
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     /**
229 229
      * {@inheritdoc}
230 230
      */
231
-    public function isTracked($filePath)
231
+    public function isTracked ($filePath)
232 232
     {
233 233
         return (parent::isTracked($filePath) || isset($this->twigExtendsDeps[$filePath]));
234 234
     }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     /**
237 237
      * {@inheritdoc}
238 238
      */
239
-    public function refreshItem($filePath)
239
+    public function refreshItem ($filePath)
240 240
     {
241 241
         if (parent::isTracked($filePath))
242 242
         {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     /**
257 257
      * {@inheritdoc}
258 258
      */
259
-    protected function handleTrackableItem($filePath, $options = array())
259
+    protected function handleTrackableItem ($filePath, $options = array())
260 260
     {
261 261
         $pageView  = PageView::create($filePath);
262 262
         $namespace = $pageView->getType();
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
         {
535 535
             $filePath = $this->fs->getRelativePath($parent->getSourceContext()->getPath());
536 536
 
537
-            $this->twigExtendsDeps[$filePath][(string)$pageView->getFilePath()] = &$pageView;
537
+            $this->twigExtendsDeps[$filePath][(string) $pageView->getFilePath()] = &$pageView;
538 538
             $parent = $parent->getParent(array());
539 539
         }
540 540
     }
Please login to merge, or discard this patch.