Passed
Pull Request — master (#58)
by
unknown
03:15
created
src/Checks/EnvTypeCheck.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -13,28 +13,28 @@
 block discarded – undo
13 13
  */
14 14
 class EnvTypeCheck implements EnvironmentCheck
15 15
 {
16
-    /**
17
-     * Check the environment setting.
18
-     *
19
-     * @return array
20
-     */
21
-    public function check()
22
-    {
23
-        $envSetting = Director::get_environment_type();
24
-        switch ($envSetting) {
25
-            case 'live':
26
-                return [
27
-                    EnvironmentCheck::OK,
28
-                    "Env setting is 'live'",
29
-                ];
30
-            // Fallthrough
31
-            default:
32
-            case 'dev':
33
-            case 'test':
34
-                return [
35
-                    EnvironmentCheck::ERROR,
36
-                    "Env setting is '{$envSetting}' and may disclose information",
37
-                ];
38
-        }
39
-    }
16
+	/**
17
+	 * Check the environment setting.
18
+	 *
19
+	 * @return array
20
+	 */
21
+	public function check()
22
+	{
23
+		$envSetting = Director::get_environment_type();
24
+		switch ($envSetting) {
25
+			case 'live':
26
+				return [
27
+					EnvironmentCheck::OK,
28
+					"Env setting is 'live'",
29
+				];
30
+			// Fallthrough
31
+			default:
32
+			case 'dev':
33
+			case 'test':
34
+				return [
35
+					EnvironmentCheck::ERROR,
36
+					"Env setting is '{$envSetting}' and may disclose information",
37
+				];
38
+		}
39
+	}
40 40
 }
Please login to merge, or discard this patch.