Passed
Pull Request — master (#162)
by MusikAnimal
05:44
created
src/AppBundle/Controller/EditCounterController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
         }
136 136
 
137 137
         $ret = [
138
-            'xtTitle' => $this->user->getUsername() . ' - ' . $this->project->getTitle(),
138
+            'xtTitle' => $this->user->getUsername().' - '.$this->project->getTitle(),
139 139
             'xtPage' => 'ec',
140 140
             'user' => $this->user,
141 141
             'project' => $this->project,
Please login to merge, or discard this patch.
src/Xtools/Project.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function getUrl($withTrailingSlash = true)
129 129
     {
130
-        return rtrim($this->getBasicInfo()['url'], '/') . ($withTrailingSlash ? '/' : '');
130
+        return rtrim($this->getBasicInfo()['url'], '/').($withTrailingSlash ? '/' : '');
131 131
     }
132 132
 
133 133
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $metadata = $this->getMetadata();
185 185
         return isset($metadata['general']['script'])
186 186
             ? $metadata['general']['script']
187
-            : $this->getScriptPath() . '/index.php';
187
+            : $this->getScriptPath().'/index.php';
188 188
     }
189 189
 
190 190
     /**
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function getApiUrl()
196 196
     {
197
-        return rtrim($this->getUrl(), '/') . $this->getRepository()->getApiPath();
197
+        return rtrim($this->getUrl(), '/').$this->getRepository()->getApiPath();
198 198
     }
199 199
 
200 200
     /**
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public function userOptInPage(User $user)
260 260
     {
261
-        $localPageName = 'User:' . $user->getUsername() . '/EditCounterOptIn.js';
261
+        $localPageName = 'User:'.$user->getUsername().'/EditCounterOptIn.js';
262 262
         return $localPageName;
263 263
     }
264 264
 
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
         }
294 294
 
295 295
         // 4. Lastly, see if they've opted in globally on the default project or Meta.
296
-        $globalPageName = $user->getUsername() . '/EditCounterGlobalOptIn.js';
296
+        $globalPageName = $user->getUsername().'/EditCounterGlobalOptIn.js';
297 297
         $globalProject = $this->getRepository()->getGlobalProject();
298 298
         if ($globalProject instanceof Project) {
299 299
             $globalExists = $globalProject->getRepository()
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      */
313 313
     public function hasPageAssessments()
314 314
     {
315
-        return (bool) $this->getRepository()->getAssessmentsConfig($this->getDomain());
315
+        return (bool)$this->getRepository()->getAssessmentsConfig($this->getDomain());
316 316
     }
317 317
 
318 318
     /**
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
         $config = $this->getRepository()->getAssessmentsConfig($this->getDomain());
327 327
 
328 328
         if (isset($config['class'][$class])) {
329
-            $url = "https://upload.wikimedia.org/wikipedia/commons/" . $config['class'][$class]['badge'];
329
+            $url = "https://upload.wikimedia.org/wikipedia/commons/".$config['class'][$class]['badge'];
330 330
         } elseif (isset($config['class']['Unknown'])) {
331
-            $url = "https://upload.wikimedia.org/wikipedia/commons/" . $config['class']['Unknown']['badge'];
331
+            $url = "https://upload.wikimedia.org/wikipedia/commons/".$config['class']['Unknown']['badge'];
332 332
         } else {
333 333
             $url = "";
334 334
         }
Please login to merge, or discard this patch.