Completed
Push — master ( fcf66f...4020b1 )
by Sam
02:59
created
src/Xtools/User.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,6 +61,6 @@
 block discarded – undo
61 61
     public function userRightsUrl(Project $project)
62 62
     {
63 63
         return $project->getUrl() . $project->getScriptPath() . "?title=Special:UserRights&user=" .
64
-               $this->getUsername();
64
+                $this->getUsername();
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     public function userRightsUrl(Project $project)
62 62
     {
63
-        return $project->getUrl() . $project->getScriptPath() . "?title=Special:UserRights&user=" .
63
+        return $project->getUrl().$project->getScriptPath()."?title=Special:UserRights&user=".
64 64
                $this->getUsername();
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/AppBundle/Controller/TopEditsController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      * List top edits by this user for all pages in a particular namespace.
112 112
      * @param User $user The User.
113 113
      * @param Project $project The project.
114
-     * @param integer|string $namespace The namespace ID or 'all'
114
+     * @param integer $namespace The namespace ID or 'all'
115 115
      * @return \Symfony\Component\HttpFoundation\Response
116 116
      */
117 117
     protected function namespaceTopEdits(User $user, Project $project, $namespace)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 'username' => $username,
69 69
             ]);
70 70
         } elseif ($project != "") {
71
-            return $this->redirectToRoute("TopEditsResults", [ 'project'=>$project ]);
71
+            return $this->redirectToRoute("TopEditsResults", ['project'=>$project]);
72 72
         }
73 73
 
74 74
         // set default wiki so we can populate the namespace selector
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         }
144 144
 
145 145
         // Get page info about these 100 pages, so we can use their display title.
146
-        $titles = array_map(function ($e) {
146
+        $titles = array_map(function($e) {
147 147
             return $e['page_title'];
148 148
         }, $editData);
149 149
         /** @var ApiHelper $apiHelper */
Please login to merge, or discard this patch.
src/Xtools/Project.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
     /** @var string[] Basic metadata about the project */
15 15
     protected $metadata;
16 16
 
17
+    /**
18
+     * @param string $nameOrUrl
19
+     */
17 20
     public function __construct($nameOrUrl)
18 21
     {
19 22
         $this->nameUnnormalized = $nameOrUrl;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function getUrl()
57 57
     {
58
-        return rtrim($this->getMetadata()['url'], '/') . '/';
58
+        return rtrim($this->getMetadata()['url'], '/').'/';
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.