@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | <th> </th> |
| 84 | 84 | <th>Category</th><th>Message</th><th>Time Spent (s)</th><th>Cumulated Time Spent (s)</th> |
| 85 | 85 | </tr> |
| 86 | -EOD; |
|
| 86 | +eod; |
|
| 87 | 87 | } else { |
| 88 | 88 | $string = <<<EOD |
| 89 | 89 | <table cellspacing="0" cellpadding="2" border="0" width="100%" style="table-layout:auto"> |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | <th style="width: 15px"> </th> |
| 96 | 96 | <th style="width: auto">Category</th><th style="width: auto">Message</th><th style="width: 120px">Time Spent (s)</th><th style="width: 150px">Cumulated Time Spent (s)</th> |
| 97 | 97 | </tr> |
| 98 | -EOD; |
|
| 98 | +eod; |
|
| 99 | 99 | } |
| 100 | 100 | return $string; |
| 101 | 101 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | <td class="time">{$delta}</td> |
| 119 | 119 | <td class="cumulatedtime">{$total}</td> |
| 120 | 120 | </tr> |
| 121 | -EOD; |
|
| 121 | +eod; |
|
| 122 | 122 | } else { |
| 123 | 123 | $bgcolor = $info['even'] ? "#fff" : "#eee"; |
| 124 | 124 | $color = $this->getColorLevel($log[1]); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | <td style="text-align:center">{$delta}</td> |
| 131 | 131 | <td style="text-align:center">{$total}</td> |
| 132 | 132 | </tr> |
| 133 | -EOD; |
|
| 133 | +eod; |
|
| 134 | 134 | } |
| 135 | 135 | return $string; |
| 136 | 136 | } |
@@ -377,7 +377,7 @@ |
||
| 377 | 377 | break; |
| 378 | 378 | } |
| 379 | 379 | $method = self::$_steps[$this->_step]; |
| 380 | - Prado::trace("Executing $method()", 'Prado\TApplication'); |
|
| 380 | + Prado::trace("executing $method()", 'Prado\TApplication'); |
|
| 381 | 381 | $this->$method(); |
| 382 | 382 | $this->_step++; |
| 383 | 383 | } |
@@ -1257,6 +1257,6 @@ |
||
| 1257 | 1257 | { |
| 1258 | 1258 | $this->flushOutput(false); // flush all remaining content in the buffer |
| 1259 | 1259 | $this->raiseEvent('OnEndRequest', $this, null); |
| 1260 | - $this->saveGlobals(); // save global state |
|
| 1260 | + $this->saveGlobals(); // save global state |
|
| 1261 | 1261 | } |
| 1262 | 1262 | } |
@@ -295,7 +295,7 @@ |
||
| 295 | 295 | */ |
| 296 | 296 | public function getValidationPropertyValue() |
| 297 | 297 | { |
| 298 | - return implode(',', array_map(function ($file) { |
|
| 298 | + return implode(',', array_map(function($file) { |
|
| 299 | 299 | return $file->getFileName(); |
| 300 | 300 | }, $this->_files)); |
| 301 | 301 | } |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | */ |
| 227 | 227 | public function clear() |
| 228 | 228 | { |
| 229 | - for ($i = $this->_c - 1;$i >= 0;--$i) { |
|
| 229 | + for ($i = $this->_c - 1; $i >= 0; --$i) { |
|
| 230 | 230 | $this->removeAt($i); |
| 231 | 231 | } |
| 232 | 232 | } |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | public static function poFile2moFile($pofile, $mofile) |
| 128 | 128 | { |
| 129 | 129 | if (!is_file($pofile)) { |
| 130 | - throw new Exception("File $pofile doesn't exist."); |
|
| 130 | + throw new Exception("file $pofile doesn't exist."); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | include_once __DIR__ . '/PO.php'; |
@@ -481,7 +481,7 @@ |
||
| 481 | 481 | } |
| 482 | 482 | |
| 483 | 483 | foreach ($this->_d as $priority => $items) { |
| 484 | - for ($index = count($items) - 1;$index >= 0;$index--) { |
|
| 484 | + for ($index = count($items) - 1; $index >= 0; $index--) { |
|
| 485 | 485 | $this->removeAtIndexInPriority($index, $priority); |
| 486 | 486 | } |
| 487 | 487 | unset($this->_d[$priority]); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $hexLength = strlen($hex); |
| 63 | 63 | $base = strlen($alphabet); |
| 64 | 64 | $result = ''; |
| 65 | - for ($i = 0;$i < $hexLength;$i += 6) { |
|
| 65 | + for ($i = 0; $i < $hexLength; $i += 6) { |
|
| 66 | 66 | $number = hexdec(substr($hex, $i, 6)); |
| 67 | 67 | while ($number) { |
| 68 | 68 | $result .= $alphabet[$number % $base]; |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | $hasShadow = ($theme & THEME_SHADOWED_TEXT); |
| 109 | - for ($i = 0;$i < $length;$i++) { |
|
| 109 | + for ($i = 0; $i < $length; $i++) { |
|
| 110 | 110 | $color = imagecolorallocate($image, rand(150, 220), rand(150, 220), rand(150, 220)); |
| 111 | 111 | $size = rand($fontWidth - 10, $fontWidth); |
| 112 | 112 | $angle = rand(-30, 30); |
@@ -159,8 +159,8 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | function addNoise($image, $width, $height) |
| 161 | 161 | { |
| 162 | - for ($x = 0;$x < $width;++$x) { |
|
| 163 | - for ($y = 0;$y < $height;++$y) { |
|
| 162 | + for ($x = 0; $x < $width; ++$x) { |
|
| 163 | + for ($y = 0; $y < $height; ++$y) { |
|
| 164 | 164 | if (rand(0, 100) < 25) { |
| 165 | 165 | $color = imagecolorallocate($image, rand(150, 220), rand(150, 220), rand(150, 220)); |
| 166 | 166 | imagesetpixel($image, $x, $y, $color); |
@@ -172,13 +172,13 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | function addGrid($image, $width, $height) |
| 174 | 174 | { |
| 175 | - for ($i = 0;$i < $width;$i += rand(15, 25)) { |
|
| 175 | + for ($i = 0; $i < $width; $i += rand(15, 25)) { |
|
| 176 | 176 | imagesetthickness($image, rand(2, 6)); |
| 177 | 177 | $color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180)); |
| 178 | 178 | imageline($image, $i + rand(-10, 20), 0, $i + rand(-10, 20), $height, $color); |
| 179 | 179 | imagecolordeallocate($image, $color); |
| 180 | 180 | } |
| 181 | - for ($i = 0;$i < $height;$i += rand(15, 25)) { |
|
| 181 | + for ($i = 0; $i < $height; $i += rand(15, 25)) { |
|
| 182 | 182 | imagesetthickness($image, rand(2, 6)); |
| 183 | 183 | $color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180)); |
| 184 | 184 | imageline($image, 0, $i + rand(-10, 20), $width, $i + rand(-10, 20), $color); |
@@ -188,10 +188,10 @@ discard block |
||
| 188 | 188 | |
| 189 | 189 | function addScribble($image, $width, $height) |
| 190 | 190 | { |
| 191 | - for ($i = 0;$i < 8;$i++) { |
|
| 191 | + for ($i = 0; $i < 8; $i++) { |
|
| 192 | 192 | $color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180)); |
| 193 | 193 | $points = []; |
| 194 | - for ($j = 1;$j < rand(5, 10);$j++) { |
|
| 194 | + for ($j = 1; $j < rand(5, 10); $j++) { |
|
| 195 | 195 | $points[] = rand(2 * (20 * ($i + 1)), 2 * (50 * ($i + 1))); |
| 196 | 196 | $points[] = rand(30, $height + 30); |
| 197 | 197 | } |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | { |
| 206 | 206 | $tempImage = imagecreatetruecolor($width, $height); |
| 207 | 207 | $chunk = rand(1, 5); |
| 208 | - for ($x = $y = 0;$x < $width;$x += $chunk) { |
|
| 208 | + for ($x = $y = 0; $x < $width; $x += $chunk) { |
|
| 209 | 209 | $chunk = rand(1, 5); |
| 210 | 210 | $y += rand(-1, 1); |
| 211 | 211 | if ($y >= $height) { |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | } |
| 217 | 217 | imagecopy($tempImage, $image, $x, 0, $x, $y, $chunk, $height); |
| 218 | 218 | } |
| 219 | - for ($x = $y = 0;$y < $height;$y += $chunk) { |
|
| 219 | + for ($x = $y = 0; $y < $height; $y += $chunk) { |
|
| 220 | 220 | $chunk = rand(1, 5); |
| 221 | 221 | $x += rand(-1, 1); |
| 222 | 222 | if ($x >= $width) { |
@@ -114,17 +114,17 @@ discard block |
||
| 114 | 114 | * Indexes for the rare fields. |
| 115 | 115 | * In order to save memory, rare fields will only be created if they are needed. |
| 116 | 116 | */ |
| 117 | - const RF_CONTROLS = 0; // child controls |
|
| 118 | - const RF_CHILD_STATE = 1; // child state field |
|
| 119 | - const RF_NAMED_CONTROLS = 2; // list of controls whose namingcontainer is this control |
|
| 120 | - const RF_NAMED_CONTROLS_ID = 3; // counter for automatic id |
|
| 121 | - const RF_SKIN_ID = 4; // skin ID |
|
| 122 | - const RF_DATA_BINDINGS = 5; // data bindings |
|
| 123 | - const RF_EVENTS = 6; // event handlers |
|
| 124 | - const RF_CONTROLSTATE = 7; // controlstate |
|
| 125 | - const RF_NAMED_OBJECTS = 8; // controls declared with ID on template |
|
| 126 | - const RF_ADAPTER = 9; // adapter |
|
| 127 | - const RF_AUTO_BINDINGS = 10; // auto data bindings |
|
| 117 | + const RF_CONTROLS = 0; // child controls |
|
| 118 | + const RF_CHILD_STATE = 1; // child state field |
|
| 119 | + const RF_NAMED_CONTROLS = 2; // list of controls whose namingcontainer is this control |
|
| 120 | + const RF_NAMED_CONTROLS_ID = 3; // counter for automatic id |
|
| 121 | + const RF_SKIN_ID = 4; // skin ID |
|
| 122 | + const RF_DATA_BINDINGS = 5; // data bindings |
|
| 123 | + const RF_EVENTS = 6; // event handlers |
|
| 124 | + const RF_CONTROLSTATE = 7; // controlstate |
|
| 125 | + const RF_NAMED_OBJECTS = 8; // controls declared with ID on template |
|
| 126 | + const RF_ADAPTER = 9; // adapter |
|
| 127 | + const RF_AUTO_BINDINGS = 10; // auto data bindings |
|
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | 130 | * @var string control ID |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | public function getUniqueID() |
| 403 | 403 | { |
| 404 | 404 | if ($this->_uid === '' || $this->_uid === null) { // need to build the UniqueID |
| 405 | - $this->_uid = ''; // set to not-null, so that clearCachedUniqueID() may take action |
|
| 405 | + $this->_uid = ''; // set to not-null, so that clearCachedUniqueID() may take action |
|
| 406 | 406 | if ($namingContainer = $this->getNamingContainer()) { |
| 407 | 407 | if ($this->getPage() === $namingContainer) { |
| 408 | 408 | return ($this->_uid = $this->_id); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | {$this->action} {$parameters}{$optional} |
| 202 | 202 | {$description} |
| 203 | 203 | |
| 204 | -EOD; |
|
| 204 | +eod; |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /** |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | * @soapproperty |
| 418 | 418 | */ |
| 419 | 419 | |
| 420 | -EOD; |
|
| 420 | +eod; |
|
| 421 | 421 | } |
| 422 | 422 | $prop .= "\tpublic $name;"; |
| 423 | 423 | return $prop; |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | } |
| 451 | 451 | } |
| 452 | 452 | |
| 453 | -EOD; |
|
| 453 | +eod; |
|
| 454 | 454 | } |
| 455 | 455 | } |
| 456 | 456 | |