@@ -27,13 +27,13 @@ |
||
| 27 | 27 | public function testPrevDay_Array() |
| 28 | 28 | { |
| 29 | 29 | $this->assertEqual([ |
| 30 | - 'year' => 2003, |
|
| 31 | - 'month' => 10, |
|
| 32 | - 'day' => 24, |
|
| 33 | - 'hour' => 0, |
|
| 34 | - 'minute' => 0, |
|
| 35 | - 'second' => 0, |
|
| 36 | - ], $this->cal->prevDay('array')); |
|
| 30 | + 'year' => 2003, |
|
| 31 | + 'month' => 10, |
|
| 32 | + 'day' => 24, |
|
| 33 | + 'hour' => 0, |
|
| 34 | + 'minute' => 0, |
|
| 35 | + 'second' => 0, |
|
| 36 | + ], $this->cal->prevDay('array')); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function testPrevMinute() |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | -require_once __DIR__ . '/./calendar_test.php'; |
|
| 7 | +require_once __DIR__.'/./calendar_test.php'; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class TestOfHour. |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | public function testSelection() |
| 118 | 118 | { |
| 119 | - require_once CALENDAR_ROOT . 'Minute.php'; |
|
| 119 | + require_once CALENDAR_ROOT.'Minute.php'; |
|
| 120 | 120 | $selection = [new Calendar_Minute(2003, 10, 25, 13, 32)]; |
| 121 | 121 | $this->cal->build($selection); |
| 122 | 122 | $i = 0; |
@@ -2,10 +2,10 @@ discard block |
||
| 2 | 2 | // |
| 3 | 3 | define('CALENDAR_FIRST_DAY_OF_WEEK', 0); //force firstDay = Sunday |
| 4 | 4 | |
| 5 | -require_once __DIR__ . '/simple_include.php'; |
|
| 6 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 5 | +require_once __DIR__.'/simple_include.php'; |
|
| 6 | +require_once __DIR__.'/calendar_include.php'; |
|
| 7 | 7 | |
| 8 | -require_once __DIR__ . '/./calendar_test.php'; |
|
| 8 | +require_once __DIR__.'/./calendar_test.php'; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Class TestOfWeek_firstday_0. |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | |
| 276 | 276 | public function testSelection() |
| 277 | 277 | { |
| 278 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
| 278 | + require_once CALENDAR_ROOT.'Day.php'; |
|
| 279 | 279 | $selection = [Calendar_Factory::create('Day', 2003, 10, 6)]; |
| 280 | 280 | $this->cal->build($selection); |
| 281 | 281 | $i = 1; |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | |
| 291 | 291 | public function testSelectionCornerCase() |
| 292 | 292 | { |
| 293 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
| 293 | + require_once CALENDAR_ROOT.'Day.php'; |
|
| 294 | 294 | $selectedDays = [ |
| 295 | 295 | Calendar_Factory::create('Day', 2003, 12, 28), |
| 296 | 296 | Calendar_Factory::create('Day', 2003, 12, 29), |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | Calendar_Factory::create('Day', 2004, 01, 02), |
| 301 | 301 | Calendar_Factory::create('Day', 2004, 01, 03), |
| 302 | 302 | ]; |
| 303 | - $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0); |
|
| 303 | + $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0); |
|
| 304 | 304 | $this->cal->build($selectedDays); |
| 305 | 305 | while ($Day = $this->cal->fetch()) { |
| 306 | 306 | $this->assertTrue($Day->isSelected()); |
@@ -71,13 +71,13 @@ |
||
| 71 | 71 | public function testPrevDay_Array() |
| 72 | 72 | { |
| 73 | 73 | $this->assertEqual([ |
| 74 | - 'year' => 2003, |
|
| 75 | - 'month' => 10, |
|
| 76 | - 'day' => 8, |
|
| 77 | - 'hour' => 0, |
|
| 78 | - 'minute' => 0, |
|
| 79 | - 'second' => 0, |
|
| 80 | - ], $this->cal->prevDay('array')); |
|
| 74 | + 'year' => 2003, |
|
| 75 | + 'month' => 10, |
|
| 76 | + 'day' => 8, |
|
| 77 | + 'hour' => 0, |
|
| 78 | + 'minute' => 0, |
|
| 79 | + 'second' => 0, |
|
| 80 | + ], $this->cal->prevDay('array')); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | public function testThisDay() |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | -require_once __DIR__ . '/./calendar_test.php'; |
|
| 7 | +require_once __DIR__.'/./calendar_test.php'; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class TestOfMonth. |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | public function testSelection() |
| 153 | 153 | { |
| 154 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
| 154 | + require_once CALENDAR_ROOT.'Day.php'; |
|
| 155 | 155 | $selection = [new Calendar_Day(2003, 10, 25)]; |
| 156 | 156 | $this->cal->build($selection); |
| 157 | 157 | $i = 1; |
@@ -32,13 +32,13 @@ |
||
| 32 | 32 | public function testPrevDay_Array() |
| 33 | 33 | { |
| 34 | 34 | $this->assertEqual([ |
| 35 | - 'year' => 2003, |
|
| 36 | - 'month' => 9, |
|
| 37 | - 'day' => 30, |
|
| 38 | - 'hour' => 0, |
|
| 39 | - 'minute' => 0, |
|
| 40 | - 'second' => 0, |
|
| 41 | - ], $this->cal->prevDay('array')); |
|
| 35 | + 'year' => 2003, |
|
| 36 | + 'month' => 9, |
|
| 37 | + 'day' => 30, |
|
| 38 | + 'hour' => 0, |
|
| 39 | + 'minute' => 0, |
|
| 40 | + 'second' => 0, |
|
| 41 | + ], $this->cal->prevDay('array')); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function testThisDay() |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | -require_once __DIR__ . '/./calendar_test.php'; |
|
| 7 | +require_once __DIR__.'/./calendar_test.php'; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class TestOfMonthWeekdays. |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | public function testSelection() |
| 148 | 148 | { |
| 149 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
| 149 | + require_once CALENDAR_ROOT.'Day.php'; |
|
| 150 | 150 | $selection = [new Calendar_Day(2003, 10, 25)]; |
| 151 | 151 | $this->cal->build($selection); |
| 152 | 152 | $daysInPrevMonth = (0 == CALENDAR_FIRST_DAY_OF_WEEK) ? 3 : 2; |
@@ -32,13 +32,13 @@ |
||
| 32 | 32 | public function testPrevDay_Array() |
| 33 | 33 | { |
| 34 | 34 | $this->assertEqual([ |
| 35 | - 'year' => 2003, |
|
| 36 | - 'month' => 9, |
|
| 37 | - 'day' => 30, |
|
| 38 | - 'hour' => 0, |
|
| 39 | - 'minute' => 0, |
|
| 40 | - 'second' => 0, |
|
| 41 | - ], $this->cal->prevDay('array')); |
|
| 35 | + 'year' => 2003, |
|
| 36 | + 'month' => 9, |
|
| 37 | + 'day' => 30, |
|
| 38 | + 'hour' => 0, |
|
| 39 | + 'minute' => 0, |
|
| 40 | + 'second' => 0, |
|
| 41 | + ], $this->cal->prevDay('array')); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function testThisDay() |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | public function testPrevDay_Array() |
| 28 | 28 | { |
| 29 | 29 | $this->assertEqual([ |
| 30 | - 'year' => 2003, |
|
| 31 | - 'month' => 10, |
|
| 32 | - 'day' => 24, |
|
| 33 | - 'hour' => 0, |
|
| 34 | - 'minute' => 0, |
|
| 35 | - 'second' => 0, |
|
| 36 | - ], $this->cal->prevDay('array')); |
|
| 30 | + 'year' => 2003, |
|
| 31 | + 'month' => 10, |
|
| 32 | + 'day' => 24, |
|
| 33 | + 'hour' => 0, |
|
| 34 | + 'minute' => 0, |
|
| 35 | + 'second' => 0, |
|
| 36 | + ], $this->cal->prevDay('array')); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function testPrevHour() |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | -require_once __DIR__ . '/./calendar_test.php'; |
|
| 7 | +require_once __DIR__.'/./calendar_test.php'; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class TestOfDay. |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | public function testSelection() |
| 133 | 133 | { |
| 134 | - require_once CALENDAR_ROOT . 'Hour.php'; |
|
| 134 | + require_once CALENDAR_ROOT.'Hour.php'; |
|
| 135 | 135 | $selection = [new Calendar_Hour(2003, 10, 25, 13)]; |
| 136 | 136 | $this->cal->build($selection); |
| 137 | 137 | $i = 0; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | if (!isset($g_pcl_trace_name)) { |
| 171 | 171 | $g_pcl_trace_name = $p_name; |
| 172 | 172 | } else { |
| 173 | - $g_pcl_trace_name .= ',' . $p_name; |
|
| 173 | + $g_pcl_trace_name .= ','.$p_name; |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | // ----- Update the function entry |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | echo '<tr>'; |
| 399 | 399 | echo '<td><table width=100% border=0 cellspacing=0 cellpadding=0><tr>'; |
| 400 | 400 | $n = ($g_pcl_trace_entries[$i]['index'] + 1) * 10; |
| 401 | - echo '<td width=' . $n . '><table width=100% border=0 cellspacing=0 cellpadding=0><tr>'; |
|
| 401 | + echo '<td width='.$n.'><table width=100% border=0 cellspacing=0 cellpadding=0><tr>'; |
|
| 402 | 402 | |
| 403 | 403 | for ($j = 0; $j <= $g_pcl_trace_entries[$i]['index']; ++$j) { |
| 404 | 404 | if ($j == $g_pcl_trace_entries[$i]['index']) { |
@@ -415,25 +415,25 @@ discard block |
||
| 415 | 415 | echo '<td width=2></td>'; |
| 416 | 416 | switch ($g_pcl_trace_entries[$i]['type']) { |
| 417 | 417 | case 1: |
| 418 | - echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '(' . $g_pcl_trace_entries[$i]['param'] . ')</span></td>'; |
|
| 418 | + echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'('.$g_pcl_trace_entries[$i]['param'].')</span></td>'; |
|
| 419 | 419 | break; |
| 420 | 420 | case 2: |
| 421 | - echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '()=' . $g_pcl_trace_entries[$i]['param'] . '</span></td>'; |
|
| 421 | + echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'()='.$g_pcl_trace_entries[$i]['param'].'</span></td>'; |
|
| 422 | 422 | break; |
| 423 | 423 | case 3: |
| 424 | 424 | case 4: |
| 425 | 425 | echo '<td><table width=100% border=0 cellspacing=0 cellpadding=0><td width=20></td><td>'; |
| 426 | - echo "<span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['message'] . '</span>'; |
|
| 426 | + echo "<span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['message'].'</span>'; |
|
| 427 | 427 | echo '</td></table></td>'; |
| 428 | 428 | break; |
| 429 | 429 | default: |
| 430 | - echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '(' . $g_pcl_trace_entries[$i]['param'] . ')</span></td>'; |
|
| 430 | + echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'('.$g_pcl_trace_entries[$i]['param'].')</span></td>'; |
|
| 431 | 431 | } |
| 432 | 432 | echo '</tr></table></td>'; |
| 433 | 433 | echo '<td width=5></td>'; |
| 434 | - echo '<td><span style="font-size: xx-small; font-family: $v_font; ">' . basename($g_pcl_trace_entries[$i]['file']) . '</span></td>'; |
|
| 434 | + echo '<td><span style="font-size: xx-small; font-family: $v_font; ">'.basename($g_pcl_trace_entries[$i]['file']).'</span></td>'; |
|
| 435 | 435 | echo '<td width=5></td>'; |
| 436 | - echo '<td><span style="font-size: xx-small; font-family: $v_font; ">' . $g_pcl_trace_entries[$i]['line'] . '</span></td>'; |
|
| 436 | + echo '<td><span style="font-size: xx-small; font-family: $v_font; ">'.$g_pcl_trace_entries[$i]['line'].'</span></td>'; |
|
| 437 | 437 | echo '</tr>'; |
| 438 | 438 | } |
| 439 | 439 | |
@@ -477,12 +477,12 @@ discard block |
||
| 477 | 477 | echo '---'; |
| 478 | 478 | } |
| 479 | 479 | if (1 == $p_entry['type']) { |
| 480 | - echo '<b>' . $p_entry['name'] . '</b>(' . $p_entry['param'] . ') : ' . $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>'; |
|
| 480 | + echo '<b>'.$p_entry['name'].'</b>('.$p_entry['param'].') : '.$p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>'; |
|
| 481 | 481 | } else { |
| 482 | 482 | if (2 == $p_entry['type']) { |
| 483 | - echo '<b>' . $p_entry['name'] . '</b>()=' . $p_entry['param'] . ' : ' . $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>'; |
|
| 483 | + echo '<b>'.$p_entry['name'].'</b>()='.$p_entry['param'].' : '.$p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>'; |
|
| 484 | 484 | } else { |
| 485 | - echo $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>'; |
|
| 485 | + echo $p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>'; |
|
| 486 | 486 | } |
| 487 | 487 | } |
| 488 | 488 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * Load PEAR::Date class. |
| 42 | 42 | */ |
| 43 | -require_once __DIR__ . '/Date.php'; |
|
| 43 | +require_once __DIR__.'/Date.php'; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Performs calendar calculations based on the PEAR::Date class |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | $date = self::stampCollection($stamp); |
| 88 | 88 | |
| 89 | - return (int)$date->year; |
|
| 89 | + return (int) $date->year; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | { |
| 101 | 101 | $date = self::stampCollection($stamp); |
| 102 | 102 | |
| 103 | - return (int)$date->month; |
|
| 103 | + return (int) $date->month; |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | { |
| 115 | 115 | $date = self::stampCollection($stamp); |
| 116 | 116 | |
| 117 | - return (int)$date->day; |
|
| 117 | + return (int) $date->day; |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | { |
| 129 | 129 | $date = self::stampCollection($stamp); |
| 130 | 130 | |
| 131 | - return (int)$date->hour; |
|
| 131 | + return (int) $date->hour; |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | { |
| 143 | 143 | $date = self::stampCollection($stamp); |
| 144 | 144 | |
| 145 | - return (int)$date->minute; |
|
| 145 | + return (int) $date->minute; |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | { |
| 157 | 157 | $date = self::stampCollection($stamp); |
| 158 | 158 | |
| 159 | - return (int)$date->second; |
|
| 159 | + return (int) $date->second; |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | { |
| 176 | 176 | $r = []; |
| 177 | 177 | self::adjustDate($y, $m, $d, $h, $i, $s); |
| 178 | - $key = $y . $m . $d . $h . $i . $s; |
|
| 178 | + $key = $y.$m.$d.$h.$i.$s; |
|
| 179 | 179 | if (!isset($r[$key])) { |
| 180 | 180 | $r[$key] = sprintf('%04d-%02d-%02d %02d:%02d:%02d', $y, $m, $d, $h, $i, $s); |
| 181 | 181 | } |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | */ |
| 287 | 287 | public function getDaysInMonth($y, $m) |
| 288 | 288 | { |
| 289 | - return (int)Date_Calc::daysInMonth($m, $y); |
|
| 289 | + return (int) Date_Calc::daysInMonth($m, $y); |
|
| 290 | 290 | } |
| 291 | 291 | |
| 292 | 292 | /** |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | */ |
| 301 | 301 | public function getFirstDayInMonth($y, $m) |
| 302 | 302 | { |
| 303 | - return (int)Date_Calc::dayOfWeek(1, $m, $y); |
|
| 303 | + return (int) Date_Calc::dayOfWeek(1, $m, $y); |
|
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | /** |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | public function getWeekNInMonth($y, $m, $d, $firstDay = 1) |
| 348 | 348 | { |
| 349 | 349 | $weekEnd = (0 == $firstDay) ? $this->getDaysInWeek() - 1 : $firstDay - 1; |
| 350 | - $end_of_week = (int)Date_Calc::nextDayOfWeek($weekEnd, 1, $m, $y, '%e', true); |
|
| 350 | + $end_of_week = (int) Date_Calc::nextDayOfWeek($weekEnd, 1, $m, $y, '%e', true); |
|
| 351 | 351 | $w = 1; |
| 352 | 352 | while ($d > $end_of_week) { |
| 353 | 353 | ++$w; |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | } |
| 382 | 382 | $daysInTheFirstWeek %= $this->getDaysInWeek(); |
| 383 | 383 | |
| 384 | - return (int)(ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks); |
|
| 384 | + return (int) (ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks); |
|
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | /** |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT); |
| 22 | 22 | $event = $eventHandler->getEvent($itemId, 0, true); |
| 23 | 23 | $item['name'] = $event->getVar('event_title'); |
| 24 | - $item['url'] = XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'); |
|
| 24 | + $item['url'] = XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'); |
|
| 25 | 25 | |
| 26 | 26 | return $item; |
| 27 | 27 | } |
@@ -170,9 +170,9 @@ |
||
| 170 | 170 | $tHex = ['', '', '', '']; |
| 171 | 171 | |
| 172 | 172 | $tHex[0] = $aColors[0]; |
| 173 | - $tHex[1] = substr('00' . dechex($aColors[1]), -2); |
|
| 174 | - $tHex[2] = substr('00' . dechex($aColors[2]), -2); |
|
| 175 | - $tHex[3] = substr('00' . dechex($aColors[3]), -2); |
|
| 173 | + $tHex[1] = substr('00'.dechex($aColors[1]), -2); |
|
| 174 | + $tHex[2] = substr('00'.dechex($aColors[2]), -2); |
|
| 175 | + $tHex[3] = substr('00'.dechex($aColors[3]), -2); |
|
| 176 | 176 | |
| 177 | 177 | $colorHexa = implode('', $tHex); |
| 178 | 178 | |