Completed
Push — master ( a6c8f9...b97be3 )
by Vladimir
03:52 queued 19s
created
src/allejo/stakx/Twig/SelectFilter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,9 @@
 block discarded – undo
54 54
     private static function flatten(array $array)
55 55
     {
56 56
         $return = array();
57
-        array_walk_recursive($array, function($a) use (&$return) { $return[] = $a; });
57
+        array_walk_recursive($array, function($a) use (&$return)
58
+        {
59
+$return[] = $a; });
58 60
         return $return;
59 61
     }
60 62
 }
61 63
\ No newline at end of file
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/TableOfContentsFilter.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,14 +55,20 @@
 block discarded – undo
55 55
 
56 56
             $headingID = $heading->attributes->getNamedItem('id');
57 57
 
58
-            if ($curr > $last) // If the current level is greater than the last level indent one level
58
+            if ($curr > $last)
59
+            {
60
+                // If the current level is greater than the last level indent one level
59 61
             {
60 62
                 $toc .= '<ul>';
61 63
             }
62
-            elseif ($curr < $last) // If the current level is less than the last level go up appropriate amount.
64
+            }
65
+            elseif ($curr < $last)
66
+            {
67
+                // If the current level is less than the last level go up appropriate amount.
63 68
             {
64 69
                 $toc .= str_repeat('</li></ul>', $last - $curr) . '</li>';
65 70
             }
71
+            }
66 72
             else // If the current level is equal to the last.
67 73
             {
68 74
                 $toc .= '</li>';
Please login to merge, or discard this patch.
src/allejo/stakx/Filesystem/FileExplorer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,8 @@
 block discarded – undo
203 203
             }
204 204
 
205 205
             if (strpos($haystack, $query, $offset) !== false)
206
-            { // stop on first true result
206
+            {
207
+// stop on first true result
207 208
                 return true;
208 209
             }
209 210
         }
Please login to merge, or discard this patch.
src/allejo/stakx/Utilities/ArrayUtilities.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
      */
21 21
     public static function array_safe_get(array $array, $key, $default = null)
22 22
     {
23
-        if (isset($array[$key])) {
23
+        if (isset($array[$key]))
24
+        {
24 25
             return $array[$key];
25 26
         }
26 27
 
Please login to merge, or discard this patch.
src/allejo/stakx/EventSubscriber/PageViewsCompletedSubscriber.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,13 +41,15 @@
 block discarded – undo
41 41
         $twig->setGlobalVariable('site', $this->container->get(Configuration::class)->getconfiguration());
42 42
 
43 43
         $dataItems = [];
44
-        if ($this->container->has(DataManager::class)) {
44
+        if ($this->container->has(DataManager::class))
45
+        {
45 46
             $dataItems = $this->container->get(DataManager::class)->getJailedDataItems();
46 47
         }
47 48
         $twig->setGlobalVariable('data', $dataItems);
48 49
 
49 50
         $collectionItems = [];
50
-        if ($this->container->has(CollectionManager::class)) {
51
+        if ($this->container->has(CollectionManager::class))
52
+        {
51 53
             $collectionItems = $this->container->get(CollectionManager::class)->getJailedCollections();
52 54
         }
53 55
         $twig->setGlobalVariable('collections', $collectionItems);
Please login to merge, or discard this patch.
src/allejo/stakx/DataTransformer/JsonTransformer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,8 @@
 block discarded – undo
16 16
     {
17 17
         $data = json_decode($content, true);
18 18
 
19
-        if ($data === null) {
19
+        if ($data === null)
20
+        {
20 21
             return [];
21 22
         }
22 23
 
Please login to merge, or discard this patch.
src/allejo/stakx/Templating/TwigTemplate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,8 @@
 block discarded – undo
31 31
     {
32 32
         $parent = $this->template->getParent([]);
33 33
 
34
-        if ($parent === false) {
34
+        if ($parent === false)
35
+        {
35 36
             return false;
36 37
         }
37 38
 
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/DataManager.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,8 @@
 block discarded – undo
63 63
      */
64 64
     public function getJailedDataItems()
65 65
     {
66
-        return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem) {
66
+        return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem)
67
+        {
67 68
             return $dataItem->getBasename();
68 69
         });
69 70
     }
Please login to merge, or discard this patch.