Completed
Push — master ( 256a55...3c651b )
by Reginaldo
31:32 queued 13:53
created
app/Vendor/PHPExcel/PHPExcel/Shared/JAMA/examples/benchmark.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	function microtime_float() {
24 24
 		list($usec, $sec) = explode(" ", microtime());
25 25
 
26
-		return ((float)$usec + (float)$sec);
26
+		return ((float) $usec + (float) $sec);
27 27
 	}	//	function microtime_float()
28 28
 
29 29
 
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
 		$stats = $this->stat->calcFull();
33 33
 
34 34
 		echo '<table style="margin-left:32px;">';
35
-		echo '<tr><td style="text-align:right;"><b>n:</b><td style="text-align:right;">' . $stats['count'] . ' </td></tr>';
36
-		echo '<tr><td style="text-align:right;"><b>Mean:</b><td style="text-align:right;">' . $stats['mean'] . ' </td></tr>';
37
-		echo '<tr><td style="text-align:right;"><b>Min.:</b><td style="text-align:right;">' . $stats['min'] . ' </td></tr>';
38
-		echo '<tr><td style="text-align:right;"><b>Max.:</b><td style="text-align:right;">' . $stats['max'] . ' </td></tr>';
39
-		echo '<tr><td style="text-align:right;"><b>&sigma;:</b><td style="text-align:right;">' . $stats['stdev'] . ' </td></tr>';
40
-		echo '<tr><td style="text-align:right;"><b>Variance:</b><td style="text-align:right;">' . $stats['variance'] . ' </td></tr>';
41
-		echo '<tr><td style="text-align:right;"><b>Range:</b><td style="text-align:right;">' . $stats['range'] . ' </td></tr>';
35
+		echo '<tr><td style="text-align:right;"><b>n:</b><td style="text-align:right;">'.$stats['count'].' </td></tr>';
36
+		echo '<tr><td style="text-align:right;"><b>Mean:</b><td style="text-align:right;">'.$stats['mean'].' </td></tr>';
37
+		echo '<tr><td style="text-align:right;"><b>Min.:</b><td style="text-align:right;">'.$stats['min'].' </td></tr>';
38
+		echo '<tr><td style="text-align:right;"><b>Max.:</b><td style="text-align:right;">'.$stats['max'].' </td></tr>';
39
+		echo '<tr><td style="text-align:right;"><b>&sigma;:</b><td style="text-align:right;">'.$stats['stdev'].' </td></tr>';
40
+		echo '<tr><td style="text-align:right;"><b>Variance:</b><td style="text-align:right;">'.$stats['variance'].' </td></tr>';
41
+		echo '<tr><td style="text-align:right;"><b>Range:</b><td style="text-align:right;">'.$stats['range'].' </td></tr>';
42 42
 		echo '</table>';
43 43
 
44 44
 		return $stats;
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
 $benchmark = new Benchmark();
167 167
 
168
-switch($_REQUEST['decomposition']) {
168
+switch ($_REQUEST['decomposition']) {
169 169
 	case 'cholesky':
170 170
 		$m = array();
171 171
 		for ($i = 2; $i <= 8; $i *= 2) {
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
 			echo "<br />";
177 177
 		}
178 178
 		echo '<pre>';
179
-		foreach($m as $x => $y) {
180
-			echo "$x\t" . 1000*$y . "\n";
179
+		foreach ($m as $x => $y) {
180
+			echo "$x\t".1000 * $y."\n";
181 181
 		}
182 182
 		echo '</pre>';
183 183
 		break;
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 			echo "<br />";
192 192
 		}
193 193
 		echo '<pre>';
194
-		foreach($m as $x => $y) {
195
-			echo "$x\t" . 1000*$y . "\n";
194
+		foreach ($m as $x => $y) {
195
+			echo "$x\t".1000 * $y."\n";
196 196
 		}
197 197
 		echo '</pre>';
198 198
 		break;
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
 			echo "<br />";
207 207
 		}
208 208
 		echo '<pre>';
209
-		foreach($m as $x => $y) {
210
-			echo "$x\t" . 1000*$y . "\n";
209
+		foreach ($m as $x => $y) {
210
+			echo "$x\t".1000 * $y."\n";
211 211
 		}
212 212
 		echo '</pre>';
213 213
 		break;
@@ -221,14 +221,14 @@  discard block
 block discarded – undo
221 221
 			echo "<br />";
222 222
 		}
223 223
 		echo '<pre>';
224
-		foreach($m as $x => $y) {
225
-			echo "$x\t" . 1000*$y . "\n";
224
+		foreach ($m as $x => $y) {
225
+			echo "$x\t".1000 * $y."\n";
226 226
 		}
227 227
 		echo '</pre>';
228 228
 		break;
229 229
 	case 'svd':
230 230
 		$m = array();
231
-		for($i = 2; $i <= 8; $i *= 2) {
231
+		for ($i = 2; $i <= 8; $i *= 2) {
232 232
 			$t = 32 / $i;
233 233
 			echo "<b>Singular value decomposition: $t random {$i}x{$i} matrices</b><br />";
234 234
 			$s = $benchmark->displayStats($benchmark->runSVD($i, $t));
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
 			echo "<br />";
237 237
 		}
238 238
 		echo '<pre>';
239
-		foreach($m as $x => $y) {
240
-			echo "$x\t" . 1000*$y . "\n";
239
+		foreach ($m as $x => $y) {
240
+			echo "$x\t".1000 * $y."\n";
241 241
 		}
242 242
 		echo '</pre>';
243 243
 		break;
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Shared/JAMA/examples/polyfit.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	for ($i = 0; $i < sizeof($X); ++$i)
20 20
 		for ($j = 0; $j <= $n; ++$j)
21 21
 			$A[$i][$j] = pow($X[$i], $j);
22
-	for ($i=0; $i < sizeof($Y); ++$i)
22
+	for ($i = 0; $i < sizeof($Y); ++$i)
23 23
 		$B[$i] = array($Y[$i]);
24 24
 	$matrixA = new Matrix($A);
25 25
 	$matrixB = new Matrix($B);
@@ -27,45 +27,45 @@  discard block
 block discarded – undo
27 27
 	return $C->getMatrix(0, $n, 0, 1);
28 28
 }
29 29
 
30
-function printpoly( $C = null ) {
31
-	for($i = $C->m - 1; $i >= 0; --$i) {
30
+function printpoly($C = null) {
31
+	for ($i = $C->m - 1; $i >= 0; --$i) {
32 32
 		$r = $C->get($i, 0);
33
-		if ( abs($r) <= pow(10, -9) )
33
+		if (abs($r) <= pow(10, -9))
34 34
 			$r = 0;
35 35
 		if ($i == $C->m - 1)
36
-			echo $r . "x<sup>$i</sup>";
36
+			echo $r."x<sup>$i</sup>";
37 37
 		else if ($i < $C->m - 1)
38
-			echo " + " . $r . "x<sup>$i</sup>";
38
+			echo " + ".$r."x<sup>$i</sup>";
39 39
 		else if ($i == 0)
40
-			echo " + " . $r;
40
+			echo " + ".$r;
41 41
 	}
42 42
 }
43 43
 
44
-$X = array(0,1,2,3,4,5);
45
-$Y = array(4,3,12,67,228, 579);
44
+$X = array(0, 1, 2, 3, 4, 5);
45
+$Y = array(4, 3, 12, 67, 228, 579);
46 46
 $points = new Matrix(array($X, $Y));
47 47
 $points->toHTML();
48 48
 printpoly(polyfit($X, $Y, 4));
49 49
 
50 50
 echo '<hr />';
51 51
 
52
-$X = array(0,1,2,3,4,5);
53
-$Y = array(1,2,5,10,17, 26);
52
+$X = array(0, 1, 2, 3, 4, 5);
53
+$Y = array(1, 2, 5, 10, 17, 26);
54 54
 $points = new Matrix(array($X, $Y));
55 55
 $points->toHTML();
56 56
 printpoly(polyfit($X, $Y, 2));
57 57
 
58 58
 echo '<hr />';
59 59
 
60
-$X = array(0,1,2,3,4,5,6);
61
-$Y = array(-90,-104,-178,-252,-26, 1160, 4446);
60
+$X = array(0, 1, 2, 3, 4, 5, 6);
61
+$Y = array(-90, -104, -178, -252, -26, 1160, 4446);
62 62
 $points = new Matrix(array($X, $Y));
63 63
 $points->toHTML();
64 64
 printpoly(polyfit($X, $Y, 5));
65 65
 
66 66
 echo '<hr />';
67 67
 
68
-$X = array(0,1,2,3,4);
68
+$X = array(0, 1, 2, 3, 4);
69 69
 $Y = array(mt_rand(0, 10), mt_rand(40, 80), mt_rand(240, 400), mt_rand(1800, 2215), mt_rand(8000, 9000));
70 70
 $points = new Matrix(array($X, $Y));
71 71
 $points->toHTML();
Please login to merge, or discard this patch.
Braces   +19 added lines, -13 removed lines patch added patch discarded remove patch
@@ -16,11 +16,15 @@  discard block
 block discarded – undo
16 16
 * Pre-Conditions: the system is not underdetermined: sizeof($X) > $n+1
17 17
 */
18 18
 function polyfit($X, $Y, $n) {
19
-	for ($i = 0; $i < sizeof($X); ++$i)
20
-		for ($j = 0; $j <= $n; ++$j)
21
-			$A[$i][$j] = pow($X[$i], $j);
22
-	for ($i=0; $i < sizeof($Y); ++$i)
23
-		$B[$i] = array($Y[$i]);
19
+	for ($i = 0; $i < sizeof($X); ++$i) {
20
+			for ($j = 0;
21
+	}
22
+	$j <= $n; ++$j) {
23
+					$A[$i][$j] = pow($X[$i], $j);
24
+		}
25
+	for ($i=0; $i < sizeof($Y); ++$i) {
26
+			$B[$i] = array($Y[$i]);
27
+	}
24 28
 	$matrixA = new Matrix($A);
25 29
 	$matrixB = new Matrix($B);
26 30
 	$C = $matrixA->solve($matrixB);
@@ -30,14 +34,16 @@  discard block
 block discarded – undo
30 34
 function printpoly( $C = null ) {
31 35
 	for($i = $C->m - 1; $i >= 0; --$i) {
32 36
 		$r = $C->get($i, 0);
33
-		if ( abs($r) <= pow(10, -9) )
34
-			$r = 0;
35
-		if ($i == $C->m - 1)
36
-			echo $r . "x<sup>$i</sup>";
37
-		else if ($i < $C->m - 1)
38
-			echo " + " . $r . "x<sup>$i</sup>";
39
-		else if ($i == 0)
40
-			echo " + " . $r;
37
+		if ( abs($r) <= pow(10, -9) ) {
38
+					$r = 0;
39
+		}
40
+		if ($i == $C->m - 1) {
41
+					echo $r . "x<sup>$i</sup>";
42
+		} else if ($i < $C->m - 1) {
43
+					echo " + " . $r . "x<sup>$i</sup>";
44
+		} else if ($i == 0) {
45
+					echo " + " . $r;
46
+		}
41 47
 	}
42 48
 }
43 49
 
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Shared/JAMA/examples/tile.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
   $n = $X->getColumnDimension();
32 32
 
33 33
   if( $rowWise<1 || $colWise<1 ){
34
-    die("tile : Array index is out-of-bound.");
34
+	die("tile : Array index is out-of-bound.");
35 35
   }
36 36
 
37 37
   $newRowDim = $m*$rowWise;
@@ -41,25 +41,25 @@  discard block
 block discarded – undo
41 41
 
42 42
   for($i=0 ; $i<$newRowDim; ++$i) {
43 43
 
44
-    $holder = array();
44
+	$holder = array();
45 45
 
46
-    for($j=0 ; $j<$newColDim ; ++$j) {
46
+	for($j=0 ; $j<$newColDim ; ++$j) {
47 47
 
48
-      $holder[$j] = $xArray[$countRow][$countColumn++];
48
+	  $holder[$j] = $xArray[$countRow][$countColumn++];
49 49
 
50
-      // reset the column-index to zero to avoid reference to out-of-bound index in xArray[][]
50
+	  // reset the column-index to zero to avoid reference to out-of-bound index in xArray[][]
51 51
 
52
-      if($countColumn == $n) { $countColumn = 0; }
52
+	  if($countColumn == $n) { $countColumn = 0; }
53 53
 
54
-    } // end for
54
+	} // end for
55 55
 
56
-    ++$countRow;
56
+	++$countRow;
57 57
 
58
-    // reset the row-index to zero to avoid reference to out-of-bound index in xArray[][]
58
+	// reset the row-index to zero to avoid reference to out-of-bound index in xArray[][]
59 59
 
60
-    if($countRow == $m) { $countRow = 0; }
60
+	if($countRow == $m) { $countRow = 0; }
61 61
 
62
-    $result[$i] = $holder;
62
+	$result[$i] = $holder;
63 63
 
64 64
   } // end for
65 65
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 * @return Matrix
20 20
 */
21 21
 
22
-function tile(&$X, $rowWise, $colWise){
22
+function tile(&$X, $rowWise, $colWise) {
23 23
 
24 24
   $xArray = $X->getArray();
25 25
   print_r($xArray);
@@ -30,26 +30,26 @@  discard block
 block discarded – undo
30 30
   $m = $X->getRowDimension();
31 31
   $n = $X->getColumnDimension();
32 32
 
33
-  if( $rowWise<1 || $colWise<1 ){
33
+  if ($rowWise < 1 || $colWise < 1) {
34 34
     die("tile : Array index is out-of-bound.");
35 35
   }
36 36
 
37
-  $newRowDim = $m*$rowWise;
38
-  $newColDim = $n*$colWise;
37
+  $newRowDim = $m * $rowWise;
38
+  $newColDim = $n * $colWise;
39 39
 
40 40
   $result = array();
41 41
 
42
-  for($i=0 ; $i<$newRowDim; ++$i) {
42
+  for ($i = 0; $i < $newRowDim; ++$i) {
43 43
 
44 44
     $holder = array();
45 45
 
46
-    for($j=0 ; $j<$newColDim ; ++$j) {
46
+    for ($j = 0; $j < $newColDim; ++$j) {
47 47
 
48 48
       $holder[$j] = $xArray[$countRow][$countColumn++];
49 49
 
50 50
       // reset the column-index to zero to avoid reference to out-of-bound index in xArray[][]
51 51
 
52
-      if($countColumn == $n) { $countColumn = 0; }
52
+      if ($countColumn == $n) { $countColumn = 0; }
53 53
 
54 54
     } // end for
55 55
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     // reset the row-index to zero to avoid reference to out-of-bound index in xArray[][]
59 59
 
60
-    if($countRow == $m) { $countRow = 0; }
60
+    if ($countRow == $m) { $countRow = 0; }
61 61
 
62 62
     $result[$i] = $holder;
63 63
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 }
69 69
 
70 70
 
71
-$X =array(1,2,3,4,5,6,7,8,9);
71
+$X = array(1, 2, 3, 4, 5, 6, 7, 8, 9);
72 72
 $nRow = 3;
73 73
 $nCol = 3;
74 74
 $tiled_matrix = tile(new Matrix($X), $nRow, $nCol);
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Shared/OLE/ChainedBlockStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
 		// 25 is length of "ole-chainedblockstream://"
85 85
 		parse_str(substr($path, 25), $this->params);
86
-		if (!isset($this->params['oleInstanceId'],
86
+		if ( ! isset($this->params['oleInstanceId'],
87 87
 				   $this->params['blockId'],
88 88
 				   $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']])) {
89 89
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 		if (version_compare(PHP_VERSION, '5.0', '>=') &&
167 167
 			version_compare(PHP_VERSION, '5.1', '<')) {
168 168
 
169
-		   $eof = !$eof;
169
+		   $eof = ! $eof;
170 170
 		}
171 171
 		return $eof;
172 172
 	}
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Shared/OLE/PPS.php 2 patches
Indentation   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -30,98 +30,98 @@  discard block
 block discarded – undo
30 30
 class PHPExcel_Shared_OLE_PPS
31 31
 {
32 32
 	/**
33
-	* The PPS index
34
-	* @var integer
35
-	*/
33
+	 * The PPS index
34
+	 * @var integer
35
+	 */
36 36
 	public $No;
37 37
 
38 38
 	/**
39
-	* The PPS name (in Unicode)
40
-	* @var string
41
-	*/
39
+	 * The PPS name (in Unicode)
40
+	 * @var string
41
+	 */
42 42
 	public $Name;
43 43
 
44 44
 	/**
45
-	* The PPS type. Dir, Root or File
46
-	* @var integer
47
-	*/
45
+	 * The PPS type. Dir, Root or File
46
+	 * @var integer
47
+	 */
48 48
 	public $Type;
49 49
 
50 50
 	/**
51
-	* The index of the previous PPS
52
-	* @var integer
53
-	*/
51
+	 * The index of the previous PPS
52
+	 * @var integer
53
+	 */
54 54
 	public $PrevPps;
55 55
 
56 56
 	/**
57
-	* The index of the next PPS
58
-	* @var integer
59
-	*/
57
+	 * The index of the next PPS
58
+	 * @var integer
59
+	 */
60 60
 	public $NextPps;
61 61
 
62 62
 	/**
63
-	* The index of it's first child if this is a Dir or Root PPS
64
-	* @var integer
65
-	*/
63
+	 * The index of it's first child if this is a Dir or Root PPS
64
+	 * @var integer
65
+	 */
66 66
 	public $DirPps;
67 67
 
68 68
 	/**
69
-	* A timestamp
70
-	* @var integer
71
-	*/
69
+	 * A timestamp
70
+	 * @var integer
71
+	 */
72 72
 	public $Time1st;
73 73
 
74 74
 	/**
75
-	* A timestamp
76
-	* @var integer
77
-	*/
75
+	 * A timestamp
76
+	 * @var integer
77
+	 */
78 78
 	public $Time2nd;
79 79
 
80 80
 	/**
81
-	* Starting block (small or big) for this PPS's data  inside the container
82
-	* @var integer
83
-	*/
81
+	 * Starting block (small or big) for this PPS's data  inside the container
82
+	 * @var integer
83
+	 */
84 84
 	public $_StartBlock;
85 85
 
86 86
 	/**
87
-	* The size of the PPS's data (in bytes)
88
-	* @var integer
89
-	*/
87
+	 * The size of the PPS's data (in bytes)
88
+	 * @var integer
89
+	 */
90 90
 	public $Size;
91 91
 
92 92
 	/**
93
-	* The PPS's data (only used if it's not using a temporary file)
94
-	* @var string
95
-	*/
93
+	 * The PPS's data (only used if it's not using a temporary file)
94
+	 * @var string
95
+	 */
96 96
 	public $_data;
97 97
 
98 98
 	/**
99
-	* Array of child PPS's (only used by Root and Dir PPS's)
100
-	* @var array
101
-	*/
99
+	 * Array of child PPS's (only used by Root and Dir PPS's)
100
+	 * @var array
101
+	 */
102 102
 	public $children = array();
103 103
 
104 104
 	/**
105
-	* Pointer to OLE container
106
-	* @var OLE
107
-	*/
105
+	 * Pointer to OLE container
106
+	 * @var OLE
107
+	 */
108 108
 	public $ole;
109 109
 
110 110
 	/**
111
-	* The constructor
112
-	*
113
-	* @access public
114
-	* @param integer $No   The PPS index
115
-	* @param string  $name The PPS name
116
-	* @param integer $type The PPS type. Dir, Root or File
117
-	* @param integer $prev The index of the previous PPS
118
-	* @param integer $next The index of the next PPS
119
-	* @param integer $dir  The index of it's first child if this is a Dir or Root PPS
120
-	* @param integer $time_1st A timestamp
121
-	* @param integer $time_2nd A timestamp
122
-	* @param string  $data  The (usually binary) source data of the PPS
123
-	* @param array   $children Array containing children PPS for this PPS
124
-	*/
111
+	 * The constructor
112
+	 *
113
+	 * @access public
114
+	 * @param integer $No   The PPS index
115
+	 * @param string  $name The PPS name
116
+	 * @param integer $type The PPS type. Dir, Root or File
117
+	 * @param integer $prev The index of the previous PPS
118
+	 * @param integer $next The index of the next PPS
119
+	 * @param integer $dir  The index of it's first child if this is a Dir or Root PPS
120
+	 * @param integer $time_1st A timestamp
121
+	 * @param integer $time_2nd A timestamp
122
+	 * @param string  $data  The (usually binary) source data of the PPS
123
+	 * @param array   $children Array containing children PPS for this PPS
124
+	 */
125 125
 	public function __construct($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
126 126
 	{
127 127
 		$this->No      = $No;
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
 	}
143 143
 
144 144
 	/**
145
-	* Returns the amount of data saved for this PPS
146
-	*
147
-	* @access public
148
-	* @return integer The amount of data (in bytes)
149
-	*/
145
+	 * Returns the amount of data saved for this PPS
146
+	 *
147
+	 * @access public
148
+	 * @return integer The amount of data (in bytes)
149
+	 */
150 150
 	public function _DataLen()
151 151
 	{
152 152
 		if (!isset($this->_data)) {
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
 	}
163 163
 
164 164
 	/**
165
-	* Returns a string with the PPS's WK (What is a WK?)
166
-	*
167
-	* @access public
168
-	* @return string The binary string
169
-	*/
165
+	 * Returns a string with the PPS's WK (What is a WK?)
166
+	 *
167
+	 * @access public
168
+	 * @return string The binary string
169
+	 */
170 170
 	public function _getPpsWk()
171 171
 	{
172 172
 		$ret = str_pad($this->Name,64,"\x00");
@@ -192,14 +192,14 @@  discard block
 block discarded – undo
192 192
 	}
193 193
 
194 194
 	/**
195
-	* Updates index and pointers to previous, next and children PPS's for this
196
-	* PPS. I don't think it'll work with Dir PPS's.
197
-	*
198
-	* @access public
199
-	* @param array &$raList Reference to the array of PPS's for the whole OLE
200
-	*                          container
201
-	* @return integer          The index for this PPS
202
-	*/
195
+	 * Updates index and pointers to previous, next and children PPS's for this
196
+	 * PPS. I don't think it'll work with Dir PPS's.
197
+	 *
198
+	 * @access public
199
+	 * @param array &$raList Reference to the array of PPS's for the whole OLE
200
+	 *                          container
201
+	 * @return integer          The index for this PPS
202
+	 */
203 203
 	public static function _savePpsSetPnt(&$raList, $to_save, $depth = 0)
204 204
 	{
205 205
 		if ( !is_array($to_save) || (empty($to_save)) ) {
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	*/
150 150
 	public function _DataLen()
151 151
 	{
152
-		if (!isset($this->_data)) {
152
+		if ( ! isset($this->_data)) {
153 153
 			return 0;
154 154
 		}
155 155
 		//if (isset($this->_PPS_FILE)) {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	*/
170 170
 	public function _getPpsWk()
171 171
 	{
172
-		$ret = str_pad($this->Name,64,"\x00");
172
+		$ret = str_pad($this->Name, 64, "\x00");
173 173
 
174 174
 		$ret .= pack("v", strlen($this->Name) + 2)  // 66
175 175
 			  . pack("c", $this->Type)              // 67
@@ -184,10 +184,10 @@  discard block
 block discarded – undo
184 184
 			  . "\x00\x00\x00\x00"                  // 100
185 185
 			  . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time1st)       // 108
186 186
 			  . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time2nd)       // 116
187
-			  . pack("V", isset($this->_StartBlock)?
188
-						$this->_StartBlock:0)        // 120
187
+			  . pack("V", isset($this->_StartBlock) ?
188
+						$this->_StartBlock : 0)        // 120
189 189
 			  . pack("V", $this->Size)               // 124
190
-			  . pack("V", 0);                        // 128
190
+			  . pack("V", 0); // 128
191 191
 		return $ret;
192 192
 	}
193 193
 
@@ -202,12 +202,12 @@  discard block
 block discarded – undo
202 202
 	*/
203 203
 	public static function _savePpsSetPnt(&$raList, $to_save, $depth = 0)
204 204
 	{
205
-		if ( !is_array($to_save) || (empty($to_save)) ) {
205
+		if ( ! is_array($to_save) || (empty($to_save))) {
206 206
 			return 0xFFFFFFFF;
207
-		} elseif( count($to_save) == 1 ) {
207
+		} elseif (count($to_save) == 1) {
208 208
 			$cnt = count($raList);
209 209
 			// If the first entry, it's the root... Don't clone it!
210
-			$raList[$cnt] = ( $depth == 0 ) ? $to_save[0] : clone $to_save[0];
210
+			$raList[$cnt] = ($depth == 0) ? $to_save[0] : clone $to_save[0];
211 211
 			$raList[$cnt]->No = $cnt;
212 212
 			$raList[$cnt]->PrevPps = 0xFFFFFFFF;
213 213
 			$raList[$cnt]->NextPps = 0xFFFFFFFF;
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 			$aNext = array_slice($to_save, $iPos + 1);
219 219
 			$cnt   = count($raList);
220 220
 			// If the first entry, it's the root... Don't clone it!
221
-			$raList[$cnt] = ( $depth == 0 ) ? $to_save[$iPos] : clone $to_save[$iPos];
221
+			$raList[$cnt] = ($depth == 0) ? $to_save[$iPos] : clone $to_save[$iPos];
222 222
 			$raList[$cnt]->No = $cnt;
223 223
 			$raList[$cnt]->PrevPps = self::_savePpsSetPnt($raList, $aPrev, $depth++);
224 224
 			$raList[$cnt]->NextPps = self::_savePpsSetPnt($raList, $aNext, $depth++);
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Shared/OLE/PPS/File.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
 class PHPExcel_Shared_OLE_PPS_File extends PHPExcel_Shared_OLE_PPS
31 31
 	{
32 32
 	/**
33
-	* The constructor
34
-	*
35
-	* @access public
36
-	* @param string $name The name of the file (in Unicode)
37
-	* @see OLE::Asc2Ucs()
38
-	*/
33
+	 * The constructor
34
+	 *
35
+	 * @access public
36
+	 * @param string $name The name of the file (in Unicode)
37
+	 * @see OLE::Asc2Ucs()
38
+	 */
39 39
 	public function __construct($name)
40 40
 	{
41 41
 		parent::__construct(
@@ -52,22 +52,22 @@  discard block
 block discarded – undo
52 52
 	}
53 53
 
54 54
 	/**
55
-	* Initialization method. Has to be called right after OLE_PPS_File().
56
-	*
57
-	* @access public
58
-	* @return mixed true on success
59
-	*/
55
+	 * Initialization method. Has to be called right after OLE_PPS_File().
56
+	 *
57
+	 * @access public
58
+	 * @return mixed true on success
59
+	 */
60 60
 	public function init()
61 61
 	{
62 62
 		return true;
63 63
 	}
64 64
 
65 65
 	/**
66
-	* Append data to PPS
67
-	*
68
-	* @access public
69
-	* @param string $data The data to append
70
-	*/
66
+	 * Append data to PPS
67
+	 *
68
+	 * @access public
69
+	 * @param string $data The data to append
70
+	 */
71 71
 	public function append($data)
72 72
 	{
73 73
 		$this->_data .= $data;
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Shared/PDF/2dbarcodes.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
  */
45 45
 
46 46
 	/**
47
-	* PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
48
-	* @name TCPDFBarcode
49
-	* @package com.tecnick.tcpdf
50
-	* @version 1.0.007
51
-	* @author Nicola Asuni
52
-	* @link http://www.tcpdf.org
53
-	* @license http://www.gnu.org/copyleft/lesser.html LGPL
54
-	*/
47
+	 * PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
48
+	 * @name TCPDFBarcode
49
+	 * @package com.tecnick.tcpdf
50
+	 * @version 1.0.007
51
+	 * @author Nicola Asuni
52
+	 * @link http://www.tcpdf.org
53
+	 * @license http://www.gnu.org/copyleft/lesser.html LGPL
54
+	 */
55 55
 class TCPDF2DBarcode {
56 56
 
57 57
 	/**
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 * <li>$arrcode['num_cols'] required number of columns</li>
69 69
 	 * <li>$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)</li></ul>
70 70
 	 * @param string $code code to print
71
- 	 * @param string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul>
71
+	 * @param string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul>
72 72
 	 */
73 73
 	public function __construct($code, $type) {
74 74
 		$this->setBarcode($code, $type);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
 	/**
78 78
 	 * Return an array representations of barcode.
79
- 	 * @return array
79
+	 * @return array
80 80
 	 */
81 81
 	public function getBarcodeArray() {
82 82
 		return $this->barcode_array;
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
 	/**
86 86
 	 * Set the barcode.
87 87
 	 * @param string $code code to print
88
- 	 * @param string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul>
89
- 	 * @return array
88
+	 * @param string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul>
89
+	 * @return array
90 90
 	 */
91 91
 	public function setBarcode($code, $type) {
92 92
 		$mode = explode(',', $type);
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 		switch ($qrtype) {
95 95
 			case 'QRCODE': { // QR-CODE
96 96
 				require_once(dirname(__FILE__).'/qrcode.php');
97
-				if (!isset($mode[1]) OR (!in_array($mode[1],array('L','M','Q','H')))) {
97
+				if ( ! isset($mode[1]) OR ( ! in_array($mode[1], array('L', 'M', 'Q', 'H')))) {
98 98
 					$mode[1] = 'L'; // Ddefault: Low error correction
99 99
 				}
100 100
 				$qrcode = new QRcode($code, strtoupper($mode[1]));
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
103 103
 			}
104 104
 			case 'PDF417': { // PDF417 (ISO/IEC 15438:2006)
105 105
 				require_once(dirname(__FILE__).'/pdf417.php');
106
-				if (!isset($mode[1]) OR ($mode[1] === '')) {
106
+				if ( ! isset($mode[1]) OR ($mode[1] === '')) {
107 107
 					$aspectratio = 2; // default aspect ratio (width / height)
108 108
 				} else {
109 109
 					$aspectratio = floatval($mode[1]);
110 110
 				}
111
-				if (!isset($mode[2]) OR ($mode[2] === '')) {
111
+				if ( ! isset($mode[2]) OR ($mode[2] === '')) {
112 112
 					$ecl = -1; // default error correction level (auto)
113 113
 				} else {
114 114
 					$ecl = intval($mode[2]);
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
 				$this->barcode_array['num_rows'] = 5;
159 159
 				$this->barcode_array['num_cols'] = 15;
160 160
 				$this->barcode_array['bcode'] = array(
161
-					array(1,1,1,0,1,1,1,0,1,1,1,0,1,1,1),
162
-					array(0,1,0,0,1,0,0,0,1,0,0,0,0,1,0),
163
-					array(0,1,0,0,1,1,0,0,1,1,1,0,0,1,0),
164
-					array(0,1,0,0,1,0,0,0,0,0,1,0,0,1,0),
165
-					array(0,1,0,0,1,1,1,0,1,1,1,0,0,1,0));
161
+					array(1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1),
162
+					array(0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0),
163
+					array(0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0),
164
+					array(0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0),
165
+					array(0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0));
166 166
 				break;
167 167
 			}
168 168
 			default: {
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Shared/PDF/config/tcpdf_config.php 2 patches
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -31,22 +31,22 @@  discard block
 block discarded – undo
31 31
 
32 32
 // If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
33 33
 
34
-if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
34
+if ( ! defined('K_TCPDF_EXTERNAL_CONFIG')) {
35 35
 
36 36
 	// DOCUMENT_ROOT fix for IIS Webserver
37
-	if ((!isset(DIR_RAIZ)) OR (empty(DIR_RAIZ))) {
38
-		if(isset($_SERVER['SCRIPT_FILENAME'])) {
39
-			DIR_RAIZ = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
40
-		} elseif(isset($_SERVER['PATH_TRANSLATED'])) {
41
-			DIR_RAIZ = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
42
-		}	else {
37
+	if (( ! isset(DIR_RAIZ)) OR (empty(DIR_RAIZ))) {
38
+		if (isset($_SERVER['SCRIPT_FILENAME'])) {
39
+			DIR_RAIZ = str_replace('\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0 - strlen($_SERVER['PHP_SELF'])));
40
+		} elseif (isset($_SERVER['PATH_TRANSLATED'])) {
41
+			DIR_RAIZ = str_replace('\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF'])));
42
+		} else {
43 43
 			// define here your DOCUMENT_ROOT path if the previous fails
44 44
 			DIR_RAIZ = '/var/www';
45 45
 		}
46 46
 	}
47 47
 
48 48
 	// Automatic calculation for the following K_PATH_MAIN constant
49
-	$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
49
+	$k_path_main = str_replace('\\', '/', realpath(substr(dirname(__FILE__), 0, 0 - strlen('config'))));
50 50
 	if (substr($k_path_main, -1) != '/') {
51 51
 		$k_path_main .= '/';
52 52
 	}
@@ -55,156 +55,156 @@  discard block
 block discarded – undo
55 55
 	 * Installation path (/var/www/tcpdf/).
56 56
 	 * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
57 57
 	 */
58
-	define ('K_PATH_MAIN', $k_path_main);
58
+	define('K_PATH_MAIN', $k_path_main);
59 59
 
60 60
 	// Automatic calculation for the following K_PATH_URL constant
61 61
 	$k_path_url = $k_path_main; // default value for console mode
62
-	if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
63
-		if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
62
+	if (isset($_SERVER['HTTP_HOST']) AND ( ! empty($_SERVER['HTTP_HOST']))) {
63
+		if (isset($_SERVER['HTTPS']) AND ( ! empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS']) != 'off') {
64 64
 			$k_path_url = 'https://';
65 65
 		} else {
66 66
 			$k_path_url = 'http://';
67 67
 		}
68 68
 		$k_path_url .= $_SERVER['HTTP_HOST'];
69
-		$k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen(DIR_RAIZ) - 1)));
69
+		$k_path_url .= str_replace('\\', '/', substr(K_PATH_MAIN, (strlen(DIR_RAIZ) - 1)));
70 70
 	}
71 71
 
72 72
 	/**
73 73
 	 * URL path to tcpdf installation folder (http://localhost/tcpdf/).
74 74
 	 * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
75 75
 	 */
76
-	define ('K_PATH_URL', $k_path_url);
76
+	define('K_PATH_URL', $k_path_url);
77 77
 
78 78
 	/**
79 79
 	 * path for PDF fonts
80 80
 	 * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
81 81
 	 */
82
-	define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
82
+	define('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
83 83
 
84 84
 	/**
85 85
 	 * cache directory for temporary files (full path)
86 86
 	 */
87
-	define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
87
+	define('K_PATH_CACHE', K_PATH_MAIN.'cache/');
88 88
 
89 89
 	/**
90 90
 	 * cache directory for temporary files (url path)
91 91
 	 */
92
-	define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
92
+	define('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
93 93
 
94 94
 	/**
95 95
 	 *images directory
96 96
 	 */
97
-	define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
97
+	define('K_PATH_IMAGES', K_PATH_MAIN.'images/');
98 98
 
99 99
 	/**
100 100
 	 * blank image
101 101
 	 */
102
-	define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
102
+	define('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
103 103
 
104 104
 	/**
105 105
 	 * page format
106 106
 	 */
107
-	define ('PDF_PAGE_FORMAT', 'A4');
107
+	define('PDF_PAGE_FORMAT', 'A4');
108 108
 
109 109
 	/**
110 110
 	 * page orientation (P=portrait, L=landscape)
111 111
 	 */
112
-	define ('PDF_PAGE_ORIENTATION', 'P');
112
+	define('PDF_PAGE_ORIENTATION', 'P');
113 113
 
114 114
 	/**
115 115
 	 * document creator
116 116
 	 */
117
-	define ('PDF_CREATOR', 'TCPDF');
117
+	define('PDF_CREATOR', 'TCPDF');
118 118
 
119 119
 	/**
120 120
 	 * document author
121 121
 	 */
122
-	define ('PDF_AUTHOR', 'TCPDF');
122
+	define('PDF_AUTHOR', 'TCPDF');
123 123
 
124 124
 	/**
125 125
 	 * header title
126 126
 	 */
127
-	define ('PDF_HEADER_TITLE', 'TCPDF Example');
127
+	define('PDF_HEADER_TITLE', 'TCPDF Example');
128 128
 
129 129
 	/**
130 130
 	 * header description string
131 131
 	 */
132
-	define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
132
+	define('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
133 133
 
134 134
 	/**
135 135
 	 * image logo
136 136
 	 */
137
-	define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
137
+	define('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
138 138
 
139 139
 	/**
140 140
 	 * header logo image width [mm]
141 141
 	 */
142
-	define ('PDF_HEADER_LOGO_WIDTH', 30);
142
+	define('PDF_HEADER_LOGO_WIDTH', 30);
143 143
 
144 144
 	/**
145 145
 	 *  document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
146 146
 	 */
147
-	define ('PDF_UNIT', 'mm');
147
+	define('PDF_UNIT', 'mm');
148 148
 
149 149
 	/**
150 150
 	 * header margin
151 151
 	 */
152
-	define ('PDF_MARGIN_HEADER', 5);
152
+	define('PDF_MARGIN_HEADER', 5);
153 153
 
154 154
 	/**
155 155
 	 * footer margin
156 156
 	 */
157
-	define ('PDF_MARGIN_FOOTER', 10);
157
+	define('PDF_MARGIN_FOOTER', 10);
158 158
 
159 159
 	/**
160 160
 	 * top margin
161 161
 	 */
162
-	define ('PDF_MARGIN_TOP', 27);
162
+	define('PDF_MARGIN_TOP', 27);
163 163
 
164 164
 	/**
165 165
 	 * bottom margin
166 166
 	 */
167
-	define ('PDF_MARGIN_BOTTOM', 25);
167
+	define('PDF_MARGIN_BOTTOM', 25);
168 168
 
169 169
 	/**
170 170
 	 * left margin
171 171
 	 */
172
-	define ('PDF_MARGIN_LEFT', 15);
172
+	define('PDF_MARGIN_LEFT', 15);
173 173
 
174 174
 	/**
175 175
 	 * right margin
176 176
 	 */
177
-	define ('PDF_MARGIN_RIGHT', 15);
177
+	define('PDF_MARGIN_RIGHT', 15);
178 178
 
179 179
 	/**
180 180
 	 * default main font name
181 181
 	 */
182
-	define ('PDF_FONT_NAME_MAIN', 'helvetica');
182
+	define('PDF_FONT_NAME_MAIN', 'helvetica');
183 183
 
184 184
 	/**
185 185
 	 * default main font size
186 186
 	 */
187
-	define ('PDF_FONT_SIZE_MAIN', 10);
187
+	define('PDF_FONT_SIZE_MAIN', 10);
188 188
 
189 189
 	/**
190 190
 	 * default data font name
191 191
 	 */
192
-	define ('PDF_FONT_NAME_DATA', 'helvetica');
192
+	define('PDF_FONT_NAME_DATA', 'helvetica');
193 193
 
194 194
 	/**
195 195
 	 * default data font size
196 196
 	 */
197
-	define ('PDF_FONT_SIZE_DATA', 8);
197
+	define('PDF_FONT_SIZE_DATA', 8);
198 198
 
199 199
 	/**
200 200
 	 * default monospaced font name
201 201
 	 */
202
-	define ('PDF_FONT_MONOSPACED', 'courier');
202
+	define('PDF_FONT_MONOSPACED', 'courier');
203 203
 
204 204
 	/**
205 205
 	 * ratio used to adjust the conversion of pixels to user units
206 206
 	 */
207
-	define ('PDF_IMAGE_SCALE_RATIO', 1.25);
207
+	define('PDF_IMAGE_SCALE_RATIO', 1.25);
208 208
 
209 209
 	/**
210 210
 	 * magnification factor for titles
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 	/**
225 225
 	 * reduction factor for small font
226 226
 	 */
227
-	define('K_SMALL_RATIO', 2/3);
227
+	define('K_SMALL_RATIO', 2 / 3);
228 228
 
229 229
 	/**
230 230
 	 * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 			DIR_RAIZ = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
40 40
 		} elseif(isset($_SERVER['PATH_TRANSLATED'])) {
41 41
 			DIR_RAIZ = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
42
-		}	else {
42
+		} else {
43 43
 			// define here your DOCUMENT_ROOT path if the previous fails
44 44
 			DIR_RAIZ = '/var/www';
45 45
 		}
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Shared/PDF/config/tcpdf_config_alt.php 2 patches
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -30,19 +30,19 @@  discard block
 block discarded – undo
30 30
  */
31 31
 
32 32
 // DOCUMENT_ROOT fix for IIS Webserver
33
-if ((!isset(DIR_RAIZ)) OR (empty(DIR_RAIZ))) {
34
-	if(isset($_SERVER['SCRIPT_FILENAME'])) {
35
-		DIR_RAIZ = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
36
-	} elseif(isset($_SERVER['PATH_TRANSLATED'])) {
37
-		DIR_RAIZ = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
38
-	}	else {
33
+if (( ! isset(DIR_RAIZ)) OR (empty(DIR_RAIZ))) {
34
+	if (isset($_SERVER['SCRIPT_FILENAME'])) {
35
+		DIR_RAIZ = str_replace('\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0 - strlen($_SERVER['PHP_SELF'])));
36
+	} elseif (isset($_SERVER['PATH_TRANSLATED'])) {
37
+		DIR_RAIZ = str_replace('\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF'])));
38
+	} else {
39 39
 		// define here your DOCUMENT_ROOT path if the previous fails
40 40
 		DIR_RAIZ = '/var/www';
41 41
 	}
42 42
 }
43 43
 
44 44
 // Automatic calculation for the following K_PATH_MAIN constant
45
-$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
45
+$k_path_main = str_replace('\\', '/', realpath(substr(dirname(__FILE__), 0, 0 - strlen('config'))));
46 46
 if (substr($k_path_main, -1) != '/') {
47 47
 	$k_path_main .= '/';
48 48
 }
@@ -51,155 +51,155 @@  discard block
 block discarded – undo
51 51
  * Installation path (/var/www/tcpdf/).
52 52
  * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
53 53
  */
54
-define ('K_PATH_MAIN', $k_path_main);
54
+define('K_PATH_MAIN', $k_path_main);
55 55
 
56 56
 // Automatic calculation for the following K_PATH_URL constant
57
-if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
58
-	if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
57
+if (isset($_SERVER['HTTP_HOST']) AND ( ! empty($_SERVER['HTTP_HOST']))) {
58
+	if (isset($_SERVER['HTTPS']) AND ( ! empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS']) != 'off') {
59 59
 		$k_path_url = 'https://';
60 60
 	} else {
61 61
 		$k_path_url = 'http://';
62 62
 	}
63 63
 	$k_path_url .= $_SERVER['HTTP_HOST'];
64
-	$k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen(DIR_RAIZ) - 1)));
64
+	$k_path_url .= str_replace('\\', '/', substr(K_PATH_MAIN, (strlen(DIR_RAIZ) - 1)));
65 65
 }
66 66
 
67 67
 /**
68 68
  * URL path to tcpdf installation folder (http://localhost/tcpdf/).
69 69
  * By default it is automatically calculated but you can also set it as a fixed string to improve performances..
70 70
  */
71
-define ('K_PATH_URL', $k_path_url);
71
+define('K_PATH_URL', $k_path_url);
72 72
 
73 73
 /**
74 74
  * path for PDF fonts
75 75
  * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
76 76
  */
77
-define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
77
+define('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
78 78
 
79 79
 /**
80 80
  * cache directory for temporary files (full path)
81 81
  */
82
-define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
82
+define('K_PATH_CACHE', K_PATH_MAIN.'cache/');
83 83
 
84 84
 /**
85 85
  * cache directory for temporary files (url path)
86 86
  */
87
-define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
87
+define('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
88 88
 
89 89
 /**
90 90
  *images directory
91 91
  */
92
-define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
92
+define('K_PATH_IMAGES', K_PATH_MAIN.'images/');
93 93
 
94 94
 /**
95 95
  * blank image
96 96
  */
97
-define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
97
+define('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
98 98
 
99 99
 /**
100 100
  * page format
101 101
  */
102
-define ('PDF_PAGE_FORMAT', 'A4');
102
+define('PDF_PAGE_FORMAT', 'A4');
103 103
 
104 104
 /**
105 105
  * page orientation (P=portrait, L=landscape)
106 106
  */
107
-define ('PDF_PAGE_ORIENTATION', 'P');
107
+define('PDF_PAGE_ORIENTATION', 'P');
108 108
 
109 109
 /**
110 110
  * document creator
111 111
  */
112
-define ('PDF_CREATOR', 'TCPDF');
112
+define('PDF_CREATOR', 'TCPDF');
113 113
 
114 114
 /**
115 115
  * document author
116 116
  */
117
-define ('PDF_AUTHOR', 'TCPDF');
117
+define('PDF_AUTHOR', 'TCPDF');
118 118
 
119 119
 /**
120 120
  * header title
121 121
  */
122
-define ('PDF_HEADER_TITLE', 'TCPDF Example');
122
+define('PDF_HEADER_TITLE', 'TCPDF Example');
123 123
 
124 124
 /**
125 125
  * header description string
126 126
  */
127
-define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
127
+define('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
128 128
 
129 129
 /**
130 130
  * image logo
131 131
  */
132
-define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
132
+define('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
133 133
 
134 134
 /**
135 135
  * header logo image width [mm]
136 136
  */
137
-define ('PDF_HEADER_LOGO_WIDTH', 30);
137
+define('PDF_HEADER_LOGO_WIDTH', 30);
138 138
 
139 139
 /**
140 140
  *  document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
141 141
  */
142
-define ('PDF_UNIT', 'mm');
142
+define('PDF_UNIT', 'mm');
143 143
 
144 144
 /**
145 145
  * header margin
146 146
  */
147
-define ('PDF_MARGIN_HEADER', 5);
147
+define('PDF_MARGIN_HEADER', 5);
148 148
 
149 149
 /**
150 150
  * footer margin
151 151
  */
152
-define ('PDF_MARGIN_FOOTER', 10);
152
+define('PDF_MARGIN_FOOTER', 10);
153 153
 
154 154
 /**
155 155
  * top margin
156 156
  */
157
-define ('PDF_MARGIN_TOP', 27);
157
+define('PDF_MARGIN_TOP', 27);
158 158
 
159 159
 /**
160 160
  * bottom margin
161 161
  */
162
-define ('PDF_MARGIN_BOTTOM', 25);
162
+define('PDF_MARGIN_BOTTOM', 25);
163 163
 
164 164
 /**
165 165
  * left margin
166 166
  */
167
-define ('PDF_MARGIN_LEFT', 15);
167
+define('PDF_MARGIN_LEFT', 15);
168 168
 
169 169
 /**
170 170
  * right margin
171 171
  */
172
-define ('PDF_MARGIN_RIGHT', 15);
172
+define('PDF_MARGIN_RIGHT', 15);
173 173
 
174 174
 /**
175 175
  * default main font name
176 176
  */
177
-define ('PDF_FONT_NAME_MAIN', 'helvetica');
177
+define('PDF_FONT_NAME_MAIN', 'helvetica');
178 178
 
179 179
 /**
180 180
  * default main font size
181 181
  */
182
-define ('PDF_FONT_SIZE_MAIN', 10);
182
+define('PDF_FONT_SIZE_MAIN', 10);
183 183
 
184 184
 /**
185 185
  * default data font name
186 186
  */
187
-define ('PDF_FONT_NAME_DATA', 'helvetica');
187
+define('PDF_FONT_NAME_DATA', 'helvetica');
188 188
 
189 189
 /**
190 190
  * default data font size
191 191
  */
192
-define ('PDF_FONT_SIZE_DATA', 8);
192
+define('PDF_FONT_SIZE_DATA', 8);
193 193
 
194 194
 /**
195 195
  * default monospaced font name
196 196
  */
197
-define ('PDF_FONT_MONOSPACED', 'courier');
197
+define('PDF_FONT_MONOSPACED', 'courier');
198 198
 
199 199
 /**
200 200
  * ratio used to adjust the conversion of pixels to user units
201 201
  */
202
-define ('PDF_IMAGE_SCALE_RATIO', 1.25);
202
+define('PDF_IMAGE_SCALE_RATIO', 1.25);
203 203
 
204 204
 /**
205 205
  * magnification factor for titles
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 /**
220 220
  * reduction factor for small font
221 221
  */
222
-define('K_SMALL_RATIO', 2/3);
222
+define('K_SMALL_RATIO', 2 / 3);
223 223
 
224 224
 /**
225 225
  * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 		DIR_RAIZ = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
36 36
 	} elseif(isset($_SERVER['PATH_TRANSLATED'])) {
37 37
 		DIR_RAIZ = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
38
-	}	else {
38
+	} else {
39 39
 		// define here your DOCUMENT_ROOT path if the previous fails
40 40
 		DIR_RAIZ = '/var/www';
41 41
 	}
Please login to merge, or discard this patch.