Completed
Push — master ( 40b8f9...e7d3a7 )
by Daryl
01:32
created
RoboFile.php 2 patches
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -8,56 +8,56 @@
 block discarded – undo
8 8
 {
9 9
     // define public methods as commands
10 10
 
11
-	function scripts() {
11
+    function scripts() {
12 12
 
13
-		$this->taskMinify('assets/maps.js')
14
-			->to('dist/scripts/maps.min.js')
15
-			->run();
13
+        $this->taskMinify('assets/maps.js')
14
+            ->to('dist/scripts/maps.min.js')
15
+            ->run();
16 16
 
17
-	}
17
+    }
18 18
 
19
-	function tests()
20
-	{
19
+    function tests()
20
+    {
21 21
 
22
-		$this->taskExec('mysql -e "CREATE DATABASE IF NOT EXISTS test_db"')->run();
23
-		$this->taskExec('mysql -e "GRANT ALL ON test_db.* to \'root\'@\'%\'"')->run();
24
-		$this->taskSvnStack()
25
-			->checkout('https://develop.svn.wordpress.org/tags/4.8.3 wp-tests')
26
-			->run();
22
+        $this->taskExec('mysql -e "CREATE DATABASE IF NOT EXISTS test_db"')->run();
23
+        $this->taskExec('mysql -e "GRANT ALL ON test_db.* to \'root\'@\'%\'"')->run();
24
+        $this->taskSvnStack()
25
+            ->checkout('https://develop.svn.wordpress.org/tags/4.8.3 wp-tests')
26
+            ->run();
27 27
 
28
-		$this->setTestConfig();
29
-		$this->phpunit();
28
+        $this->setTestConfig();
29
+        $this->phpunit();
30 30
 
31
-	}
31
+    }
32 32
 
33
-	function phpunit()
34
-	{
35
-		$this->taskPhpUnit('vendor/bin/phpunit')
36
-		     ->configFile('tests/phpunit.xml.dist')
37
-		     ->run();
38
-	}
33
+    function phpunit()
34
+    {
35
+        $this->taskPhpUnit('vendor/bin/phpunit')
36
+                ->configFile('tests/phpunit.xml.dist')
37
+                ->run();
38
+    }
39 39
 
40
-	private function setTestConfig()
41
-	{
40
+    private function setTestConfig()
41
+    {
42 42
 
43
-		if (file_exists('wp-tests/wp-tests-config-sample.php')) {
44
-			copy('wp-tests/wp-tests-config-sample.php', 'wp-tests/wp-tests-config.php');
45
-		}
43
+        if (file_exists('wp-tests/wp-tests-config-sample.php')) {
44
+            copy('wp-tests/wp-tests-config-sample.php', 'wp-tests/wp-tests-config.php');
45
+        }
46 46
 
47
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
48
-			->from('youremptytestdbnamehere')
49
-			->to('test_db')
50
-			->run();
47
+        $this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
48
+            ->from('youremptytestdbnamehere')
49
+            ->to('test_db')
50
+            ->run();
51 51
 
52
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
53
-			->from('yourusernamehere')
54
-			->to('root')
55
-			->run();
52
+        $this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
53
+            ->from('yourusernamehere')
54
+            ->to('root')
55
+            ->run();
56 56
 
57
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
58
-			->from('yourpasswordhere')
59
-			->to('')
60
-			->run();
61
-	}
57
+        $this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
58
+            ->from('yourpasswordhere')
59
+            ->to('')
60
+            ->run();
61
+    }
62 62
 
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 
11 11
 	function scripts() {
12 12
 
13
-		$this->taskMinify('assets/maps.js')
14
-			->to('dist/scripts/maps.min.js')
13
+		$this->taskMinify( 'assets/maps.js' )
14
+			->to( 'dist/scripts/maps.min.js' )
15 15
 			->run();
16 16
 
17 17
 	}
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 	function tests()
20 20
 	{
21 21
 
22
-		$this->taskExec('mysql -e "CREATE DATABASE IF NOT EXISTS test_db"')->run();
23
-		$this->taskExec('mysql -e "GRANT ALL ON test_db.* to \'root\'@\'%\'"')->run();
22
+		$this->taskExec( 'mysql -e "CREATE DATABASE IF NOT EXISTS test_db"' )->run();
23
+		$this->taskExec( 'mysql -e "GRANT ALL ON test_db.* to \'root\'@\'%\'"' )->run();
24 24
 		$this->taskSvnStack()
25
-			->checkout('https://develop.svn.wordpress.org/tags/4.8.3 wp-tests')
25
+			->checkout( 'https://develop.svn.wordpress.org/tags/4.8.3 wp-tests' )
26 26
 			->run();
27 27
 
28 28
 		$this->setTestConfig();
@@ -32,31 +32,31 @@  discard block
 block discarded – undo
32 32
 
33 33
 	function phpunit()
34 34
 	{
35
-		$this->taskPhpUnit('vendor/bin/phpunit')
36
-		     ->configFile('tests/phpunit.xml.dist')
35
+		$this->taskPhpUnit( 'vendor/bin/phpunit' )
36
+		     ->configFile( 'tests/phpunit.xml.dist' )
37 37
 		     ->run();
38 38
 	}
39 39
 
40 40
 	private function setTestConfig()
41 41
 	{
42 42
 
43
-		if (file_exists('wp-tests/wp-tests-config-sample.php')) {
44
-			copy('wp-tests/wp-tests-config-sample.php', 'wp-tests/wp-tests-config.php');
43
+		if ( file_exists( 'wp-tests/wp-tests-config-sample.php' ) ) {
44
+			copy( 'wp-tests/wp-tests-config-sample.php', 'wp-tests/wp-tests-config.php' );
45 45
 		}
46 46
 
47
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
48
-			->from('youremptytestdbnamehere')
49
-			->to('test_db')
47
+		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php' )
48
+			->from( 'youremptytestdbnamehere' )
49
+			->to( 'test_db' )
50 50
 			->run();
51 51
 
52
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
53
-			->from('yourusernamehere')
54
-			->to('root')
52
+		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php' )
53
+			->from( 'yourusernamehere' )
54
+			->to( 'root' )
55 55
 			->run();
56 56
 
57
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
58
-			->from('yourpasswordhere')
59
-			->to('')
57
+		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php' )
58
+			->from( 'yourpasswordhere' )
59
+			->to( '' )
60 60
 			->run();
61 61
 	}
62 62
 
Please login to merge, or discard this patch.