Passed
Branch master (c66316)
by Saepul
06:04
created
js/datatables/unit_testing/controller.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
8 8
 	"http://www.w3.org/TR/html4/strict.dtd">
9 9
 <html>
@@ -44,22 +44,22 @@  discard block
 block discarded – undo
44 44
 		<script type="text/javascript" charset="utf-8">
45 45
 			var gaoTest = [
46 46
 			<?php
47
-				function fnReadDir( &$aReturn, $path )
47
+				function fnReadDir(&$aReturn, $path)
48 48
 				{
49
-					$rDir = opendir( $path );
50
-        	while ( ($file = readdir($rDir)) !== false )
49
+					$rDir = opendir($path);
50
+        	while (($file = readdir($rDir))!==false)
51 51
 					{
52
-						if ( $file == "." || $file == ".." || $file == ".DS_Store" )
52
+						if ($file=="." || $file==".." || $file==".DS_Store")
53 53
 						{
54 54
 							continue;
55 55
 						}
56
-						else if ( is_dir( $path.'/'.$file ) )
56
+						else if (is_dir($path.'/'.$file))
57 57
 						{
58
-							fnReadDir( $aReturn, $path.'/'.$file );
58
+							fnReadDir($aReturn, $path.'/'.$file);
59 59
 						}
60 60
 						else
61 61
 						{
62
-							array_push( $aReturn, $path.'/'.$file );
62
+							array_push($aReturn, $path.'/'.$file);
63 63
 						}
64 64
 					}
65 65
 					closedir($rDir);
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
 				
68 68
 				/* Get the tests dynamically from the 'tests' directory, and their templates */
69 69
 				$aFiles = array();
70
-				fnReadDir( $aFiles, "tests" );
70
+				fnReadDir($aFiles, "tests");
71 71
 				
72
-				for ( $i=0 ; $i<count($aFiles) ; $i++ )
72
+				for ($i = 0; $i<count($aFiles); $i++)
73 73
 				{
74 74
 					$sTemplate;
75
-					$fp = fopen( $aFiles[$i], "r" );
76
-					fscanf( $fp, "// DATA_TEMPLATE: %s", $sTemplate );
77
-					fclose( $fp );
75
+					$fp = fopen($aFiles[$i], "r");
76
+					fscanf($fp, "// DATA_TEMPLATE: %s", $sTemplate);
77
+					fclose($fp);
78 78
 					
79 79
 					$aPath = explode('/', $aFiles[$i]);
80 80
 					
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/-complex_header.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
8 8
 <html>
9 9
 	<head>
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 		<script type="text/javascript" src="../../js/jquery.dataTables.js"></script>
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22
-			$aScripts = explode( ":", $_GET['scripts'] );
23
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
22
+			$aScripts = explode(":", $_GET['scripts']);
23
+			for ($i = 0; $i<count($aScripts); $i++)
24 24
 			{
25 25
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
26 26
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/dom_data_th.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
8 8
 <html>
9 9
 	<head>
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 		<script type="text/javascript" src="../../js/jquery.dataTables.js"></script>
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22
-			$aScripts = explode( ":", $_GET['scripts'] );
23
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
22
+			$aScripts = explode(":", $_GET['scripts']);
23
+			for ($i = 0; $i<count($aScripts); $i++)
24 24
 			{
25 25
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
26 26
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/two_tables.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
8 8
 <html>
9 9
 	<head>
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 		<script type="text/javascript" src="../../js/jquery.dataTables.js"></script>
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22
-			$aScripts = explode( ":", $_GET['scripts'] );
23
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
22
+			$aScripts = explode(":", $_GET['scripts']);
23
+			for ($i = 0; $i<count($aScripts); $i++)
24 24
 			{
25 25
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
26 26
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/2512.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
8 8
 <html>
9 9
 	<head>
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 		<script type="text/javascript" src="../../js/jquery.dataTables.js"></script>
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22
-			$aScripts = explode( ":", $_GET['scripts'] );
23
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
22
+			$aScripts = explode(":", $_GET['scripts']);
23
+			for ($i = 0; $i<count($aScripts); $i++)
24 24
 			{
25 25
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
26 26
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/dom_data.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
8 8
 <html>
9 9
 	<head>
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 		<script type="text/javascript" src="../../js/jquery.dataTables.js"></script>
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22
-			$aScripts = explode( ":", $_GET['scripts'] );
23
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
22
+			$aScripts = explode(":", $_GET['scripts']);
23
+			for ($i = 0; $i<count($aScripts); $i++)
24 24
 			{
25 25
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
26 26
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/js_data.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
8 8
 <html>
9 9
 	<head>
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
 			];
82 82
 		</script>
83 83
 		<?php
84
-			$aScripts = explode( ":", $_GET['scripts'] );
85
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
84
+			$aScripts = explode(":", $_GET['scripts']);
85
+			for ($i = 0; $i<count($aScripts); $i++)
86 86
 			{
87 87
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
88 88
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/empty_table.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
8 8
 <html>
9 9
 	<head>
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 		<script type="text/javascript" src="../../js/jquery.dataTables.js"></script>
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22
-			$aScripts = explode( ":", $_GET['scripts'] );
23
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
22
+			$aScripts = explode(":", $_GET['scripts']);
23
+			for ($i = 0; $i<count($aScripts); $i++)
24 24
 			{
25 25
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
26 26
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/dymanic_table.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
3
-	header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
4
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
5
-	header( 'Cache-Control: post-check=0, pre-check=0', false ); 
6
-	header( 'Pragma: no-cache' ); 
2
+	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); 
3
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); 
4
+	header('Cache-Control: no-store, no-cache, must-revalidate'); 
5
+	header('Cache-Control: post-check=0, pre-check=0', false); 
6
+	header('Pragma: no-cache'); 
7 7
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
8 8
 <html>
9 9
 	<head>
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 			} );
25 25
 		</script>
26 26
 		<?php
27
-			$aScripts = explode( ":", $_GET['scripts'] );
28
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
27
+			$aScripts = explode(":", $_GET['scripts']);
28
+			for ($i = 0; $i<count($aScripts); $i++)
29 29
 			{
30 30
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
31 31
 			}
Please login to merge, or discard this patch.