Passed
Push — master ( 684267...8cf6a7 )
by Stéphane
25:05
created
libs/Tree/Directory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
     private function sortBucket($bucket, $final)
69 69
     {
70
-        uasort($bucket, function (Entry $a, Entry $b) {
70
+        uasort($bucket, function(Entry $a, Entry $b) {
71 71
             return strcasecmp($a->getName(), $b->getName());
72 72
         });
73 73
 
Please login to merge, or discard this patch.
libs/Format/Base/EmbedImages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         return preg_replace_callback(
27 27
             "/<img\\s+[^>]*src=['\"]([^\"]*)['\"][^>]*>/",
28
-            function ($matches) use ($file, $callback) {
28
+            function($matches) use ($file, $callback) {
29 29
                 if ($result = $this->findImage($matches[1], $matches[0], $file, $callback)) {
30 30
                     return $result;
31 31
                 }
Please login to merge, or discard this patch.
libs/Console/RunAction.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
         $padding = $width - $this->getLength($title) - 10;
20 20
 
21 21
         try {
22
-            $response = $closure(function ($content) use (&$padding, $verbose) {
22
+            $response = $closure(function($content) use (&$padding, $verbose) {
23 23
                 $padding -= $this->getLength($content);
24 24
                 Daux::write($content, $verbose);
25 25
             });
Please login to merge, or discard this patch.
libs/Format/HTMLFile/Generator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->runAction(
54 54
             'Cleaning destination folder ...',
55 55
             $width,
56
-            function () use ($destination) {
56
+            function() use ($destination) {
57 57
                 $this->ensureEmptyDestination($destination);
58 58
             }
59 59
         );
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $this->runAction(
72 72
                 'Generating ' . $current->getTitle(),
73 73
                 $width,
74
-                function () use ($book, $current, $config) {
74
+                function() use ($book, $current, $config) {
75 75
                     $contentType = $this->daux->getContentTypeHandler()->getType($current);
76 76
                     $content = ContentPage::fromFile($current, $config, $contentType);
77 77
                     $content->templateRenderer = $this->templateRenderer;
Please login to merge, or discard this patch.
libs/Format/HTMLFile/ContentPage.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
             ->embed(
18 18
                 $content,
19 19
                 $this->file,
20
-                function ($src, array $attributes, Raw $file) {
20
+                function($src, array $attributes, Raw $file) {
21 21
                     // TODO :: ignore absolute paths
22 22
                     $content = base64_encode(file_get_contents($file->getPath()));
23 23
                     $attr = '';
Please login to merge, or discard this patch.
libs/Format/HTML/Template.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
 
79 79
     protected function registerFunctions($engine)
80 80
     {
81
-        $engine->registerFunction('get_navigation', function ($tree, $path, $current_url, $base_page, $mode) {
81
+        $engine->registerFunction('get_navigation', function($tree, $path, $current_url, $base_page, $mode) {
82 82
             $nav = $this->buildNavigation($tree, $path, $current_url, $base_page, $mode);
83 83
 
84 84
             return $this->renderNavigation($nav);
85 85
         });
86 86
 
87
-        $engine->registerFunction('translate', function ($key) {
87
+        $engine->registerFunction('translate', function($key) {
88 88
             $language = $this->config->getLanguage();
89 89
 
90 90
             if (isset($this->engine->getData('page')['page'])) {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             return "Unknown key $key";
106 106
         });
107 107
 
108
-        $engine->registerFunction('get_breadcrumb_title', function ($page, $base_page) {
108
+        $engine->registerFunction('get_breadcrumb_title', function($page, $base_page) {
109 109
             $title = '';
110 110
             $breadcrumb_trail = $page['breadcrumb_trail'];
111 111
             $separator = $this->getSeparator($page['breadcrumb_separator']);
Please login to merge, or discard this patch.
libs/Format/HTML/Generator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $this->runAction(
59 59
             'Copying Static assets ...',
60 60
             $width,
61
-            function () use ($destination, $config) {
61
+            function() use ($destination, $config) {
62 62
                 $this->ensureEmptyDestination($destination);
63 63
 
64 64
                 $this->copyThemes($destination, $config->getThemesPath());
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 $this->runAction(
167 167
                     '- ' . $node->getUrl(),
168 168
                     $width,
169
-                    function () use ($node, $output_dir, $key, $config, $index_pages) {
169
+                    function() use ($node, $output_dir, $key, $config, $index_pages) {
170 170
                         if ($node instanceof Raw) {
171 171
                             copy($node->getPath(), $output_dir . DIRECTORY_SEPARATOR . $key);
172 172
 
Please login to merge, or discard this patch.
libs/Format/Confluence/Publisher.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         $this->run(
56 56
             'Getting already published pages...',
57
-            function () use (&$published) {
57
+            function() use (&$published) {
58 58
                 if ($published != null) {
59 59
                     $published['children'] = $this->client->getList($published['id'], true);
60 60
                 }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $published = $this->run(
65 65
             'Create placeholder pages...',
66
-            function () use ($tree, $published) {
66
+            function() use ($tree, $published) {
67 67
                 return $this->createRecursive($this->confluence->getAncestorId(), $tree, $published);
68 68
             }
69 69
         );
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
     protected function createRecursive($parent_id, $entry, $published)
145 145
     {
146
-        $callback = function ($parent_id, $entry, $published) {
146
+        $callback = function($parent_id, $entry, $published) {
147 147
             // nothing to do if the ID already exists
148 148
             if (array_key_exists('id', $published)) {
149 149
                 return $published;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
     protected function updateRecursive($parent_id, $entry, $published)
166 166
     {
167
-        $callback = function ($parent_id, $entry, $published) {
167
+        $callback = function($parent_id, $entry, $published) {
168 168
             if (array_key_exists('id', $published) && array_key_exists('page', $entry)) {
169 169
                 $this->updatePage($parent_id, $entry, $published);
170 170
             }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
         $this->run(
184 184
             '- ' . PublisherUtilities::niceTitle($entry['file']->getUrl()),
185
-            function () use ($entry, $published, $parent_id, $updateThreshold) {
185
+            function() use ($entry, $published, $parent_id, $updateThreshold) {
186 186
                 $generated_content = $entry['page']->getContent();
187 187
                 if (PublisherUtilities::shouldUpdate($entry['page'], $generated_content, $published, $updateThreshold)) {
188 188
                     $this->client->updatePage(
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             foreach ($entry['page']->attachments as $attachment) {
201 201
                 $this->run(
202 202
                     "  With attachment: $attachment[filename]",
203
-                    function ($write) use ($published, $attachment) {
203
+                    function($write) use ($published, $attachment) {
204 204
                         $this->client->uploadAttachment($published['id'], $attachment, $write);
205 205
                     }
206 206
                 );
Please login to merge, or discard this patch.
libs/Format/Confluence/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $tree = $this->runAction(
78 78
             'Generating Tree ...',
79 79
             $width,
80
-            function () use ($config) {
80
+            function() use ($config) {
81 81
                 $tree = $this->generateRecursive($this->daux->tree, $config);
82 82
                 $tree['title'] = $this->prefix . $config->getTitle();
83 83
 
Please login to merge, or discard this patch.