Passed
Push — master ( aad9c2...cf25a6 )
by Luke
02:57
created
lib/ComponentManager/PackageSource/GitPackageSource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@
 block discarded – undo
53 53
                     $tempDirectory,
54 54
                     'repo',
55 55
                 ]);
56
-                $indexPath      = $this->platform->joinPaths([
56
+                $indexPath = $this->platform->joinPaths([
57 57
                     $tempDirectory,
58 58
                     'index',
59 59
                 ]);
60
-                $repositoryUri  = $source->getRepositoryUri();
60
+                $repositoryUri = $source->getRepositoryUri();
61 61
 
62 62
                 $finalRef = $resolvedComponentVersion->getFinalVersion();
63 63
                 $ref      = $source->getRef();
Please login to merge, or discard this patch.
lib/ComponentManager/DependencyInjection/ConsoleCommandsPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * @param string|null $tagName
54 54
      * @param string|null $appId
55 55
      */
56
-    public function __construct($tagName=null, $appId=null) {
56
+    public function __construct($tagName = null, $appId = null) {
57 57
         $this->tagName = ($tagName === null) ? 'console.command' : $tagName;
58 58
         $this->appId = ($appId === null) ? 'console.application' : $appId;
59 59
     }
Please login to merge, or discard this patch.
lib/ComponentManager/DependencyInjection/ContainerAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      *
28 28
      * @return void
29 29
      */
30
-    public function setContainer(ContainerInterface $container=null) {
30
+    public function setContainer(ContainerInterface $container = null) {
31 31
         $this->container = $container;
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
etc/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
17 17
 
18 18
 // Error reporting
19
-ini_set('display_errors',  'on');
19
+ini_set('display_errors', 'on');
20 20
 ini_set('error_reporting', E_ALL);
21 21
 
22 22
 // Set the default timezone if not already set
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/StashPackageRepository.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 use DateTime;
19 19
 use OutOfBoundsException;
20 20
 use Psr\Log\LoggerInterface;
21
-use stdClass;
22 21
 use Symfony\Component\HttpFoundation\Request;
22
+use stdClass;
23 23
 
24 24
 /**
25 25
  * Atlassian Stash project package repository.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      *
321 321
      * @return mixed The JSON-decoded representation of the response body.
322 322
      */
323
-    protected function get($path, array $queryParams=[]) {
323
+    protected function get($path, array $queryParams = []) {
324 324
         $uri = $this->options->uri . $path;
325 325
         $uri = $this->httpClient->createUri($uri)
326 326
             ->withQuery(http_build_query($queryParams));
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      *
340 340
      * @return mixed The value attribute of the JSON-decoded response body.
341 341
      */
342
-    protected function getAllPages($path, array $queryParams=[]) {
342
+    protected function getAllPages($path, array $queryParams = []) {
343 343
         $values = [];
344 344
 
345 345
         $responseBody = (object) [
Please login to merge, or discard this patch.
lib/ComponentManager/HttpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
      *
79 79
      * @return RequestInterface
80 80
      */
81
-    public function createRequest($method, $uri, $headers=[], $body=null,
82
-                                  $protocolVersion='1.1') {
81
+    public function createRequest($method, $uri, $headers = [], $body = null,
82
+                                  $protocolVersion = '1.1') {
83 83
         return $this->messageFactory->createRequest(
84 84
                 $method, $uri, $headers, $body, $protocolVersion);
85 85
     }
Please login to merge, or discard this patch.
lib/ComponentManager/VersionControl/Git/GitVersionControl.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 use ComponentManager\VersionControl\Git\Command\Command;
17 17
 use ComponentManager\VersionControl\Git\Command\FetchCommand;
18 18
 use ComponentManager\VersionControl\Git\Command\InitCommand;
19
-use ComponentManager\VersionControl\Git\Command\RevParseCommand;
20 19
 use ComponentManager\VersionControl\Git\Command\RemoteAddCommand;
20
+use ComponentManager\VersionControl\Git\Command\RevParseCommand;
21 21
 use Symfony\Component\Process\Process;
22 22
 use Symfony\Component\Process\ProcessBuilder;
23 23
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param string       $directory
61 61
      * @param integer|null $timeout
62 62
      */
63
-    public function __construct($gitExecutable, $directory, $timeout=60) {
63
+    public function __construct($gitExecutable, $directory, $timeout = 60) {
64 64
         $this->gitExecutable = $gitExecutable;
65 65
         $this->timeout       = $timeout;
66 66
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @throws VersionControlException
97 97
      */
98
-    public function runCommand(Command $command, $exceptionCode=null) {
98
+    public function runCommand(Command $command, $exceptionCode = null) {
99 99
         $process = $this->createProcess($command->getCommandLine());
100 100
         $process->run();
101 101
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      *
170 170
      * @codeCoverageIgnore
171 171
      */
172
-    public function fetch($remote=null) {
172
+    public function fetch($remote = null) {
173 173
         $command = new FetchCommand($remote);
174 174
         return $this->runCommand(
175 175
                 $command, VersionControlException::CODE_FETCH_FAILED);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      *
187 187
      * @codeCoverageIgnore
188 188
      */
189
-    public function fetchTags($remote=null) {
189
+    public function fetchTags($remote = null) {
190 190
         $command = new FetchCommand($remote);
191 191
         $command->setTags(true);
192 192
         return $this->runCommand(
Please login to merge, or discard this patch.
lib/ComponentManager/VersionControl/Git/Command/FetchCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *
34 34
      * @param string|null $remote
35 35
      */
36
-    public function __construct($remote=null) {
36
+    public function __construct($remote = null) {
37 37
         $this->remote = $remote;
38 38
     }
39 39
 
Please login to merge, or discard this patch.
lib/ComponentManager/ComponentSpecification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
66 66
      * @param string   $packageSource
67 67
      * @param stdClass $extra
68 68
      */
69
-    public function __construct($name, $version, $packageRepository=null,
70
-                                $packageSource=null, stdClass $extra=null) {
69
+    public function __construct($name, $version, $packageRepository = null,
70
+                                $packageSource = null, stdClass $extra = null) {
71 71
         $this->name    = $name;
72 72
         $this->version = $version;
73 73
 
Please login to merge, or discard this patch.