Completed
Pull Request — 1.11.x (#1163)
by José
71:40 queued 25:11
created
main/badge/issued_all.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $skillId = isset($_GET['skill']) ? intval($_GET['skill']) : 0;
14 14
 
15 15
 if (!$userId || !$skillId) {
16
-    header('Location: ' . api_get_path(WEB_PATH));
16
+    header('Location: '.api_get_path(WEB_PATH));
17 17
     exit;
18 18
 }
19 19
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         Display::return_message(get_lang('NoResults'), 'error')
32 32
     );
33 33
 
34
-    header('Location: ' . api_get_path(WEB_PATH));
34
+    header('Location: '.api_get_path(WEB_PATH));
35 35
     exit;
36 36
 }
37 37
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $entityManager->persist($skillIssue);
168 168
         $entityManager->flush();
169 169
 
170
-        header("Location: " . $skillIssue->getIssueUrlAll());
170
+        header("Location: ".$skillIssue->getIssueUrlAll());
171 171
         exit;
172 172
     }
173 173
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $entityManager->persist($skillUserComment);
199 199
         $entityManager->flush();
200 200
 
201
-        header("Location: " . $skillIssue->getIssueUrlAll());
201
+        header("Location: ".$skillIssue->getIssueUrlAll());
202 202
         exit;
203 203
     }
204 204
 
@@ -214,11 +214,11 @@  discard block
 block discarded – undo
214 214
             $backpack = $configBackpack;
215 215
         }
216 216
 
217
-        $htmlHeadXtra[] = '<script src="' . $backpack . 'issuer.js"></script>';
217
+        $htmlHeadXtra[] = '<script src="'.$backpack.'issuer.js"></script>';
218 218
         $objSkill = new Skill();
219 219
         $assertionUrl = $skillIssueInfo['badge_assertion'];
220 220
         $skills = $objSkill->get($skillId);
221
-        $unbakedBadge = api_get_path(SYS_UPLOAD_PATH) . "badges/".$skills['icon'];
221
+        $unbakedBadge = api_get_path(SYS_UPLOAD_PATH)."badges/".$skills['icon'];
222 222
         if (!is_file($unbakedBadge)) {
223 223
             $unbakedBadge = api_get_path(WEB_CODE_PATH).'img/icons/128/badges-default.png';
224 224
         }
@@ -236,12 +236,12 @@  discard block
 block discarded – undo
236 236
                 mkdir($bakedBadge, api_get_permissions_for_new_directories(), true);
237 237
             }
238 238
             $skillRelUserId = $skillIssueInfo['id'];
239
-            if (!file_exists($bakedBadge . "/badge_" . $skillRelUserId)) {
240
-                file_put_contents($bakedBadge . "/badge_" . $skillRelUserId . ".png", $bakedInfo);
239
+            if (!file_exists($bakedBadge."/badge_".$skillRelUserId)) {
240
+                file_put_contents($bakedBadge."/badge_".$skillRelUserId.".png", $bakedInfo);
241 241
             }
242 242
 
243 243
             //Process to validate a baked badge
244
-            $badgeContent = file_get_contents($bakedBadge . "/badge_" . $skillRelUserId . ".png");
244
+            $badgeContent = file_get_contents($bakedBadge."/badge_".$skillRelUserId.".png");
245 245
             $verifyBakedBadge = $png->extractBadgeInfo($badgeContent);
246 246
             if (!is_array($verifyBakedBadge)) {
247 247
                 $badgeInfoError = true;
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
             if (!$badgeInfoError) {
251 251
                 $personalBadge = UserManager::getUserPathById($userId, "web");
252
-                $personalBadge = $personalBadge."badges/badge_" . $skillRelUserId . ".png";
252
+                $personalBadge = $personalBadge."badges/badge_".$skillRelUserId.".png";
253 253
             }
254 254
         }
255 255
     }
Please login to merge, or discard this patch.
main/badge/assign.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         Display::return_message(get_lang('NoUser'), 'error')
35 35
     );
36 36
 
37
-    header('Location: ' . api_get_path(WEB_PATH));
37
+    header('Location: '.api_get_path(WEB_PATH));
38 38
     exit;
39 39
 }
40 40
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     . '<script>'
49 49
         . '$( document ).ready(function() {'
50 50
             . '$("#skill").on("change", function() {'
51
-                . '$(location).attr("href", "'. $url .'"+$(this).val());'
51
+                . '$(location).attr("href", "'.$url.'"+$(this).val());'
52 52
             . '});'
53 53
         . '});'
54 54
     . '</script>';
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             Display::return_message(get_lang('SkillNotFound'), 'error')
134 134
         );
135 135
 
136
-        header('Location: ' . api_get_self() . '?' . http_build_query(['user' => $user->getId()]));
136
+        header('Location: '.api_get_self().'?'.http_build_query(['user' => $user->getId()]));
137 137
         exit;
138 138
     }
139 139
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             )
146 146
         );
147 147
 
148
-        header('Location: ' . api_get_self() . '?' . http_build_query(['user' => $user->getId()]));
148
+        header('Location: '.api_get_self().'?'.http_build_query(['user' => $user->getId()]));
149 149
         exit;
150 150
     }
151 151
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         )
170 170
     );
171 171
 
172
-    header('Location: ' . api_get_path(WEB_PATH) . "badge/{$skillUser->getId()}");
172
+    header('Location: '.api_get_path(WEB_PATH)."badge/{$skillUser->getId()}");
173 173
     exit;
174 174
 }
175 175
 
Please login to merge, or discard this patch.