Completed
Pull Request — master (#41)
by Vladimir
03:10
created
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/CollectionManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return ContentItem[][]
32 32
      */
33
-    public function &getCollections ()
33
+    public function &getCollections()
34 34
     {
35 35
         return $this->trackedItems;
36 36
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @return ContentItem
46 46
      */
47
-    public function &getContentItem ($filePath)
47
+    public function &getContentItem($filePath)
48 48
     {
49 49
         if (!isset($this->trackedItemsFlattened[$filePath]))
50 50
         {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * {@inheritdoc}
121 121
      */
122
-    public function createNewItem($filePath)
122
+    public function createNewItem ($filePath)
123 123
     {
124 124
         $collection = $this->getTentativeCollectionName($filePath);
125 125
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * {@inheritdoc}
133 133
      */
134
-    public function refreshItem($filePath)
134
+    public function refreshItem ($filePath)
135 135
     {
136 136
         return;
137 137
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     /**
140 140
      * {@inheritdoc}
141 141
      */
142
-    protected function handleTrackableItem($filePath, $options = array())
142
+    protected function handleTrackableItem ($filePath, $options = array())
143 143
     {
144 144
         $collectionName = $options['namespace'];
145 145
 
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/BaseManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * {@inheritdoc}
30 30
      */
31
-    public function setLogger(LoggerInterface $logger)
31
+    public function setLogger (LoggerInterface $logger)
32 32
     {
33 33
         $this->output = $logger;
34 34
     }
Please login to merge, or discard this patch.