Completed
Push — develop ( 3424d9...5f5160 )
by
unknown
19:11
created
vendor/brianhenryie/strauss/tests/Issues/MozartIssue13Test.php 4 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@  discard block
 block discarded – undo
21 21
 class MozartIssue13Test extends IntegrationTestCase
22 22
 {
23 23
 
24
-    /**
25
-     *
26
-     * "paypal/rest-api-sdk-php"
27
-     *
28
-     */
29
-    public function testPaypalStringReplacement()
30
-    {
24
+	/**
25
+	 *
26
+	 * "paypal/rest-api-sdk-php"
27
+	 *
28
+	 */
29
+	public function testPaypalStringReplacement()
30
+	{
31 31
 
32 32
 //        $this->markTestSkipped('This test was passing until I excluded the PSR namespace');
33 33
 
34
-        $composerJsonString = <<<'EOD'
34
+		$composerJsonString = <<<'EOD'
35 35
 {
36 36
 	"name": "brianhenryie/mozart-issue-13",
37 37
 	"require": {
@@ -50,22 +50,22 @@  discard block
 block discarded – undo
50 50
 }
51 51
 EOD;
52 52
 
53
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
53
+		file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
54 54
 
55
-        chdir($this->testsWorkingDir);
55
+		chdir($this->testsWorkingDir);
56 56
 
57
-        exec('composer install');
57
+		exec('composer install');
58 58
 
59
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
60
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
59
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
60
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
61 61
 
62
-        $mozartCompose = new Compose();
62
+		$mozartCompose = new Compose();
63 63
 
64
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
64
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
65 65
 
66
-        $phpString = file_get_contents($this->testsWorkingDir .'/strauss/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogger.php');
66
+		$phpString = file_get_contents($this->testsWorkingDir .'/strauss/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogger.php');
67 67
 
68
-        // Confirm solution is correct.
69
-        $this->assertStringContainsString('constant("\\\\BrianHenryIE\\\\Strauss\\\\Psr\\\\Log\\\\LogLevel::$loggingLevel")', $phpString);
70
-    }
68
+		// Confirm solution is correct.
69
+		$this->assertStringContainsString('constant("\\\\BrianHenryIE\\\\Strauss\\\\Psr\\\\Log\\\\LogLevel::$loggingLevel")', $phpString);
70
+	}
71 71
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,22 +50,22 @@
 block discarded – undo
50 50
 }
51 51
 EOD;
52 52
 
53
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
53
+        file_put_contents( $this->testsWorkingDir . '/composer.json', $composerJsonString );
54 54
 
55
-        chdir($this->testsWorkingDir);
55
+        chdir( $this->testsWorkingDir );
56 56
 
57
-        exec('composer install');
57
+        exec( 'composer install' );
58 58
 
59
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
60
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
59
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
60
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
61 61
 
62 62
         $mozartCompose = new Compose();
63 63
 
64
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
64
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
65 65
 
66
-        $phpString = file_get_contents($this->testsWorkingDir .'/strauss/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogger.php');
66
+        $phpString = file_get_contents( $this->testsWorkingDir . '/strauss/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogger.php' );
67 67
 
68 68
         // Confirm solution is correct.
69
-        $this->assertStringContainsString('constant("\\\\BrianHenryIE\\\\Strauss\\\\Psr\\\\Log\\\\LogLevel::$loggingLevel")', $phpString);
69
+        $this->assertStringContainsString( 'constant("\\\\BrianHenryIE\\\\Strauss\\\\Psr\\\\Log\\\\LogLevel::$loggingLevel")', $phpString );
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,16 +18,14 @@
 block discarded – undo
18 18
  * @package BrianHenryIE\Strauss\Tests\Issues
19 19
  * @coversNothing
20 20
  */
21
-class MozartIssue13Test extends IntegrationTestCase
22
-{
21
+class MozartIssue13Test extends IntegrationTestCase {
23 22
 
24 23
     /**
25 24
      *
26 25
      * "paypal/rest-api-sdk-php"
27 26
      *
28 27
      */
29
-    public function testPaypalStringReplacement()
30
-    {
28
+    public function testPaypalStringReplacement() {
31 29
 
32 30
 //        $this->markTestSkipped('This test was passing until I excluded the PSR namespace');
33 31
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 		}
75 75
 	}
76 76
 }
77
-EOD;
77
+eod;
78 78
 
79 79
         file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
80 80
 
Please login to merge, or discard this patch.
vendor/brianhenryie/strauss/tests/Issues/StraussIssue14Test.php 4 patches
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@  discard block
 block discarded – undo
17 17
 class StraussIssue14Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase
18 18
 {
19 19
 
20
-    /**
21
-     * Looks like the exclude_from_prefix regex for psr is not specific enough.
22
-     *
23
-     * @author BrianHenryIE
24
-     */
25
-    public function test_guzzle_http_is_prefixed()
26
-    {
27
-
28
-        $composerJsonString = <<<'EOD'
20
+	/**
21
+	 * Looks like the exclude_from_prefix regex for psr is not specific enough.
22
+	 *
23
+	 * @author BrianHenryIE
24
+	 */
25
+	public function test_guzzle_http_is_prefixed()
26
+	{
27
+
28
+		$composerJsonString = <<<'EOD'
29 29
 {
30 30
   "name": "brianhenryie/strauss-issue-14",
31 31
   "require":{
@@ -42,31 +42,31 @@  discard block
 block discarded – undo
42 42
 }
43 43
 EOD;
44 44
 
45
-        file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
45
+		file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
46 46
 
47
-        chdir($this->testsWorkingDir);
47
+		chdir($this->testsWorkingDir);
48 48
 
49
-        exec('composer install');
49
+		exec('composer install');
50 50
 
51
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
52
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
51
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
52
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
53 53
 
54
-        $mozartCompose = new Compose();
54
+		$mozartCompose = new Compose();
55 55
 
56
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
56
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
57 57
 
58
-        $php_string = file_get_contents($this->testsWorkingDir . '/strauss/guzzlehttp/psr7/src/AppendStream.php');
58
+		$php_string = file_get_contents($this->testsWorkingDir . '/strauss/guzzlehttp/psr7/src/AppendStream.php');
59 59
 
60
-        // was namespace GuzzleHttp\Psr7;
60
+		// was namespace GuzzleHttp\Psr7;
61 61
 
62
-        // Confirm solution is correct.
63
-        $this->assertStringContainsString('namespace BrianHenryIE\Strauss\GuzzleHttp\Psr7;', $php_string);
64
-    }
62
+		// Confirm solution is correct.
63
+		$this->assertStringContainsString('namespace BrianHenryIE\Strauss\GuzzleHttp\Psr7;', $php_string);
64
+	}
65 65
 
66
-    public function testFilesAutoloaderIsGenerated()
67
-    {
66
+	public function testFilesAutoloaderIsGenerated()
67
+	{
68 68
 
69
-        $composerJsonString = <<<'EOD'
69
+		$composerJsonString = <<<'EOD'
70 70
 {
71 71
   "name": "brianhenryie/strauss-issue-14",
72 72
   "require":{
@@ -83,19 +83,19 @@  discard block
 block discarded – undo
83 83
 }
84 84
 EOD;
85 85
 
86
-        file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
86
+		file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
87 87
 
88
-        chdir($this->testsWorkingDir);
88
+		chdir($this->testsWorkingDir);
89 89
 
90
-        exec('composer install');
90
+		exec('composer install');
91 91
 
92
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
93
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
92
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
93
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
94 94
 
95
-        $mozartCompose = new Compose();
95
+		$mozartCompose = new Compose();
96 96
 
97
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
97
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
98 98
 
99
-        $this->assertFileExists($this->testsWorkingDir . '/strauss/autoload-files.php');
100
-    }
99
+		$this->assertFileExists($this->testsWorkingDir . '/strauss/autoload-files.php');
100
+	}
101 101
 }
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -42,25 +42,25 @@  discard block
 block discarded – undo
42 42
 }
43 43
 EOD;
44 44
 
45
-        file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
45
+        file_put_contents( $this->testsWorkingDir . 'composer.json', $composerJsonString );
46 46
 
47
-        chdir($this->testsWorkingDir);
47
+        chdir( $this->testsWorkingDir );
48 48
 
49
-        exec('composer install');
49
+        exec( 'composer install' );
50 50
 
51
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
52
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
51
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
52
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
53 53
 
54 54
         $mozartCompose = new Compose();
55 55
 
56
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
56
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
57 57
 
58
-        $php_string = file_get_contents($this->testsWorkingDir . '/strauss/guzzlehttp/psr7/src/AppendStream.php');
58
+        $php_string = file_get_contents( $this->testsWorkingDir . '/strauss/guzzlehttp/psr7/src/AppendStream.php' );
59 59
 
60 60
         // was namespace GuzzleHttp\Psr7;
61 61
 
62 62
         // Confirm solution is correct.
63
-        $this->assertStringContainsString('namespace BrianHenryIE\Strauss\GuzzleHttp\Psr7;', $php_string);
63
+        $this->assertStringContainsString( 'namespace BrianHenryIE\Strauss\GuzzleHttp\Psr7;', $php_string );
64 64
     }
65 65
 
66 66
     public function testFilesAutoloaderIsGenerated()
@@ -83,19 +83,19 @@  discard block
 block discarded – undo
83 83
 }
84 84
 EOD;
85 85
 
86
-        file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
86
+        file_put_contents( $this->testsWorkingDir . 'composer.json', $composerJsonString );
87 87
 
88
-        chdir($this->testsWorkingDir);
88
+        chdir( $this->testsWorkingDir );
89 89
 
90
-        exec('composer install');
90
+        exec( 'composer install' );
91 91
 
92
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
93
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
92
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
93
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
94 94
 
95 95
         $mozartCompose = new Compose();
96 96
 
97
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
97
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
98 98
 
99
-        $this->assertFileExists($this->testsWorkingDir . '/strauss/autoload-files.php');
99
+        $this->assertFileExists( $this->testsWorkingDir . '/strauss/autoload-files.php' );
100 100
     }
101 101
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,16 +14,14 @@  discard block
 block discarded – undo
14 14
  * @package BrianHenryIE\Strauss\Tests\Issues
15 15
  * @coversNothing
16 16
  */
17
-class StraussIssue14Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase
18
-{
17
+class StraussIssue14Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase {
19 18
 
20 19
     /**
21 20
      * Looks like the exclude_from_prefix regex for psr is not specific enough.
22 21
      *
23 22
      * @author BrianHenryIE
24 23
      */
25
-    public function test_guzzle_http_is_prefixed()
26
-    {
24
+    public function test_guzzle_http_is_prefixed() {
27 25
 
28 26
         $composerJsonString = <<<'EOD'
29 27
 {
@@ -63,8 +61,7 @@  discard block
 block discarded – undo
63 61
         $this->assertStringContainsString('namespace BrianHenryIE\Strauss\GuzzleHttp\Psr7;', $php_string);
64 62
     }
65 63
 
66
-    public function testFilesAutoloaderIsGenerated()
67
-    {
64
+    public function testFilesAutoloaderIsGenerated() {
68 65
 
69 66
         $composerJsonString = <<<'EOD'
70 67
 {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     }
41 41
   }
42 42
 }
43
-EOD;
43
+eod;
44 44
 
45 45
         file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
46 46
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     }
82 82
   }
83 83
 }
84
-EOD;
84
+eod;
85 85
 
86 86
         file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
87 87
 
Please login to merge, or discard this patch.
vendor/brianhenryie/strauss/tests/Issues/MozartIssue99Test.php 4 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
 class MozartIssue99Test extends IntegrationTestCase
26 26
 {
27 27
 
28
-    /**
29
-     * WooCommerce Action Scheduler ... has no autoload key. But also needs some Mozart patches to work correctly.
30
-     */
31
-    public function test_it_does_not_make_classname_replacement_inside_namespaced_file()
32
-    {
28
+	/**
29
+	 * WooCommerce Action Scheduler ... has no autoload key. But also needs some Mozart patches to work correctly.
30
+	 */
31
+	public function test_it_does_not_make_classname_replacement_inside_namespaced_file()
32
+	{
33 33
 
34
-        $composerJsonString = <<<'EOD'
34
+		$composerJsonString = <<<'EOD'
35 35
 {
36 36
   "require": {
37 37
     "mustache/mustache": "2.13.0"
@@ -46,19 +46,19 @@  discard block
 block discarded – undo
46 46
 }
47 47
 EOD;
48 48
 
49
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
49
+		file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
50 50
 
51
-        chdir($this->testsWorkingDir);
51
+		chdir($this->testsWorkingDir);
52 52
 
53
-        exec('composer install');
53
+		exec('composer install');
54 54
 
55
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
56
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
55
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
56
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
57 57
 
58
-        $mozartCompose = new Compose();
58
+		$mozartCompose = new Compose();
59 59
 
60
-        $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
60
+		$mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
61 61
 
62
-        $this->markTestIncomplete("What to assert!?");
63
-    }
62
+		$this->markTestIncomplete("What to assert!?");
63
+	}
64 64
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,19 +46,19 @@
 block discarded – undo
46 46
 }
47 47
 EOD;
48 48
 
49
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
49
+        file_put_contents( $this->testsWorkingDir . '/composer.json', $composerJsonString );
50 50
 
51
-        chdir($this->testsWorkingDir);
51
+        chdir( $this->testsWorkingDir );
52 52
 
53
-        exec('composer install');
53
+        exec( 'composer install' );
54 54
 
55
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
56
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
55
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
56
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
57 57
 
58 58
         $mozartCompose = new Compose();
59 59
 
60
-        $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
60
+        $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
61 61
 
62
-        $this->markTestIncomplete("What to assert!?");
62
+        $this->markTestIncomplete( "What to assert!?" );
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,14 +22,12 @@
 block discarded – undo
22 22
  * Class MozartIssue99Test
23 23
  * @coversNothing
24 24
  */
25
-class MozartIssue99Test extends IntegrationTestCase
26
-{
25
+class MozartIssue99Test extends IntegrationTestCase {
27 26
 
28 27
     /**
29 28
      * WooCommerce Action Scheduler ... has no autoload key. But also needs some Mozart patches to work correctly.
30 29
      */
31
-    public function test_it_does_not_make_classname_replacement_inside_namespaced_file()
32
-    {
30
+    public function test_it_does_not_make_classname_replacement_inside_namespaced_file() {
33 31
 
34 32
         $composerJsonString = <<<'EOD'
35 33
 {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     }
37 37
   }
38 38
 }
39
-EOD;
39
+eod;
40 40
 
41 41
         file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
42 42
 
Please login to merge, or discard this patch.
vendor/brianhenryie/strauss/tests/Issues/StraussIssue11Test.php 4 patches
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 class StraussIssue11Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase
24 24
 {
25 25
 
26
-    /**
27
-     * @author BrianHenryIE
28
-     */
29
-    public function test_migrate_mozart_config()
30
-    {
26
+	/**
27
+	 * @author BrianHenryIE
28
+	 */
29
+	public function test_migrate_mozart_config()
30
+	{
31 31
 
32
-        $composerExtraStraussJson = <<<'EOD'
32
+		$composerExtraStraussJson = <<<'EOD'
33 33
 {
34 34
 	"name": "brianhenryie/strauss-issue-8",
35 35
 	"extra": {
@@ -61,27 +61,27 @@  discard block
 block discarded – undo
61 61
 }
62 62
 EOD;
63 63
 
64
-        $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-');
65
-        file_put_contents($tmpfname, $composerExtraStraussJson);
64
+		$tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-');
65
+		file_put_contents($tmpfname, $composerExtraStraussJson);
66 66
 
67
-        $composer = Factory::create(new NullIO(), $tmpfname);
67
+		$composer = Factory::create(new NullIO(), $tmpfname);
68 68
 
69
-        $straussConfig = new StraussConfig($composer);
69
+		$straussConfig = new StraussConfig($composer);
70 70
 
71
-        $this->assertEquals('src/Mozart/', $straussConfig->getTargetDirectory());
71
+		$this->assertEquals('src/Mozart/', $straussConfig->getTargetDirectory());
72 72
 
73
-        $this->assertEquals("MZoo\\MBO_Sandbox\\Dependencies", $straussConfig->getNamespacePrefix());
74
-    }
73
+		$this->assertEquals("MZoo\\MBO_Sandbox\\Dependencies", $straussConfig->getNamespacePrefix());
74
+	}
75 75
 
76 76
 
77 77
 
78
-    /**
79
-     * @author BrianHenryIE
80
-     */
81
-    public function test_carbon_fields()
82
-    {
78
+	/**
79
+	 * @author BrianHenryIE
80
+	 */
81
+	public function test_carbon_fields()
82
+	{
83 83
 
84
-        $composerJsonString = <<<'EOD'
84
+		$composerJsonString = <<<'EOD'
85 85
 {
86 86
 	"name": "brianhenryie/strauss-issue-8",
87 87
 	"require":{
@@ -114,35 +114,35 @@  discard block
 block discarded – undo
114 114
 }
115 115
 EOD;
116 116
 
117
-        file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
117
+		file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
118 118
 
119
-        chdir($this->testsWorkingDir);
119
+		chdir($this->testsWorkingDir);
120 120
 
121
-        exec('composer install');
121
+		exec('composer install');
122 122
 
123
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
124
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
123
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
124
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
125 125
 
126
-        $mozartCompose = new Compose();
126
+		$mozartCompose = new Compose();
127 127
 
128
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
128
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
129 129
 
130
-        $phpString = file_get_contents($this->testsWorkingDir .'src/Mozart/htmlburger/carbon-fields/core/Carbon_Fields.php');
130
+		$phpString = file_get_contents($this->testsWorkingDir .'src/Mozart/htmlburger/carbon-fields/core/Carbon_Fields.php');
131 131
 
132
-        // This was not being prefixed.
133
-        $this->assertStringNotContainsString('$ioc->register( new \Carbon_Fields\Provider\Container_Condition_Provider() );', $phpString);
132
+		// This was not being prefixed.
133
+		$this->assertStringNotContainsString('$ioc->register( new \Carbon_Fields\Provider\Container_Condition_Provider() );', $phpString);
134 134
 
135
-        $this->assertStringContainsString('$ioc->register( new \MZoo\MBO_Sandbox\Dependencies\Carbon_Fields\Provider\Container_Condition_Provider() );', $phpString);
136
-    }
135
+		$this->assertStringContainsString('$ioc->register( new \MZoo\MBO_Sandbox\Dependencies\Carbon_Fields\Provider\Container_Condition_Provider() );', $phpString);
136
+	}
137 137
 
138 138
 
139
-    /**
140
-     * @author BrianHenryIE
141
-     */
142
-    public function test_static_namespace()
143
-    {
139
+	/**
140
+	 * @author BrianHenryIE
141
+	 */
142
+	public function test_static_namespace()
143
+	{
144 144
 
145
-        $composerJsonString = <<<'EOD'
145
+		$composerJsonString = <<<'EOD'
146 146
 {
147 147
 	"name": "brianhenryie/strauss-issue-8",
148 148
 	"require":{
@@ -175,24 +175,24 @@  discard block
 block discarded – undo
175 175
 }
176 176
 EOD;
177 177
 
178
-        file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
178
+		file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
179 179
 
180
-        chdir($this->testsWorkingDir);
180
+		chdir($this->testsWorkingDir);
181 181
 
182
-        exec('composer install');
182
+		exec('composer install');
183 183
 
184
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
185
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
184
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
185
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
186 186
 
187
-        $mozartCompose = new Compose();
187
+		$mozartCompose = new Compose();
188 188
 
189
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
189
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
190 190
 
191
-        $phpString = file_get_contents($this->testsWorkingDir .'src/Mozart/htmlburger/carbon-fields/core/Container.php');
191
+		$phpString = file_get_contents($this->testsWorkingDir .'src/Mozart/htmlburger/carbon-fields/core/Container.php');
192 192
 
193
-        // This was not being prefixed.
194
-        $this->assertStringNotContainsString('@method static \Carbon_Fields\Container\Comment_Meta_Container', $phpString);
193
+		// This was not being prefixed.
194
+		$this->assertStringNotContainsString('@method static \Carbon_Fields\Container\Comment_Meta_Container', $phpString);
195 195
 
196
-        $this->assertStringContainsString('@method static \MZoo\MBO_Sandbox\Dependencies\Carbon_Fields\Container\Comment_Meta_Container', $phpString);
197
-    }
196
+		$this->assertStringContainsString('@method static \MZoo\MBO_Sandbox\Dependencies\Carbon_Fields\Container\Comment_Meta_Container', $phpString);
197
+	}
198 198
 }
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -61,16 +61,16 @@  discard block
 block discarded – undo
61 61
 }
62 62
 EOD;
63 63
 
64
-        $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-');
65
-        file_put_contents($tmpfname, $composerExtraStraussJson);
64
+        $tmpfname = tempnam( sys_get_temp_dir(), 'strauss-test-' );
65
+        file_put_contents( $tmpfname, $composerExtraStraussJson );
66 66
 
67
-        $composer = Factory::create(new NullIO(), $tmpfname);
67
+        $composer = Factory::create( new NullIO(), $tmpfname );
68 68
 
69
-        $straussConfig = new StraussConfig($composer);
69
+        $straussConfig = new StraussConfig( $composer );
70 70
 
71
-        $this->assertEquals('src/Mozart/', $straussConfig->getTargetDirectory());
71
+        $this->assertEquals( 'src/Mozart/', $straussConfig->getTargetDirectory() );
72 72
 
73
-        $this->assertEquals("MZoo\\MBO_Sandbox\\Dependencies", $straussConfig->getNamespacePrefix());
73
+        $this->assertEquals( "MZoo\\MBO_Sandbox\\Dependencies", $straussConfig->getNamespacePrefix() );
74 74
     }
75 75
 
76 76
 
@@ -114,25 +114,25 @@  discard block
 block discarded – undo
114 114
 }
115 115
 EOD;
116 116
 
117
-        file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
117
+        file_put_contents( $this->testsWorkingDir . 'composer.json', $composerJsonString );
118 118
 
119
-        chdir($this->testsWorkingDir);
119
+        chdir( $this->testsWorkingDir );
120 120
 
121
-        exec('composer install');
121
+        exec( 'composer install' );
122 122
 
123
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
124
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
123
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
124
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
125 125
 
126 126
         $mozartCompose = new Compose();
127 127
 
128
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
128
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
129 129
 
130
-        $phpString = file_get_contents($this->testsWorkingDir .'src/Mozart/htmlburger/carbon-fields/core/Carbon_Fields.php');
130
+        $phpString = file_get_contents( $this->testsWorkingDir . 'src/Mozart/htmlburger/carbon-fields/core/Carbon_Fields.php' );
131 131
 
132 132
         // This was not being prefixed.
133
-        $this->assertStringNotContainsString('$ioc->register( new \Carbon_Fields\Provider\Container_Condition_Provider() );', $phpString);
133
+        $this->assertStringNotContainsString( '$ioc->register( new \Carbon_Fields\Provider\Container_Condition_Provider() );', $phpString );
134 134
 
135
-        $this->assertStringContainsString('$ioc->register( new \MZoo\MBO_Sandbox\Dependencies\Carbon_Fields\Provider\Container_Condition_Provider() );', $phpString);
135
+        $this->assertStringContainsString( '$ioc->register( new \MZoo\MBO_Sandbox\Dependencies\Carbon_Fields\Provider\Container_Condition_Provider() );', $phpString );
136 136
     }
137 137
 
138 138
 
@@ -175,24 +175,24 @@  discard block
 block discarded – undo
175 175
 }
176 176
 EOD;
177 177
 
178
-        file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
178
+        file_put_contents( $this->testsWorkingDir . 'composer.json', $composerJsonString );
179 179
 
180
-        chdir($this->testsWorkingDir);
180
+        chdir( $this->testsWorkingDir );
181 181
 
182
-        exec('composer install');
182
+        exec( 'composer install' );
183 183
 
184
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
185
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
184
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
185
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
186 186
 
187 187
         $mozartCompose = new Compose();
188 188
 
189
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
189
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
190 190
 
191
-        $phpString = file_get_contents($this->testsWorkingDir .'src/Mozart/htmlburger/carbon-fields/core/Container.php');
191
+        $phpString = file_get_contents( $this->testsWorkingDir . 'src/Mozart/htmlburger/carbon-fields/core/Container.php' );
192 192
 
193 193
         // This was not being prefixed.
194
-        $this->assertStringNotContainsString('@method static \Carbon_Fields\Container\Comment_Meta_Container', $phpString);
194
+        $this->assertStringNotContainsString( '@method static \Carbon_Fields\Container\Comment_Meta_Container', $phpString );
195 195
 
196
-        $this->assertStringContainsString('@method static \MZoo\MBO_Sandbox\Dependencies\Carbon_Fields\Container\Comment_Meta_Container', $phpString);
196
+        $this->assertStringContainsString( '@method static \MZoo\MBO_Sandbox\Dependencies\Carbon_Fields\Container\Comment_Meta_Container', $phpString );
197 197
     }
198 198
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,14 +20,12 @@  discard block
 block discarded – undo
20 20
  * @package BrianHenryIE\Strauss\Tests\Issues
21 21
  * @coversNothing
22 22
  */
23
-class StraussIssue11Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase
24
-{
23
+class StraussIssue11Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase {
25 24
 
26 25
     /**
27 26
      * @author BrianHenryIE
28 27
      */
29
-    public function test_migrate_mozart_config()
30
-    {
28
+    public function test_migrate_mozart_config() {
31 29
 
32 30
         $composerExtraStraussJson = <<<'EOD'
33 31
 {
@@ -78,8 +76,7 @@  discard block
 block discarded – undo
78 76
     /**
79 77
      * @author BrianHenryIE
80 78
      */
81
-    public function test_carbon_fields()
82
-    {
79
+    public function test_carbon_fields() {
83 80
 
84 81
         $composerJsonString = <<<'EOD'
85 82
 {
@@ -139,8 +136,7 @@  discard block
 block discarded – undo
139 136
     /**
140 137
      * @author BrianHenryIE
141 138
      */
142
-    public function test_static_namespace()
143
-    {
139
+    public function test_static_namespace() {
144 140
 
145 141
         $composerJsonString = <<<'EOD'
146 142
 {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		}
60 60
 	}
61 61
 }
62
-EOD;
62
+eod;
63 63
 
64 64
         $tmpfname = tempnam(sys_get_temp_dir(), 'strauss-test-');
65 65
         file_put_contents($tmpfname, $composerExtraStraussJson);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 		}
113 113
 	}
114 114
 }
115
-EOD;
115
+eod;
116 116
 
117 117
         file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
118 118
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 		}
174 174
 	}
175 175
 }
176
-EOD;
176
+eod;
177 177
 
178 178
         file_put_contents($this->testsWorkingDir . 'composer.json', $composerJsonString);
179 179
 
Please login to merge, or discard this patch.
vendor/brianhenryie/strauss/tests/Issues/MozartIssue129Test.php 4 patches
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -26,87 +26,87 @@
 block discarded – undo
26 26
 class MozartIssue129Test extends TestCase
27 27
 {
28 28
 
29
-    /**
30
-     * @author BrianHenryIE
31
-     *
32
-     * @dataProvider pairTestDataProvider
33
-     */
34
-    public function test_test($phpString, $expected)
35
-    {
29
+	/**
30
+	 * @author BrianHenryIE
31
+	 *
32
+	 * @dataProvider pairTestDataProvider
33
+	 */
34
+	public function test_test($phpString, $expected)
35
+	{
36 36
 
37
-        $config = $this->createMock(StraussConfig::class);
37
+		$config = $this->createMock(StraussConfig::class);
38 38
 
39
-        $original = 'Example\Sdk\Endpoints';
40
-        $replacement = 'Strauss\Example\Sdk\Endpoints';
39
+		$original = 'Example\Sdk\Endpoints';
40
+		$replacement = 'Strauss\Example\Sdk\Endpoints';
41 41
 
42
-        $replacer = new Prefixer($config, __DIR__);
42
+		$replacer = new Prefixer($config, __DIR__);
43 43
 
44
-        $result = $replacer->replaceNamespace($phpString, $original, $replacement);
44
+		$result = $replacer->replaceNamespace($phpString, $original, $replacement);
45 45
 
46
-        $this->assertEquals($expected, $result);
47
-    }
46
+		$this->assertEquals($expected, $result);
47
+	}
48 48
 
49
-    public function pairTestDataProvider()
50
-    {
49
+	public function pairTestDataProvider()
50
+	{
51 51
 
52
-        $fromTo = [];
52
+		$fromTo = [];
53 53
 
54
-        $contents = <<<'EOD'
54
+		$contents = <<<'EOD'
55 55
 $baseNamespace = "\Example\Sdk\Endpoints";
56 56
 EOD;
57
-        $expected = <<<'EOD'
57
+		$expected = <<<'EOD'
58 58
 $baseNamespace = "\Strauss\Example\Sdk\Endpoints";
59 59
 EOD;
60
-        $fromTo[] = [ $contents, $expected];
60
+		$fromTo[] = [ $contents, $expected];
61 61
 
62
-        $contents = <<<'EOD'
62
+		$contents = <<<'EOD'
63 63
 $baseNamespace = "Example\\Sdk\\Endpoints";
64 64
 EOD;
65
-        $expected = <<<'EOD'
65
+		$expected = <<<'EOD'
66 66
 $baseNamespace = "Strauss\\Example\\Sdk\\Endpoints";
67 67
 EOD;
68
-        $fromTo[] = [ $contents, $expected];
68
+		$fromTo[] = [ $contents, $expected];
69 69
 
70
-        $contents = <<<'EOD'
70
+		$contents = <<<'EOD'
71 71
 $baseNamespace = "Example\Sdk\Endpoints";
72 72
 EOD;
73
-        $expected = <<<'EOD'
73
+		$expected = <<<'EOD'
74 74
 $baseNamespace = "Strauss\Example\Sdk\Endpoints";
75 75
 EOD;
76
-        $fromTo[] = [ $contents, $expected];
76
+		$fromTo[] = [ $contents, $expected];
77 77
 
78
-        $contents = <<<'EOD'
78
+		$contents = <<<'EOD'
79 79
 $baseNamespace = '\\Example\\Sdk\\Endpoints';
80 80
 EOD;
81
-        $expected = <<<'EOD'
81
+		$expected = <<<'EOD'
82 82
 $baseNamespace = '\\Strauss\\Example\\Sdk\\Endpoints';
83 83
 EOD;
84
-        $fromTo[] = [ $contents, $expected];
84
+		$fromTo[] = [ $contents, $expected];
85 85
 
86
-        $contents = <<<'EOD'
86
+		$contents = <<<'EOD'
87 87
 $baseNamespace = '\Example\Sdk\Endpoints';
88 88
 EOD;
89
-        $expected = <<<'EOD'
89
+		$expected = <<<'EOD'
90 90
 $baseNamespace = '\Strauss\Example\Sdk\Endpoints';
91 91
 EOD;
92
-        $fromTo[] = [ $contents, $expected];
92
+		$fromTo[] = [ $contents, $expected];
93 93
 
94
-        $contents = <<<'EOD'
94
+		$contents = <<<'EOD'
95 95
 $baseNamespace = 'Example\\Sdk\\Endpoints';
96 96
 EOD;
97
-        $expected = <<<'EOD'
97
+		$expected = <<<'EOD'
98 98
 $baseNamespace = 'Strauss\\Example\\Sdk\\Endpoints';
99 99
 EOD;
100
-        $fromTo[] = [ $contents, $expected];
100
+		$fromTo[] = [ $contents, $expected];
101 101
 
102
-        $contents = <<<'EOD'
102
+		$contents = <<<'EOD'
103 103
 $baseNamespace = 'Example\Sdk\Endpoints';
104 104
 EOD;
105
-        $expected = <<<'EOD'
105
+		$expected = <<<'EOD'
106 106
 $baseNamespace = 'Strauss\Example\Sdk\Endpoints';
107 107
 EOD;
108
-        $fromTo[] = [ $contents, $expected];
108
+		$fromTo[] = [ $contents, $expected];
109 109
 
110
-        return $fromTo;
111
-    }
110
+		return $fromTo;
111
+	}
112 112
 }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -31,25 +31,25 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @dataProvider pairTestDataProvider
33 33
      */
34
-    public function test_test($phpString, $expected)
34
+    public function test_test( $phpString, $expected )
35 35
     {
36 36
 
37
-        $config = $this->createMock(StraussConfig::class);
37
+        $config = $this->createMock( StraussConfig::class );
38 38
 
39 39
         $original = 'Example\Sdk\Endpoints';
40 40
         $replacement = 'Strauss\Example\Sdk\Endpoints';
41 41
 
42
-        $replacer = new Prefixer($config, __DIR__);
42
+        $replacer = new Prefixer( $config, __DIR__ );
43 43
 
44
-        $result = $replacer->replaceNamespace($phpString, $original, $replacement);
44
+        $result = $replacer->replaceNamespace( $phpString, $original, $replacement );
45 45
 
46
-        $this->assertEquals($expected, $result);
46
+        $this->assertEquals( $expected, $result );
47 47
     }
48 48
 
49 49
     public function pairTestDataProvider()
50 50
     {
51 51
 
52
-        $fromTo = [];
52
+        $fromTo = [ ];
53 53
 
54 54
         $contents = <<<'EOD'
55 55
 $baseNamespace = "\Example\Sdk\Endpoints";
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $expected = <<<'EOD'
58 58
 $baseNamespace = "\Strauss\Example\Sdk\Endpoints";
59 59
 EOD;
60
-        $fromTo[] = [ $contents, $expected];
60
+        $fromTo[ ] = [ $contents, $expected ];
61 61
 
62 62
         $contents = <<<'EOD'
63 63
 $baseNamespace = "Example\\Sdk\\Endpoints";
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $expected = <<<'EOD'
66 66
 $baseNamespace = "Strauss\\Example\\Sdk\\Endpoints";
67 67
 EOD;
68
-        $fromTo[] = [ $contents, $expected];
68
+        $fromTo[ ] = [ $contents, $expected ];
69 69
 
70 70
         $contents = <<<'EOD'
71 71
 $baseNamespace = "Example\Sdk\Endpoints";
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $expected = <<<'EOD'
74 74
 $baseNamespace = "Strauss\Example\Sdk\Endpoints";
75 75
 EOD;
76
-        $fromTo[] = [ $contents, $expected];
76
+        $fromTo[ ] = [ $contents, $expected ];
77 77
 
78 78
         $contents = <<<'EOD'
79 79
 $baseNamespace = '\\Example\\Sdk\\Endpoints';
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $expected = <<<'EOD'
82 82
 $baseNamespace = '\\Strauss\\Example\\Sdk\\Endpoints';
83 83
 EOD;
84
-        $fromTo[] = [ $contents, $expected];
84
+        $fromTo[ ] = [ $contents, $expected ];
85 85
 
86 86
         $contents = <<<'EOD'
87 87
 $baseNamespace = '\Example\Sdk\Endpoints';
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $expected = <<<'EOD'
90 90
 $baseNamespace = '\Strauss\Example\Sdk\Endpoints';
91 91
 EOD;
92
-        $fromTo[] = [ $contents, $expected];
92
+        $fromTo[ ] = [ $contents, $expected ];
93 93
 
94 94
         $contents = <<<'EOD'
95 95
 $baseNamespace = 'Example\\Sdk\\Endpoints';
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $expected = <<<'EOD'
98 98
 $baseNamespace = 'Strauss\\Example\\Sdk\\Endpoints';
99 99
 EOD;
100
-        $fromTo[] = [ $contents, $expected];
100
+        $fromTo[ ] = [ $contents, $expected ];
101 101
 
102 102
         $contents = <<<'EOD'
103 103
 $baseNamespace = 'Example\Sdk\Endpoints';
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $expected = <<<'EOD'
106 106
 $baseNamespace = 'Strauss\Example\Sdk\Endpoints';
107 107
 EOD;
108
-        $fromTo[] = [ $contents, $expected];
108
+        $fromTo[ ] = [ $contents, $expected ];
109 109
 
110 110
         return $fromTo;
111 111
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,16 +23,14 @@  discard block
 block discarded – undo
23 23
  * @package BrianHenryIE\Strauss\Tests\Issues
24 24
  * @coversNothing
25 25
  */
26
-class MozartIssue129Test extends TestCase
27
-{
26
+class MozartIssue129Test extends TestCase {
28 27
 
29 28
     /**
30 29
      * @author BrianHenryIE
31 30
      *
32 31
      * @dataProvider pairTestDataProvider
33 32
      */
34
-    public function test_test($phpString, $expected)
35
-    {
33
+    public function test_test($phpString, $expected) {
36 34
 
37 35
         $config = $this->createMock(StraussConfig::class);
38 36
 
@@ -46,8 +44,7 @@  discard block
 block discarded – undo
46 44
         $this->assertEquals($expected, $result);
47 45
     }
48 46
 
49
-    public function pairTestDataProvider()
50
-    {
47
+    public function pairTestDataProvider() {
51 48
 
52 49
         $fromTo = [];
53 50
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -53,58 +53,58 @@
 block discarded – undo
53 53
 
54 54
         $contents = <<<'EOD'
55 55
 $baseNamespace = "\Example\Sdk\Endpoints";
56
-EOD;
56
+eod;
57 57
         $expected = <<<'EOD'
58 58
 $baseNamespace = "\Strauss\Example\Sdk\Endpoints";
59
-EOD;
59
+eod;
60 60
         $fromTo[] = [ $contents, $expected];
61 61
 
62 62
         $contents = <<<'EOD'
63 63
 $baseNamespace = "Example\\Sdk\\Endpoints";
64
-EOD;
64
+eod;
65 65
         $expected = <<<'EOD'
66 66
 $baseNamespace = "Strauss\\Example\\Sdk\\Endpoints";
67
-EOD;
67
+eod;
68 68
         $fromTo[] = [ $contents, $expected];
69 69
 
70 70
         $contents = <<<'EOD'
71 71
 $baseNamespace = "Example\Sdk\Endpoints";
72
-EOD;
72
+eod;
73 73
         $expected = <<<'EOD'
74 74
 $baseNamespace = "Strauss\Example\Sdk\Endpoints";
75
-EOD;
75
+eod;
76 76
         $fromTo[] = [ $contents, $expected];
77 77
 
78 78
         $contents = <<<'EOD'
79 79
 $baseNamespace = '\\Example\\Sdk\\Endpoints';
80
-EOD;
80
+eod;
81 81
         $expected = <<<'EOD'
82 82
 $baseNamespace = '\\Strauss\\Example\\Sdk\\Endpoints';
83
-EOD;
83
+eod;
84 84
         $fromTo[] = [ $contents, $expected];
85 85
 
86 86
         $contents = <<<'EOD'
87 87
 $baseNamespace = '\Example\Sdk\Endpoints';
88
-EOD;
88
+eod;
89 89
         $expected = <<<'EOD'
90 90
 $baseNamespace = '\Strauss\Example\Sdk\Endpoints';
91
-EOD;
91
+eod;
92 92
         $fromTo[] = [ $contents, $expected];
93 93
 
94 94
         $contents = <<<'EOD'
95 95
 $baseNamespace = 'Example\\Sdk\\Endpoints';
96
-EOD;
96
+eod;
97 97
         $expected = <<<'EOD'
98 98
 $baseNamespace = 'Strauss\\Example\\Sdk\\Endpoints';
99
-EOD;
99
+eod;
100 100
         $fromTo[] = [ $contents, $expected];
101 101
 
102 102
         $contents = <<<'EOD'
103 103
 $baseNamespace = 'Example\Sdk\Endpoints';
104
-EOD;
104
+eod;
105 105
         $expected = <<<'EOD'
106 106
 $baseNamespace = 'Strauss\Example\Sdk\Endpoints';
107
-EOD;
107
+eod;
108 108
         $fromTo[] = [ $contents, $expected];
109 109
 
110 110
         return $fromTo;
Please login to merge, or discard this patch.
vendor/brianhenryie/strauss/tests/Issues/MozartIssue106Test.php 4 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
 class MozartIssue106Test extends IntegrationTestCase
19 19
 {
20 20
 
21
-    /**
22
-     * Issue #106, multiple classmap prefixing.
23
-     *
24
-     * @see https://github.com/coenjacobs/mozart/issues/106
25
-     */
26
-    public function test_only_prefix_classmap_classes_once()
27
-    {
21
+	/**
22
+	 * Issue #106, multiple classmap prefixing.
23
+	 *
24
+	 * @see https://github.com/coenjacobs/mozart/issues/106
25
+	 */
26
+	public function test_only_prefix_classmap_classes_once()
27
+	{
28 28
 
29
-        $composerJsonString = <<<'EOD'
29
+		$composerJsonString = <<<'EOD'
30 30
 {
31 31
 	"name": "brianhenryie/mozart-issue-106",
32 32
 	"require": {
@@ -42,25 +42,25 @@  discard block
 block discarded – undo
42 42
 }
43 43
 EOD;
44 44
 
45
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
45
+		file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
46 46
 
47
-        chdir($this->testsWorkingDir);
47
+		chdir($this->testsWorkingDir);
48 48
 
49
-        exec('composer install');
49
+		exec('composer install');
50 50
 
51
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
52
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
51
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
52
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
53 53
 
54
-        $mozartCompose = new Compose();
54
+		$mozartCompose = new Compose();
55 55
 
56
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
56
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
57 57
 
58
-        $php_string = file_get_contents($this->testsWorkingDir .'/strauss/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php');
58
+		$php_string = file_get_contents($this->testsWorkingDir .'/strauss/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php');
59 59
 
60
-        // Confirm problem is gone.
61
-        $this->assertStringNotContainsString('class BrianHenryIE_Strauss_BrianHenryIE_Strauss_Normalizer extends', $php_string, 'Double prefixing problem still present.');
60
+		// Confirm problem is gone.
61
+		$this->assertStringNotContainsString('class BrianHenryIE_Strauss_BrianHenryIE_Strauss_Normalizer extends', $php_string, 'Double prefixing problem still present.');
62 62
 
63
-        // Confirm solution is correct.
64
-        $this->assertStringContainsString('class BrianHenryIE_Strauss_Normalizer extends', $php_string, 'Class name not properly prefixed.');
65
-    }
63
+		// Confirm solution is correct.
64
+		$this->assertStringContainsString('class BrianHenryIE_Strauss_Normalizer extends', $php_string, 'Class name not properly prefixed.');
65
+	}
66 66
 }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,25 +42,25 @@
 block discarded – undo
42 42
 }
43 43
 EOD;
44 44
 
45
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
45
+        file_put_contents( $this->testsWorkingDir . '/composer.json', $composerJsonString );
46 46
 
47
-        chdir($this->testsWorkingDir);
47
+        chdir( $this->testsWorkingDir );
48 48
 
49
-        exec('composer install');
49
+        exec( 'composer install' );
50 50
 
51
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
52
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
51
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
52
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
53 53
 
54 54
         $mozartCompose = new Compose();
55 55
 
56
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
56
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
57 57
 
58
-        $php_string = file_get_contents($this->testsWorkingDir .'/strauss/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php');
58
+        $php_string = file_get_contents( $this->testsWorkingDir . '/strauss/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php' );
59 59
 
60 60
         // Confirm problem is gone.
61
-        $this->assertStringNotContainsString('class BrianHenryIE_Strauss_BrianHenryIE_Strauss_Normalizer extends', $php_string, 'Double prefixing problem still present.');
61
+        $this->assertStringNotContainsString( 'class BrianHenryIE_Strauss_BrianHenryIE_Strauss_Normalizer extends', $php_string, 'Double prefixing problem still present.' );
62 62
 
63 63
         // Confirm solution is correct.
64
-        $this->assertStringContainsString('class BrianHenryIE_Strauss_Normalizer extends', $php_string, 'Class name not properly prefixed.');
64
+        $this->assertStringContainsString( 'class BrianHenryIE_Strauss_Normalizer extends', $php_string, 'Class name not properly prefixed.' );
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,16 +15,14 @@
 block discarded – undo
15 15
  * Class MozartIssue106Test
16 16
  * @coversNothing
17 17
  */
18
-class MozartIssue106Test extends IntegrationTestCase
19
-{
18
+class MozartIssue106Test extends IntegrationTestCase {
20 19
 
21 20
     /**
22 21
      * Issue #106, multiple classmap prefixing.
23 22
      *
24 23
      * @see https://github.com/coenjacobs/mozart/issues/106
25 24
      */
26
-    public function test_only_prefix_classmap_classes_once()
27
-    {
25
+    public function test_only_prefix_classmap_classes_once() {
28 26
 
29 27
         $composerJsonString = <<<'EOD'
30 28
 {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 		}
75 75
 	}
76 76
 }
77
-EOD;
77
+eod;
78 78
 
79 79
         file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
80 80
 
Please login to merge, or discard this patch.
vendor/brianhenryie/strauss/tests/Issues/MozartIssue108Test.php 4 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
 class MozartIssue108Test extends IntegrationTestCase
29 29
 {
30 30
 
31
-    /**
32
-     * WooCommerce Action Scheduler ... has no autoload key. But also needs some Mozart patches to work correctly.
33
-     */
34
-    public function test_it_does_not_make_classname_replacement_inside_namespaced_file()
35
-    {
31
+	/**
32
+	 * WooCommerce Action Scheduler ... has no autoload key. But also needs some Mozart patches to work correctly.
33
+	 */
34
+	public function test_it_does_not_make_classname_replacement_inside_namespaced_file()
35
+	{
36 36
 
37
-        $composerJsonString = <<<'EOD'
37
+		$composerJsonString = <<<'EOD'
38 38
 {
39 39
   "require": {
40 40
     "woocommerce/action-scheduler": "dev-master",
@@ -58,31 +58,31 @@  discard block
 block discarded – undo
58 58
 }
59 59
 EOD;
60 60
 
61
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
61
+		file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
62 62
 
63
-        chdir($this->testsWorkingDir);
63
+		chdir($this->testsWorkingDir);
64 64
 
65
-        exec('composer install');
65
+		exec('composer install');
66 66
 
67
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
68
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
67
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
68
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
69 69
 
70
-        $mozartCompose = new Compose();
70
+		$mozartCompose = new Compose();
71 71
 
72
-        $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
72
+		$mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
73 73
 
74
-        $pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/deliciousbrains/wp-background-processing/classes/wp-async-request.php');
75
-        $this->assertStringContainsString('abstract class Strauss_WP_Async_Request', $pdf_contents);
74
+		$pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/deliciousbrains/wp-background-processing/classes/wp-async-request.php');
75
+		$this->assertStringContainsString('abstract class Strauss_WP_Async_Request', $pdf_contents);
76 76
 
77 77
 //        $pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/mtdowling/cron-expression/src/Cron/CronExpression.php');
78 78
 //        $this->assertStringContainsString('namespace Strauss\\CronExpression', $pdf_contents);
79 79
 
80
-        $pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/woocommerce/action-scheduler/lib/cron-expression/CronExpression.php');
81
-        $this->assertStringContainsString('class Strauss_CronExpression', $pdf_contents);
80
+		$pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/woocommerce/action-scheduler/lib/cron-expression/CronExpression.php');
81
+		$this->assertStringContainsString('class Strauss_CronExpression', $pdf_contents);
82 82
 
83
-        $pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php');
84
-        $this->assertStringContainsString('if ( ! is_a( $recurrence, \'Strauss_CronExpression\' ) ) {', $pdf_contents);
83
+		$pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php');
84
+		$this->assertStringContainsString('if ( ! is_a( $recurrence, \'Strauss_CronExpression\' ) ) {', $pdf_contents);
85 85
 
86
-        $this->markTestIncomplete('Shouldnt use dev-master, should use a published package.');
87
-    }
86
+		$this->markTestIncomplete('Shouldnt use dev-master, should use a published package.');
87
+	}
88 88
 }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -58,31 +58,31 @@
 block discarded – undo
58 58
 }
59 59
 EOD;
60 60
 
61
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
61
+        file_put_contents( $this->testsWorkingDir . '/composer.json', $composerJsonString );
62 62
 
63
-        chdir($this->testsWorkingDir);
63
+        chdir( $this->testsWorkingDir );
64 64
 
65
-        exec('composer install');
65
+        exec( 'composer install' );
66 66
 
67
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
68
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
67
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
68
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
69 69
 
70 70
         $mozartCompose = new Compose();
71 71
 
72
-        $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
72
+        $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
73 73
 
74
-        $pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/deliciousbrains/wp-background-processing/classes/wp-async-request.php');
75
-        $this->assertStringContainsString('abstract class Strauss_WP_Async_Request', $pdf_contents);
74
+        $pdf_contents = file_get_contents( $this->testsWorkingDir . 'strauss/deliciousbrains/wp-background-processing/classes/wp-async-request.php' );
75
+        $this->assertStringContainsString( 'abstract class Strauss_WP_Async_Request', $pdf_contents );
76 76
 
77 77
 //        $pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/mtdowling/cron-expression/src/Cron/CronExpression.php');
78 78
 //        $this->assertStringContainsString('namespace Strauss\\CronExpression', $pdf_contents);
79 79
 
80
-        $pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/woocommerce/action-scheduler/lib/cron-expression/CronExpression.php');
81
-        $this->assertStringContainsString('class Strauss_CronExpression', $pdf_contents);
80
+        $pdf_contents = file_get_contents( $this->testsWorkingDir . 'strauss/woocommerce/action-scheduler/lib/cron-expression/CronExpression.php' );
81
+        $this->assertStringContainsString( 'class Strauss_CronExpression', $pdf_contents );
82 82
 
83
-        $pdf_contents = file_get_contents($this->testsWorkingDir .'strauss/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php');
84
-        $this->assertStringContainsString('if ( ! is_a( $recurrence, \'Strauss_CronExpression\' ) ) {', $pdf_contents);
83
+        $pdf_contents = file_get_contents( $this->testsWorkingDir . 'strauss/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php' );
84
+        $this->assertStringContainsString( 'if ( ! is_a( $recurrence, \'Strauss_CronExpression\' ) ) {', $pdf_contents );
85 85
 
86
-        $this->markTestIncomplete('Shouldnt use dev-master, should use a published package.');
86
+        $this->markTestIncomplete( 'Shouldnt use dev-master, should use a published package.' );
87 87
     }
88 88
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,14 +25,12 @@
 block discarded – undo
25 25
  * Class MozartIssue108Test
26 26
  * @coversNothing
27 27
  */
28
-class MozartIssue108Test extends IntegrationTestCase
29
-{
28
+class MozartIssue108Test extends IntegrationTestCase {
30 29
 
31 30
     /**
32 31
      * WooCommerce Action Scheduler ... has no autoload key. But also needs some Mozart patches to work correctly.
33 32
      */
34
-    public function test_it_does_not_make_classname_replacement_inside_namespaced_file()
35
-    {
33
+    public function test_it_does_not_make_classname_replacement_inside_namespaced_file() {
36 34
 
37 35
         $composerJsonString = <<<'EOD'
38 36
 {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     }
37 37
   }
38 38
 }
39
-EOD;
39
+eod;
40 40
 
41 41
         file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
42 42
 
Please login to merge, or discard this patch.
vendor/brianhenryie/strauss/tests/Issues/MozartIssue90Test.php 4 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
 class MozartIssue90Test extends IntegrationTestCase
19 19
 {
20 20
 
21
-    /**
22
-     * Issue 90. Needs "iio/libmergepdf".
23
-     *
24
-     * Error: "File already exists at path: classmap_directory/tecnickcom/tcpdf/tcpdf.php".
25
-     */
26
-    public function testLibpdfmergeSucceeds()
27
-    {
21
+	/**
22
+	 * Issue 90. Needs "iio/libmergepdf".
23
+	 *
24
+	 * Error: "File already exists at path: classmap_directory/tecnickcom/tcpdf/tcpdf.php".
25
+	 */
26
+	public function testLibpdfmergeSucceeds()
27
+	{
28 28
 
29
-        $composerJsonString = <<<'EOD'
29
+		$composerJsonString = <<<'EOD'
30 30
 {
31 31
 	"name": "brianhenryie/mozart-issue-90",
32 32
 	"require": {
@@ -41,24 +41,24 @@  discard block
 block discarded – undo
41 41
 }
42 42
 EOD;
43 43
 
44
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
44
+		file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
45 45
 
46
-        chdir($this->testsWorkingDir);
46
+		chdir($this->testsWorkingDir);
47 47
 
48
-        exec('composer install');
48
+		exec('composer install');
49 49
 
50
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
51
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
50
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
51
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
52 52
 
53
-        $mozartCompose = new Compose();
53
+		$mozartCompose = new Compose();
54 54
 
55
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
55
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
56 56
 
57
-        $this->assertEquals(0, $result);
57
+		$this->assertEquals(0, $result);
58 58
 
59
-        // This test would only fail on Windows?
60
-        $this->assertDirectoryDoesNotExist($this->testsWorkingDir .'strauss/iio/libmergepdf/vendor/iio/libmergepdf/tcpdi');
59
+		// This test would only fail on Windows?
60
+		$this->assertDirectoryDoesNotExist($this->testsWorkingDir .'strauss/iio/libmergepdf/vendor/iio/libmergepdf/tcpdi');
61 61
 
62
-        $this->assertFileExists($this->testsWorkingDir .'/strauss/iio/libmergepdf/tcpdi/tcpdi.php');
63
-    }
62
+		$this->assertFileExists($this->testsWorkingDir .'/strauss/iio/libmergepdf/tcpdi/tcpdi.php');
63
+	}
64 64
 }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -41,24 +41,24 @@
 block discarded – undo
41 41
 }
42 42
 EOD;
43 43
 
44
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
44
+        file_put_contents( $this->testsWorkingDir . '/composer.json', $composerJsonString );
45 45
 
46
-        chdir($this->testsWorkingDir);
46
+        chdir( $this->testsWorkingDir );
47 47
 
48
-        exec('composer install');
48
+        exec( 'composer install' );
49 49
 
50
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
51
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
50
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
51
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
52 52
 
53 53
         $mozartCompose = new Compose();
54 54
 
55
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
55
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
56 56
 
57
-        $this->assertEquals(0, $result);
57
+        $this->assertEquals( 0, $result );
58 58
 
59 59
         // This test would only fail on Windows?
60
-        $this->assertDirectoryDoesNotExist($this->testsWorkingDir .'strauss/iio/libmergepdf/vendor/iio/libmergepdf/tcpdi');
60
+        $this->assertDirectoryDoesNotExist( $this->testsWorkingDir . 'strauss/iio/libmergepdf/vendor/iio/libmergepdf/tcpdi' );
61 61
 
62
-        $this->assertFileExists($this->testsWorkingDir .'/strauss/iio/libmergepdf/tcpdi/tcpdi.php');
62
+        $this->assertFileExists( $this->testsWorkingDir . '/strauss/iio/libmergepdf/tcpdi/tcpdi.php' );
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,16 +15,14 @@
 block discarded – undo
15 15
  * @package BrianHenryIE\Strauss\Tests\Issues
16 16
  * @coversNothing
17 17
  */
18
-class MozartIssue90Test extends IntegrationTestCase
19
-{
18
+class MozartIssue90Test extends IntegrationTestCase {
20 19
 
21 20
     /**
22 21
      * Issue 90. Needs "iio/libmergepdf".
23 22
      *
24 23
      * Error: "File already exists at path: classmap_directory/tecnickcom/tcpdf/tcpdf.php".
25 24
      */
26
-    public function testLibpdfmergeSucceeds()
27
-    {
25
+    public function testLibpdfmergeSucceeds() {
28 26
 
29 27
         $composerJsonString = <<<'EOD'
30 28
 {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 		}
75 75
 	}
76 76
 }
77
-EOD;
77
+eod;
78 78
 
79 79
         file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
80 80
 
Please login to merge, or discard this patch.
vendor/brianhenryie/strauss/tests/Issues/MozartIssue86Test.php 4 patches
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@  discard block
 block discarded – undo
19 19
 class MozartIssue86Test extends IntegrationTestCase
20 20
 {
21 21
 
22
-    /**
23
-     * Issue #86 – "class as" appeared in a comment and later the keyword as was prefixed!
24
-     *
25
-     * Solved by https://github.com/ziodave
26
-     */
27
-    public function test_do_not_parse_comments_to_classnames()
28
-    {
29
-
30
-        $composerJsonString = <<<'EOD'
22
+	/**
23
+	 * Issue #86 – "class as" appeared in a comment and later the keyword as was prefixed!
24
+	 *
25
+	 * Solved by https://github.com/ziodave
26
+	 */
27
+	public function test_do_not_parse_comments_to_classnames()
28
+	{
29
+
30
+		$composerJsonString = <<<'EOD'
31 31
 {
32 32
 	"name": "brianhenryie/mozart-issue-86",
33 33
 	"require": {
@@ -50,38 +50,38 @@  discard block
 block discarded – undo
50 50
 }
51 51
 EOD;
52 52
 
53
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
53
+		file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
54 54
 
55
-        chdir($this->testsWorkingDir);
55
+		chdir($this->testsWorkingDir);
56 56
 
57
-        exec('composer install');
57
+		exec('composer install');
58 58
 
59
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
60
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
59
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
60
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
61 61
 
62
-        $mozartCompose = new Compose();
62
+		$mozartCompose = new Compose();
63 63
 
64
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
64
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
65 65
 
66
-        $php_string = file_get_contents($this->testsWorkingDir .'/strauss/pear/pear_exception/PEAR/Exception.php');
66
+		$php_string = file_get_contents($this->testsWorkingDir .'/strauss/pear/pear_exception/PEAR/Exception.php');
67 67
 
68
-        // Confirm problem is gone.
69
-        $this->assertStringNotContainsString('foreach (self::$_observers Mozart_as $func) {', $php_string);
68
+		// Confirm problem is gone.
69
+		$this->assertStringNotContainsString('foreach (self::$_observers Mozart_as $func) {', $php_string);
70 70
 
71
-        // Confirm solution is correct.
72
-        $this->assertStringContainsString('foreach (self::$_observers as $func) {', $php_string);
73
-    }
71
+		// Confirm solution is correct.
72
+		$this->assertStringContainsString('foreach (self::$_observers as $func) {', $php_string);
73
+	}
74 74
 
75 75
 
76
-    /**
77
-     * Like issue #86, when prefixing WP_Dependency_Installer, words in comments were
78
-     *
79
-     * @see https://github.com/afragen/wp-dependency-installer/
80
-     */
81
-    public function test_do_not_parse_comments_to_classnames_wp_dependency_installer()
82
-    {
76
+	/**
77
+	 * Like issue #86, when prefixing WP_Dependency_Installer, words in comments were
78
+	 *
79
+	 * @see https://github.com/afragen/wp-dependency-installer/
80
+	 */
81
+	public function test_do_not_parse_comments_to_classnames_wp_dependency_installer()
82
+	{
83 83
 
84
-        $composerJsonString = <<<'EOD'
84
+		$composerJsonString = <<<'EOD'
85 85
 {
86 86
 	"name": "brianhenryie/mozart-issue-86-2",
87 87
 	"require": {
@@ -96,25 +96,25 @@  discard block
 block discarded – undo
96 96
 }
97 97
 EOD;
98 98
 
99
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
99
+		file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
100 100
 
101
-        chdir($this->testsWorkingDir);
101
+		chdir($this->testsWorkingDir);
102 102
 
103
-        exec('composer install');
103
+		exec('composer install');
104 104
 
105
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
106
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
105
+		$inputInterfaceMock = $this->createMock(InputInterface::class);
106
+		$outputInterfaceMock = $this->createMock(OutputInterface::class);
107 107
 
108
-        $mozartCompose = new Compose();
108
+		$mozartCompose = new Compose();
109 109
 
110
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
110
+		$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
111 111
 
112
-        $php_string = file_get_contents($this->testsWorkingDir .'/strauss/afragen/wp-dependency-installer/wp-dependency-installer.php');
112
+		$php_string = file_get_contents($this->testsWorkingDir .'/strauss/afragen/wp-dependency-installer/wp-dependency-installer.php');
113 113
 
114
-        // Confirm problem is gone.
115
-        $this->assertStringNotContainsString('Path BrianHenryIE_Strauss_to plugin or theme', $php_string, 'Text in comment still prefixed.');
114
+		// Confirm problem is gone.
115
+		$this->assertStringNotContainsString('Path BrianHenryIE_Strauss_to plugin or theme', $php_string, 'Text in comment still prefixed.');
116 116
 
117
-        // Confirm solution is correct.
118
-        $this->assertStringContainsString('BrianHenryIE_Strauss_WP_Dependency_Installer', $php_string, 'Class name not properly prefixed.');
119
-    }
117
+		// Confirm solution is correct.
118
+		$this->assertStringContainsString('BrianHenryIE_Strauss_WP_Dependency_Installer', $php_string, 'Class name not properly prefixed.');
119
+	}
120 120
 }
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -50,26 +50,26 @@  discard block
 block discarded – undo
50 50
 }
51 51
 EOD;
52 52
 
53
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
53
+        file_put_contents( $this->testsWorkingDir . '/composer.json', $composerJsonString );
54 54
 
55
-        chdir($this->testsWorkingDir);
55
+        chdir( $this->testsWorkingDir );
56 56
 
57
-        exec('composer install');
57
+        exec( 'composer install' );
58 58
 
59
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
60
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
59
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
60
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
61 61
 
62 62
         $mozartCompose = new Compose();
63 63
 
64
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
64
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
65 65
 
66
-        $php_string = file_get_contents($this->testsWorkingDir .'/strauss/pear/pear_exception/PEAR/Exception.php');
66
+        $php_string = file_get_contents( $this->testsWorkingDir . '/strauss/pear/pear_exception/PEAR/Exception.php' );
67 67
 
68 68
         // Confirm problem is gone.
69
-        $this->assertStringNotContainsString('foreach (self::$_observers Mozart_as $func) {', $php_string);
69
+        $this->assertStringNotContainsString( 'foreach (self::$_observers Mozart_as $func) {', $php_string );
70 70
 
71 71
         // Confirm solution is correct.
72
-        $this->assertStringContainsString('foreach (self::$_observers as $func) {', $php_string);
72
+        $this->assertStringContainsString( 'foreach (self::$_observers as $func) {', $php_string );
73 73
     }
74 74
 
75 75
 
@@ -96,25 +96,25 @@  discard block
 block discarded – undo
96 96
 }
97 97
 EOD;
98 98
 
99
-        file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
99
+        file_put_contents( $this->testsWorkingDir . '/composer.json', $composerJsonString );
100 100
 
101
-        chdir($this->testsWorkingDir);
101
+        chdir( $this->testsWorkingDir );
102 102
 
103
-        exec('composer install');
103
+        exec( 'composer install' );
104 104
 
105
-        $inputInterfaceMock = $this->createMock(InputInterface::class);
106
-        $outputInterfaceMock = $this->createMock(OutputInterface::class);
105
+        $inputInterfaceMock = $this->createMock( InputInterface::class );
106
+        $outputInterfaceMock = $this->createMock( OutputInterface::class );
107 107
 
108 108
         $mozartCompose = new Compose();
109 109
 
110
-        $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
110
+        $result = $mozartCompose->run( $inputInterfaceMock, $outputInterfaceMock );
111 111
 
112
-        $php_string = file_get_contents($this->testsWorkingDir .'/strauss/afragen/wp-dependency-installer/wp-dependency-installer.php');
112
+        $php_string = file_get_contents( $this->testsWorkingDir . '/strauss/afragen/wp-dependency-installer/wp-dependency-installer.php' );
113 113
 
114 114
         // Confirm problem is gone.
115
-        $this->assertStringNotContainsString('Path BrianHenryIE_Strauss_to plugin or theme', $php_string, 'Text in comment still prefixed.');
115
+        $this->assertStringNotContainsString( 'Path BrianHenryIE_Strauss_to plugin or theme', $php_string, 'Text in comment still prefixed.' );
116 116
 
117 117
         // Confirm solution is correct.
118
-        $this->assertStringContainsString('BrianHenryIE_Strauss_WP_Dependency_Installer', $php_string, 'Class name not properly prefixed.');
118
+        $this->assertStringContainsString( 'BrianHenryIE_Strauss_WP_Dependency_Installer', $php_string, 'Class name not properly prefixed.' );
119 119
     }
120 120
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,16 +16,14 @@  discard block
 block discarded – undo
16 16
  * Class NamespaceReplacerIntegrationTest
17 17
  * @coversNothing
18 18
  */
19
-class MozartIssue86Test extends IntegrationTestCase
20
-{
19
+class MozartIssue86Test extends IntegrationTestCase {
21 20
 
22 21
     /**
23 22
      * Issue #86 – "class as" appeared in a comment and later the keyword as was prefixed!
24 23
      *
25 24
      * Solved by https://github.com/ziodave
26 25
      */
27
-    public function test_do_not_parse_comments_to_classnames()
28
-    {
26
+    public function test_do_not_parse_comments_to_classnames() {
29 27
 
30 28
         $composerJsonString = <<<'EOD'
31 29
 {
@@ -78,8 +76,7 @@  discard block
 block discarded – undo
78 76
      *
79 77
      * @see https://github.com/afragen/wp-dependency-installer/
80 78
      */
81
-    public function test_do_not_parse_comments_to_classnames_wp_dependency_installer()
82
-    {
79
+    public function test_do_not_parse_comments_to_classnames_wp_dependency_installer() {
83 80
 
84 81
         $composerJsonString = <<<'EOD'
85 82
 {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 		}
49 49
 	}
50 50
 }
51
-EOD;
51
+eod;
52 52
 
53 53
         file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
54 54
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 		}
95 95
 	}
96 96
 }
97
-EOD;
97
+eod;
98 98
 
99 99
         file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString);
100 100
 
Please login to merge, or discard this patch.