Test Failed
Push — master ( 7a2a91...e06943 )
by Federico
02:27
created
dist/jate.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	if(!isset($GLOBALS["JATEPath"]))
2
+	if (!isset($GLOBALS["JATEPath"]))
3 3
 		$GLOBALS["JATEPath"] = [];
4 4
 	$commonLocations = [
5 5
 			"bower_components/JATE/dist/"
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 	];
11 11
 	$jSuccess = false;
12 12
 	foreach ($commonLocations as $path)
13
-		if(file_exists("${path}jate/coreEngine.php")) {
13
+		if (file_exists("${path}jate/coreEngine.php")) {
14 14
 			array_push($GLOBALS["JATEPath"], $path);
15 15
 			require_once("${path}jate/coreEngine.php");
16 16
 			$jSuccess = true;
17 17
 			break;
18 18
 		}
19
-	if( !$jSuccess )
19
+	if (!$jSuccess)
20 20
 		throw new Exception("JATE can't find coreEngine.php.");
21 21
 ?>
Please login to merge, or discard this patch.
Braces   +10 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	if(!isset($GLOBALS["JATEPath"]))
3
-		$GLOBALS["JATEPath"] = [];
2
+	if(!isset($GLOBALS["JATEPath"])) {
3
+			$GLOBALS["JATEPath"] = [];
4
+	}
4 5
 	$commonLocations = [
5 6
 			"bower_components/JATE/dist/"
6 7
 		, "vendor/xaberr/jate/dist/"
@@ -9,13 +10,15 @@  discard block
 block discarded – undo
9 10
 		, dirname(__FILE__)."/"
10 11
 	];
11 12
 	$jSuccess = false;
12
-	foreach ($commonLocations as $path)
13
-		if(file_exists("${path}jate/coreEngine.php")) {
13
+	foreach ($commonLocations as $path) {
14
+			if(file_exists("${path}jate/coreEngine.php")) {
14 15
 			array_push($GLOBALS["JATEPath"], $path);
16
+	}
15 17
 			require_once("${path}jate/coreEngine.php");
16 18
 			$jSuccess = true;
17 19
 			break;
18 20
 		}
19
-	if( !$jSuccess )
20
-		throw new Exception("JATE can't find coreEngine.php.");
21
-?>
21
+	if( !$jSuccess ) {
22
+			throw new Exception("JATE can't find coreEngine.php.");
23
+	}
24
+	?>
Please login to merge, or discard this patch.
tests/jate/modules/ModuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-	declare( strict_types = 1 );
2
+	declare(strict_types = 1);
3 3
 
4 4
 	use PHPUnit\Framework\TestCase;
5 5
 
Please login to merge, or discard this patch.