Completed
Push — master ( b47a89...8fd593 )
by Sam
02:40
created
src/Xtools/Project.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getUrl($withTrailingSlash = true)
92 92
     {
93
-        return rtrim($this->getMetadata()['url'], '/') . ($withTrailingSlash ? '/' : '');
93
+        return rtrim($this->getMetadata()['url'], '/').($withTrailingSlash ? '/' : '');
94 94
     }
95 95
 
96 96
     /**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $metadata = $this->getRepository()->getMetadata($this->getUrl());
148 148
         return isset($metadata['general']['script'])
149 149
             ? $metadata['general']['script']
150
-            : $this->getScriptPath() . '/index.php';
150
+            : $this->getScriptPath().'/index.php';
151 151
     }
152 152
 
153 153
     /**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function getApiUrl()
159 159
     {
160
-        return rtrim($this->getUrl(), '/') . $this->getRepository()->getApiPath();
160
+        return rtrim($this->getUrl(), '/').$this->getRepository()->getApiPath();
161 161
     }
162 162
 
163 163
     /**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function userOptInPage(User $user)
191 191
     {
192
-        $localPageName = 'User:' . $user->getUsername() . '/EditCounterOptIn.js';
192
+        $localPageName = 'User:'.$user->getUsername().'/EditCounterOptIn.js';
193 193
         return $localPageName;
194 194
     }
195 195
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         }
224 224
 
225 225
         // 4. Lastly, see if they've opted in globally on the default project or Meta.
226
-        $globalPageName = $user->getUsername() . '/EditCounterGlobalOptIn.js';
226
+        $globalPageName = $user->getUsername().'/EditCounterGlobalOptIn.js';
227 227
         $globalProject = $this->getRepository()->getGlobalProject();
228 228
         if ($globalProject instanceof Project) {
229 229
             $globalExists = $globalProject->getRepository()
Please login to merge, or discard this patch.