Passed
Push — master ( b00485...b911e4 )
by Goffy
03:26
created
index.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@  discard block
 block discarded – undo
28 28
     Github\GithubClient
29 29
 };
30 30
 
31
-require __DIR__ . '/header.php';
31
+require __DIR__.'/header.php';
32 32
 $GLOBALS['xoopsOption']['template_main'] = 'wggithub_index.tpl';
33
-include_once \XOOPS_ROOT_PATH . '/header.php';
33
+include_once \XOOPS_ROOT_PATH.'/header.php';
34 34
 
35 35
 // Permissions
36 36
 $permGlobalView = $permissionsHandler->getPermGlobalView();
37 37
 if (!$permGlobalView) {
38 38
     $GLOBALS['xoopsTpl']->assign('error', _NOPERM);
39
-    require __DIR__ . '/footer.php';
39
+    require __DIR__.'/footer.php';
40 40
 }
41 41
 $permGlobalRead   = $permissionsHandler->getPermGlobalRead();
42 42
 $permReadmeUpdate = $permissionsHandler->getPermReadmeUpdate();
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 // Define Stylesheet
52 52
 $GLOBALS['xoTheme']->addStylesheet($style, null);
53
-$GLOBALS['xoTheme']->addStylesheet(WGGITHUB_URL . '/assets/css/tabs.css', null);
53
+$GLOBALS['xoTheme']->addStylesheet(WGGITHUB_URL.'/assets/css/tabs.css', null);
54 54
 $keywords = [];
55 55
 // 
56 56
 $GLOBALS['xoopsTpl']->assign('xoops_icons32_url', XOOPS_ICONS32_URL);
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         }
116 116
         unset($crLogs);
117 117
 
118
-        $menu  = Request::getInt('menu', 0);
118
+        $menu = Request::getInt('menu', 0);
119 119
 
120 120
         $crDirectories = new \CriteriaCompo();
121 121
         $crDirectories->add(new \Criteria('dir_online', 1));
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             foreach (\array_keys($directoriesAll) as $i) {
131 131
                 $directories[$i] = $directoriesAll[$i]->getValuesDirectories();
132 132
                 $dirName = $directoriesAll[$i]->getVar('dir_name');
133
-                $dirFilterRelease = (bool)$directoriesAll[$i]->getVar('dir_filterrelease');
133
+                $dirFilterRelease = (bool) $directoriesAll[$i]->getVar('dir_filterrelease');
134 134
                 $repos = [];
135 135
                 $crRepositories = new \CriteriaCompo();
136 136
                 //first block/parentheses
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 $crRepo2->add(new Criteria('repo_status', Constants::STATUS_UPTODATE), 'OR');
144 144
                 $crRepositories->add($crRepo2);
145 145
                 //third
146
-                $autoApproved = (int)$helper->getConfig('autoapproved');
146
+                $autoApproved = (int) $helper->getConfig('autoapproved');
147 147
                 if (!$autoApproved) {
148 148
                     //third
149 149
                     $crRepo3 = new CriteriaCompo();
@@ -222,9 +222,9 @@  discard block
 block discarded – undo
222 222
                 }
223 223
                 $directories[$i]['repos'] = $repos;
224 224
                 $directories[$i]['previousRepos'] = $dirStart[$i] > 0;
225
-                $directories[$i]['previousOp'] = '&dirId=' . $i . '&start=' . ($dirStart[$i] - $dirLimit[$i]) . '&limit=' . $dirLimit[$i] . '&release=' . $filterRelease . '&sortby=' . $filterSortby;
225
+                $directories[$i]['previousOp'] = '&dirId='.$i.'&start='.($dirStart[$i] - $dirLimit[$i]).'&limit='.$dirLimit[$i].'&release='.$filterRelease.'&sortby='.$filterSortby;
226 226
                 $directories[$i]['nextRepos'] = ($repositoriesCount - $dirStart[$i]) > $dirLimit[$i];
227
-                $directories[$i]['nextOp'] = '&dirId=' . $i . '&start=' . ($dirStart[$i] + $dirLimit[$i]) . '&limit=' . $dirLimit[$i] . '&release=' . $filterRelease . '&sortby=' . $filterSortby;
227
+                $directories[$i]['nextOp'] = '&dirId='.$i.'&start='.($dirStart[$i] + $dirLimit[$i]).'&limit='.$dirLimit[$i].'&release='.$filterRelease.'&sortby='.$filterSortby;
228 228
                 $GLOBALS['xoopsTpl']->assign('menu', $menu);
229 229
                 $GLOBALS['xoopsTpl']->assign('directories', $directories);
230 230
             }
@@ -242,10 +242,10 @@  discard block
 block discarded – undo
242 242
         // Permissions
243 243
         if (!$permGlobalRead) {
244 244
             $GLOBALS['xoopsTpl']->assign('error', \_NOPERM);
245
-            require __DIR__ . '/footer.php';
245
+            require __DIR__.'/footer.php';
246 246
         }
247 247
         $dirName = Request::getString('dir_name', '');
248
-        $redir   = 'index.php?op=list_afterupdate&release=' . $filterRelease . '&sortby=' . $filterSortby;
248
+        $redir   = 'index.php?op=list_afterupdate&release='.$filterRelease.'&sortby='.$filterSortby;
249 249
         $githubClient = GithubClient::getInstance();
250 250
         $result = $githubClient->executeUpdate($dirName);
251 251
         if ($result) {
@@ -259,12 +259,12 @@  discard block
 block discarded – undo
259 259
         // Permissions
260 260
         if (!$permReadmeUpdate) {
261 261
             $GLOBALS['xoopsTpl']->assign('error', \_NOPERM);
262
-            require __DIR__ . '/footer.php';
262
+            require __DIR__.'/footer.php';
263 263
         }
264 264
         $repoId   = Request::getInt('repo_id', 0);
265 265
         $repoUser = Request::getString('repo_user', 'none');
266 266
         $repoName = Request::getString('repo_name', 'none');
267
-        $redir    = 'index.php?op=list_afterupdate&release=' . $filterRelease . '&sortby=' . $filterSortby;
267
+        $redir    = 'index.php?op=list_afterupdate&release='.$filterRelease.'&sortby='.$filterSortby;
268 268
         $result = $helper->getHandler('Readmes')->updateReadmes($repoId, $repoUser, $repoName);
269 269
         if ($result) {
270 270
             \redirect_header($redir, 2, \_MA_WGGITHUB_READGH_SUCCESS);
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         }
274 274
         break;
275 275
     case 'api_error':
276
-        $error = Request::getString('message') . '<br>' . Request::getString('url');
276
+        $error = Request::getString('message').'<br>'.Request::getString('url');
277 277
         $GLOBALS['xoopsTpl']->assign('error', $error);
278 278
         break;
279 279
 }
@@ -282,11 +282,11 @@  discard block
 block discarded – undo
282 282
 // Breadcrumbs
283 283
 $xoBreadcrumbs[] = ['title' => \_MA_WGGITHUB_INDEX];
284 284
 // Keywords
285
-wggithubMetaKeywords($helper->getConfig('keywords') . ', ' . \implode(',', $keywords));
285
+wggithubMetaKeywords($helper->getConfig('keywords').', '.\implode(',', $keywords));
286 286
 unset($keywords);
287 287
 // Description
288 288
 wggithubMetaDescription(\_MA_WGGITHUB_INDEX_DESC);
289 289
 $GLOBALS['xoopsTpl']->assign('xoops_mpageurl', WGGITHUB_URL.'/index.php');
290 290
 $GLOBALS['xoopsTpl']->assign('xoops_icons32_url', XOOPS_ICONS32_URL);
291 291
 $GLOBALS['xoopsTpl']->assign('wggithub_upload_url', WGGITHUB_UPLOAD_URL);
292
-require __DIR__ . '/footer.php';
292
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 use Xmf\Request;
24 24
 use XoopsModules\Wggithub\Common;
25 25
 
26
-include_once \dirname(__DIR__) . '/preloads/autoloader.php';
27
-require __DIR__ . '/header.php';
26
+include_once \dirname(__DIR__).'/preloads/autoloader.php';
27
+require __DIR__.'/header.php';
28 28
 
29 29
 // Template Index
30 30
 $templateMain = 'wggithub_admin_index.tpl';
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
 // InfoBox Statistics
46 46
 $adminObject->addInfoBox(\_AM_WGGITHUB_STATISTICS);
47 47
 // Info elements
48
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . \_AM_WGGITHUB_THEREARE_SETTINGS . '</label>', $countSettings));
49
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . \_AM_WGGITHUB_THEREARE_DIRECTORIES . '</label>', $countDirectories));
50
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . \_AM_WGGITHUB_THEREARE_LOGS . '</label>', $countLogs));
51
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . \_AM_WGGITHUB_THEREARE_REPOSITORIES . '</label>', $countRepositories));
52
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . \_AM_WGGITHUB_THEREARE_READMES . '</label>', $countReadmes));
53
-$adminObject->addInfoBoxLine(\sprintf( '<label>' . \_AM_WGGITHUB_THEREARE_RELEASES . '</label>', $countReleases));
48
+$adminObject->addInfoBoxLine(\sprintf('<label>'.\_AM_WGGITHUB_THEREARE_SETTINGS.'</label>', $countSettings));
49
+$adminObject->addInfoBoxLine(\sprintf('<label>'.\_AM_WGGITHUB_THEREARE_DIRECTORIES.'</label>', $countDirectories));
50
+$adminObject->addInfoBoxLine(\sprintf('<label>'.\_AM_WGGITHUB_THEREARE_LOGS.'</label>', $countLogs));
51
+$adminObject->addInfoBoxLine(\sprintf('<label>'.\_AM_WGGITHUB_THEREARE_REPOSITORIES.'</label>', $countRepositories));
52
+$adminObject->addInfoBoxLine(\sprintf('<label>'.\_AM_WGGITHUB_THEREARE_READMES.'</label>', $countReadmes));
53
+$adminObject->addInfoBoxLine(\sprintf('<label>'.\_AM_WGGITHUB_THEREARE_RELEASES.'</label>', $countReleases));
54 54
 
55 55
 // Upload Folders
56 56
 $configurator = new Common\Configurator();
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
 // Test Data
71 71
 if ($helper->getConfig('displaySampleButton')) {
72 72
     \xoops_loadLanguage('admin/modulesadmin', 'system');
73
-    include_once \dirname(__DIR__) . '/testdata/index.php';
74
-    $adminObject->addItemButton(\constant('CO_' . $moduleDirNameUpper . '_ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
75
-    $adminObject->addItemButton(\constant('CO_' . $moduleDirNameUpper . '_SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
73
+    include_once \dirname(__DIR__).'/testdata/index.php';
74
+    $adminObject->addItemButton(\constant('CO_'.$moduleDirNameUpper.'_ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
75
+    $adminObject->addItemButton(\constant('CO_'.$moduleDirNameUpper.'_SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
76 76
 //    $adminObject->addItemButton(\constant('CO_' . $moduleDirNameUpper . '_EXPORT_SCHEMA'), '__DIR__ . /../../testdata/index.php?op=exportschema', 'add');
77 77
     $adminObject->displayButton('left');
78 78
 }
79 79
 $GLOBALS['xoopsTpl']->assign('index', $adminObject->displayIndex());
80 80
 // End Test Data
81
-require __DIR__ . '/footer.php';
81
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
class/Github/GithubClient.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     public function testApi1($url) {
83 83
         $api = new Github\Api;
84
-        $response = $api->get(static::BASE_URL . $url);
84
+        $response = $api->get(static::BASE_URL.$url);
85 85
         $data = $api->decode($response);
86 86
         
87 87
         return $data;
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         $token = new Github\OAuth\Token('{myKey}', 'bearer', ['repo', 'user', 'public_repo']);
94 94
         $api->setToken($token);
95
-        $response = $api->get(static::BASE_URL . $url);
95
+        $response = $api->get(static::BASE_URL.$url);
96 96
 
97 97
         $data = $api->decode($response);
98 98
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getUserRepositories($username, $per_page = 100, $page = 1)
119 119
     {
120
-        $url = static::BASE_URL . 'users/' . \rawurlencode($username) . '/repos?per_page=' . $per_page . '&page=' . $page;
120
+        $url = static::BASE_URL.'users/'.\rawurlencode($username).'/repos?per_page='.$per_page.'&page='.$page;
121 121
 
122 122
         return $this->_get($url);
123 123
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function getOrgRepositories($org, $per_page = 100, $page = 1)
134 134
     {
135
-        $url = static::BASE_URL . 'orgs/' . \rawurlencode($org) . '/repos?per_page=' . $per_page . '&page=' . $page;
135
+        $url = static::BASE_URL.'orgs/'.\rawurlencode($org).'/repos?per_page='.$per_page.'&page='.$page;
136 136
 
137 137
         return $this->_get($url);
138 138
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function getReadme($username, $repository)
148 148
     {
149
-        $url = static::BASE_URL . 'repos/' . \rawurlencode($username) . '/' . \rawurlencode($repository) . '/readme';
149
+        $url = static::BASE_URL.'repos/'.\rawurlencode($username).'/'.\rawurlencode($repository).'/readme';
150 150
 
151 151
         return $this->_get($url, true);
152 152
     }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function getReleases($username, $repository)
162 162
     {
163
-        $url = static::BASE_URL . 'repos/' . $username . '/' . $repository . '/releases';
163
+        $url = static::BASE_URL.'repos/'.$username.'/'.$repository.'/releases';
164 164
 
165 165
         return $this->_get($url, true);
166 166
     }
@@ -177,9 +177,9 @@  discard block
 block discarded – undo
177 177
     {
178 178
         //function currently not used
179 179
         if ($prerelease) {
180
-            $url = static::BASE_URL . 'repos/' . $username . '/' . $repository . '/releases';
180
+            $url = static::BASE_URL.'repos/'.$username.'/'.$repository.'/releases';
181 181
         } else {
182
-            $url = static::BASE_URL . 'repos/' . $username . '/' . $repository . '/releases/latest';
182
+            $url = static::BASE_URL.'repos/'.$username.'/'.$repository.'/releases/latest';
183 183
         }
184 184
         $result = $this->_get($url);
185 185
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function getRepositoryContent($username, $repository)
210 210
     {
211
-        $url = static::BASE_URL . 'repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/contents';
211
+        $url = static::BASE_URL.'repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/contents';
212 212
 
213 213
         return $this->_get($url);
214 214
     }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             } else {
242 242
                 $error = true;
243 243
                 $errMsg = $response->getContent();
244
-                $logsHandler->updateTableLogs(Constants::LOG_TYPE_ERROR, $errMsg, 'ERROR ' . $code);
244
+                $logsHandler->updateTableLogs(Constants::LOG_TYPE_ERROR, $errMsg, 'ERROR '.$code);
245 245
             }
246 246
         }
247 247
         if ($error) {
@@ -262,13 +262,13 @@  discard block
 block discarded – undo
262 262
                     break;
263 263
                 case 0:
264 264
                 default:
265
-                    $message = \_MA_WGGITHUB_READGH_ERROR_API . '(' .$code . ' - ' .  $errMsg . ')';
265
+                    $message = \_MA_WGGITHUB_READGH_ERROR_API.'('.$code.' - '.$errMsg.')';
266 266
                     break;
267 267
             }
268
-            redirect_header('index.php?op=api_error&amp;message='. $message . '&amp;url='. $url, 5, $message);
268
+            redirect_header('index.php?op=api_error&amp;message='.$message.'&amp;url='.$url, 5, $message);
269 269
             //throw new \RuntimeException('"' . $message . '"');
270 270
         } else {
271
-            $data = (array)$api->decode($response);
271
+            $data = (array) $api->decode($response);
272 272
         }
273 273
 
274 274
         return $data;
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
         $setting = $settingsHandler->getPrimarySetting();
347 347
 
348 348
         if (0 == \count($setting)) {
349
-            \redirect_header(\XOOPS_URL . '/index.php', 3, \_AM_WGGITHUB_THEREARENT_SETTINGS);
349
+            \redirect_header(\XOOPS_URL.'/index.php', 3, \_AM_WGGITHUB_THEREARENT_SETTINGS);
350 350
         }
351 351
         //$this->userAuth = $setting['user'];
352 352
         $this->tokenAuth = $setting['token'];
Please login to merge, or discard this patch.
class/Utility.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -191,14 +191,14 @@
 block discarded – undo
191 191
         $donationform = [
192 192
             0   => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">',
193 193
             1   => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'
194
-                   . \_AM_WGGITHUB_ABOUT_MAKE_DONATION
195
-                   . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
196
-                   . \_AM_WGGITHUB_DONATION_AMOUNT
197
-                   . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
198
-                   . \_SUBMIT
199
-                   . '" title="'
200
-                   . \_SUBMIT
201
-                   . '" type="submit"></td></tr></tbody></table>',
194
+                    . \_AM_WGGITHUB_ABOUT_MAKE_DONATION
195
+                    . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
196
+                    . \_AM_WGGITHUB_DONATION_AMOUNT
197
+                    . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
198
+                    . \_SUBMIT
199
+                    . '" title="'
200
+                    . \_SUBMIT
201
+                    . '" type="submit"></td></tr></tbody></table>',
202 202
             2   => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="EUR" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"></form>',
203 203
             'D' => '',
204 204
             3   => '',
Please login to merge, or discard this patch.
class/Readmes.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $helper  = \XoopsModules\Wggithub\Helper::getInstance();
138 138
         $utility = new \XoopsModules\Wggithub\Utility();
139 139
         $ret = $this->getValues($keys, $format, $maxDepth);
140
-        $ret['id']            = $this->getVar('rm_id');
140
+        $ret['id'] = $this->getVar('rm_id');
141 141
         $repositoriesHandler = $helper->getHandler('Repositories');
142 142
         $repositoriesObj = $repositoriesHandler->get($this->getVar('rm_repoid'));
143 143
         $repoName = '*****missing repo_name*****';
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $ret['submitter']     = \XoopsUser::getUnameFromId($this->getVar('rm_submitter'));
170 170
         $ret['gitbook_link']  = '';
171 171
         if (\strpos($ret['downloadurl'], 'XoopsDoc') > 0) {
172
-            $ret['gitbook_link']  = 'https://xoops.gitbook.io/' . $repoName . '/';
172
+            $ret['gitbook_link'] = 'https://xoops.gitbook.io/'.$repoName.'/';
173 173
         }
174 174
         return $ret;
175 175
     }
@@ -214,22 +214,22 @@  discard block
 block discarded – undo
214 214
         $arrReplace = [
215 215
             'src="https://xoops.org/images/logoXoopsPhp8.png',
216 216
             "src='https://xoops.org/images/logoXoopsPhp8.png",
217
-            'src="' . $baseUrl . '.gitbook/assets/',
218
-            "src='" . $baseUrl . '.gitbook/assets/',
219
-            'src="' . $baseUrl . 'en/assets/',
220
-            "src='" . $baseUrl . 'en/assets/',
221
-            'src="' . $baseUrl . 'assets/',
222
-            "src='" . $baseUrl . 'assets/'
217
+            'src="'.$baseUrl.'.gitbook/assets/',
218
+            "src='".$baseUrl.'.gitbook/assets/',
219
+            'src="'.$baseUrl.'en/assets/',
220
+            "src='".$baseUrl.'en/assets/',
221
+            'src="'.$baseUrl.'assets/',
222
+            "src='".$baseUrl.'assets/'
223 223
         ];
224 224
         $contentClean = \str_replace($arrSearch, $arrReplace, $contentClean);
225 225
 
226 226
         //replace known missing images
227 227
         $arrSearch = [
228
-            'src="' . \XOOPS_URL . '/screenshot.jpg',
229
-            'src="' . \XOOPS_URL . '/sd-099-theme-surprice.gif',
230
-            'src="' . \XOOPS_URL . '/shot.gif',
231
-            'src="' . \XOOPS_URL . '/shot.jpg',
232
-            'src="' . \XOOPS_URL . '/theme_preview.png',
228
+            'src="'.\XOOPS_URL.'/screenshot.jpg',
229
+            'src="'.\XOOPS_URL.'/sd-099-theme-surprice.gif',
230
+            'src="'.\XOOPS_URL.'/shot.gif',
231
+            'src="'.\XOOPS_URL.'/shot.jpg',
232
+            'src="'.\XOOPS_URL.'/theme_preview.png',
233 233
             'src="https://github.com/xoops/newbb-tutorial/tree/54ef6104e66b74e8c6dea683d3cce70ceafdd739/assets/image001.jpg',
234 234
             'src="https://github.com/xoops/repairshop-tutorial/tree/719d6d32dea221b3e980fd3d6222f179ac898394/en/assets/img_2.jpg',
235 235
             'src="https://github.com/xoops/xoops-mylinks-tutorial/tree/d30c30645d48c5ead51399ff711c25935cbd0495/en/assets/forkit.png',
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             'src="https://insight.sensiolabs.com/projects/7ada0220-a68e-4369-aef0-950172630ff8/mini.png',
301 301
             'src="https://xoops.org/images/translations-github-blue.svg',
302 302
         ];
303
-        $contentClean = \str_replace($arrSearch, 'src="' . \WGGITHUB_IMAGE_URL . '/blank.gif', $contentClean);
303
+        $contentClean = \str_replace($arrSearch, 'src="'.\WGGITHUB_IMAGE_URL.'/blank.gif', $contentClean);
304 304
 
305 305
         return $contentClean;
306 306
     }
Please login to merge, or discard this patch.