Completed
Pull Request — master (#34)
by Stig
02:35
created
tests/checks/HasClassCheckTest.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -5,27 +5,27 @@
 block discarded – undo
5 5
  */
6 6
 class HasClassCheckTest extends SapphireTest
7 7
 {
8
-    public function testCheckReportsMissingClasses()
9
-    {
10
-        $check = new HasClassCheck('foo');
8
+	public function testCheckReportsMissingClasses()
9
+	{
10
+		$check = new HasClassCheck('foo');
11 11
 
12
-        $expected = array(
13
-            EnvironmentCheck::ERROR,
14
-            'Class foo doesn\'t exist',
15
-        );
12
+		$expected = array(
13
+			EnvironmentCheck::ERROR,
14
+			'Class foo doesn\'t exist',
15
+		);
16 16
 
17
-        $this->assertEquals($expected, $check->check());
18
-    }
17
+		$this->assertEquals($expected, $check->check());
18
+	}
19 19
 
20
-    public function testCheckReportsFoundClasses()
21
-    {
22
-        $check = new HasClassCheck('stdClass');
20
+	public function testCheckReportsFoundClasses()
21
+	{
22
+		$check = new HasClassCheck('stdClass');
23 23
 
24
-        $expected = array(
25
-                EnvironmentCheck::OK,
26
-                'Class stdClass exists',
27
-        );
24
+		$expected = array(
25
+				EnvironmentCheck::OK,
26
+				'Class stdClass exists',
27
+		);
28 28
 
29
-        $this->assertEquals($expected, $check->check());
30
-    }
29
+		$this->assertEquals($expected, $check->check());
30
+	}
31 31
 }
Please login to merge, or discard this patch.
tests/checks/HasFunctionCheckTest.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -5,27 +5,27 @@
 block discarded – undo
5 5
  */
6 6
 class HasFunctionCheckTest extends SapphireTest
7 7
 {
8
-    public function testCheckReportsMissingFunctions()
9
-    {
10
-        $check = new HasFunctionCheck('foo');
8
+	public function testCheckReportsMissingFunctions()
9
+	{
10
+		$check = new HasFunctionCheck('foo');
11 11
 
12
-        $expected = array(
13
-            EnvironmentCheck::ERROR,
14
-            'foo() doesn\'t exist',
15
-        );
12
+		$expected = array(
13
+			EnvironmentCheck::ERROR,
14
+			'foo() doesn\'t exist',
15
+		);
16 16
 
17
-        $this->assertEquals($expected, $check->check());
18
-    }
17
+		$this->assertEquals($expected, $check->check());
18
+	}
19 19
 
20
-    public function testCheckReportsFoundFunctions()
21
-    {
22
-        $check = new HasFunctionCheck('class_exists');
20
+	public function testCheckReportsFoundFunctions()
21
+	{
22
+		$check = new HasFunctionCheck('class_exists');
23 23
 
24
-        $expected = array(
25
-            EnvironmentCheck::OK,
26
-            'class_exists() exists',
27
-        );
24
+		$expected = array(
25
+			EnvironmentCheck::OK,
26
+			'class_exists() exists',
27
+		);
28 28
 
29
-        $this->assertEquals($expected, $check->check());
30
-    }
29
+		$this->assertEquals($expected, $check->check());
30
+	}
31 31
 }
Please login to merge, or discard this patch.
tests/checks/URLCheckTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@
 block discarded – undo
5 5
  */
6 6
 class URLCheckTest extends SapphireTest
7 7
 {
8
-    public function testCheckReportsMissingPages()
9
-    {
10
-        $check = new URLCheck('foo', 'bar');
8
+	public function testCheckReportsMissingPages()
9
+	{
10
+		$check = new URLCheck('foo', 'bar');
11 11
 
12
-        $expected = array(
13
-            EnvironmentCheck::ERROR,
14
-            'Error retrieving "foo" (Code: 404)',
15
-        );
12
+		$expected = array(
13
+			EnvironmentCheck::ERROR,
14
+			'Error retrieving "foo" (Code: 404)',
15
+		);
16 16
 
17
-        $this->assertEquals($expected, $check->check());
18
-    }
17
+		$this->assertEquals($expected, $check->check());
18
+	}
19 19
 }
Please login to merge, or discard this patch.
code/DevHealthController.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -2,25 +2,25 @@
 block discarded – undo
2 2
 
3 3
 class DevHealthController extends Controller
4 4
 {
5
-    /**
6
-     * @var array
7
-     */
8
-    public static $allowed_actions = array(
9
-        'index'
10
-    );
5
+	/**
6
+	 * @var array
7
+	 */
8
+	public static $allowed_actions = array(
9
+		'index'
10
+	);
11 11
 
12
-    /**
13
-     * @return EnvironmentChecker
14
-     *
15
-     * @throws SS_HTTPResponse_Exception
16
-     */
17
-    public function index()
18
-    {
19
-        // health check does not require permission to run
12
+	/**
13
+	 * @return EnvironmentChecker
14
+	 *
15
+	 * @throws SS_HTTPResponse_Exception
16
+	 */
17
+	public function index()
18
+	{
19
+		// health check does not require permission to run
20 20
 
21
-        $checker = new EnvironmentChecker('health', 'Site health');
22
-        $checker->setErrorCode(500);
21
+		$checker = new EnvironmentChecker('health', 'Site health');
22
+		$checker->setErrorCode(500);
23 23
 
24
-        return $checker;
25
-    }
24
+		return $checker;
25
+	}
26 26
 }
Please login to merge, or discard this patch.