Completed
Pull Request — master (#78)
by MusikAnimal
03:06
created
src/Xtools/Project.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getUrl($withTrailingSlash = true)
119 119
     {
120
-        return rtrim($this->getBasicInfo()['url'], '/') . ($withTrailingSlash ? '/' : '');
120
+        return rtrim($this->getBasicInfo()['url'], '/').($withTrailingSlash ? '/' : '');
121 121
     }
122 122
 
123 123
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         $metadata = $this->getMetadata();
175 175
         return isset($metadata['general']['script'])
176 176
             ? $metadata['general']['script']
177
-            : $this->getScriptPath() . '/index.php';
177
+            : $this->getScriptPath().'/index.php';
178 178
     }
179 179
 
180 180
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function getApiUrl()
186 186
     {
187
-        return rtrim($this->getUrl(), '/') . $this->getRepository()->getApiPath();
187
+        return rtrim($this->getUrl(), '/').$this->getRepository()->getApiPath();
188 188
     }
189 189
 
190 190
     /**
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      */
217 217
     public function userOptInPage(User $user)
218 218
     {
219
-        $localPageName = $user->getUsername() . '/EditCounterOptIn.js';
219
+        $localPageName = $user->getUsername().'/EditCounterOptIn.js';
220 220
         return [2, $localPageName];
221 221
     }
222 222
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         }
252 252
 
253 253
         // 4. Lastly, see if they've opted in globally on the default project or Meta.
254
-        $globalPageName = $user->getUsername() . '/EditCounterGlobalOptIn.js';
254
+        $globalPageName = $user->getUsername().'/EditCounterGlobalOptIn.js';
255 255
         $globalProject = $this->getRepository()->getGlobalProject();
256 256
         if ($globalProject instanceof Project) {
257 257
             $globalExists = $globalProject->getRepository()
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      */
271 271
     public function hasPageAssessments()
272 272
     {
273
-        return (bool) $this->getRepository()->getAssessmentsConfig($this->getDomain());
273
+        return (bool)$this->getRepository()->getAssessmentsConfig($this->getDomain());
274 274
     }
275 275
 
276 276
     /**
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
         $config = $this->getRepository()->getAssessmentsConfig($this->getDomain());
284 284
 
285 285
         if (isset($config['class'][$class])) {
286
-            return "https://upload.wikimedia.org/wikipedia/commons/" . $config['class'][$class]['badge'];
286
+            return "https://upload.wikimedia.org/wikipedia/commons/".$config['class'][$class]['badge'];
287 287
         } elseif (isset($config['class']['Unknown'])) {
288
-            return "https://upload.wikimedia.org/wikipedia/commons/" . $config['class']['Unknown']['badge'];
288
+            return "https://upload.wikimedia.org/wikipedia/commons/".$config['class']['Unknown']['badge'];
289 289
         } else {
290 290
             return "";
291 291
         }
Please login to merge, or discard this patch.