Passed
Push — master ( 054f60...db06ef )
by Luke
05:01 queued 02:43
created
lib/ComponentManager/HttpClient.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      * @return RequestInterface
80 80
      */
81 81
     public function createRequest($method, $uri, $headers=[], $body=null,
82
-                                  $protocolVersion='1.1') {
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.
test/unit/ComponentTest.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -20,33 +20,33 @@
 block discarded – undo
20 20
  * @coversDefaultClass \ComponentManager\Component
21 21
  */
22 22
 class ComponentTest extends TestCase {
23
-   public function testGetNameParts() {
24
-       $component = new Component('type_name', []);
25
-       $this->assertEquals(['type', 'name'], $component->getNameParts());
26
-       $this->assertEquals('type', $component->getPluginType());
27
-       $this->assertEquals('name', $component->getPluginName());
28
-   }
29
-
30
-   public function testGetVersion() {
31
-       $goodPackageRepository = $this->createMock(PackageRepository::class);
32
-       $goodPackageRepository->method('satisfiesVersion')
33
-           ->willReturn(true);
34
-       $badPackageRepository = $this->createMock(PackageRepository::class);
35
-       $badPackageRepository->method('satisfiesVersion')
36
-           ->willReturn(false);
37
-
38
-       $componentVersion = new ComponentVersion(
23
+    public function testGetNameParts() {
24
+        $component = new Component('type_name', []);
25
+        $this->assertEquals(['type', 'name'], $component->getNameParts());
26
+        $this->assertEquals('type', $component->getPluginType());
27
+        $this->assertEquals('name', $component->getPluginName());
28
+    }
29
+
30
+    public function testGetVersion() {
31
+        $goodPackageRepository = $this->createMock(PackageRepository::class);
32
+        $goodPackageRepository->method('satisfiesVersion')
33
+            ->willReturn(true);
34
+        $badPackageRepository = $this->createMock(PackageRepository::class);
35
+        $badPackageRepository->method('satisfiesVersion')
36
+            ->willReturn(false);
37
+
38
+        $componentVersion = new ComponentVersion(
39 39
             '2015021800', 'Genesis', ComponentVersion::MATURITY_STABLE, []);
40 40
 
41
-       $component = new Component(
41
+        $component = new Component(
42 42
             'type_name', [$componentVersion], $goodPackageRepository);
43
-       $this->assertEquals(
43
+        $this->assertEquals(
44 44
             $componentVersion, $component->getVersion('2015021800'));
45 45
 
46
-       $this->expectException(UnsatisfiedVersionException::class);
47
-       $this->expectExceptionCode(UnsatisfiedVersionException::CODE_UNKNOWN_VERSION);
48
-       $component = new Component(
46
+        $this->expectException(UnsatisfiedVersionException::class);
47
+        $this->expectExceptionCode(UnsatisfiedVersionException::CODE_UNKNOWN_VERSION);
48
+        $component = new Component(
49 49
             'type_name', [$componentVersion], $badPackageRepository);
50
-       $component->getVersion('2015021800');
51
-   }
50
+        $component->getVersion('2015021800');
51
+    }
52 52
 }
Please login to merge, or discard this patch.