@@ -9,14 +9,14 @@ discard block |
||
| 9 | 9 | private $limit, |
| 10 | 10 | $sq, |
| 11 | 11 | $chars, |
| 12 | - $stack = array('1','2','3','4','5','6','7','8','9','0','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'); |
|
| 12 | + $stack = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'); |
|
| 13 | 13 | |
| 14 | 14 | public function __construct() |
| 15 | 15 | { |
| 16 | 16 | ini_set('memory_limit', -1); |
| 17 | 17 | set_time_limit(0); |
| 18 | 18 | |
| 19 | - ini_set('display_errors',1); |
|
| 19 | + ini_set('display_errors', 1); |
|
| 20 | 20 | error_reporting(E_ALL); |
| 21 | 21 | |
| 22 | 22 | $this->number = 0; |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | public function logic() |
| 33 | 33 | { |
| 34 | - if(count($this->stack) < $this->limit) |
|
| 34 | + if (count($this->stack) < $this->limit) |
|
| 35 | 35 | { |
| 36 | 36 | echo 'error'; |
| 37 | 37 | exit; |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $row_temp = array(); |
| 131 | 131 | for ($x = 0; $x < $this->limit; $x++) |
| 132 | 132 | { |
| 133 | - if(!isset($this->sudoku[$row * $this->limit + $x])) |
|
| 133 | + if (!isset($this->sudoku[$row * $this->limit + $x])) |
|
| 134 | 134 | { |
| 135 | 135 | $this->sudoku[$row * $this->limit + $x] = null; |
| 136 | 136 | } |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | |
| 303 | 303 | $timing = self::microtime() - $start; |
| 304 | 304 | $this->result = array( |
| 305 | - 'created_in' => round($timing,2), |
|
| 305 | + 'created_in' => round($timing, 2), |
|
| 306 | 306 | 'difficulty' => 'N/A' |
| 307 | 307 | ); |
| 308 | 308 | |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | echo '<td |
| 344 | 344 | data-row="'.$u.'" |
| 345 | 345 | data-col="'.$v.'" |
| 346 | - style="border: 1px solid black;border-bottom:' . $border . 'px solid black;border-right:' . $border2 . 'px solid black;line-height: 50px; width: 50px; text-align: center; vertical-align: middle;">'; |
|
| 346 | + style="border: 1px solid black;border-bottom:' . $border.'px solid black;border-right:'.$border2.'px solid black;line-height: 50px; width: 50px; text-align: center; vertical-align: middle;">'; |
|
| 347 | 347 | echo($this->sudoku[$v * $this->limit + $u]); |
| 348 | 348 | echo '</td>'; |
| 349 | 349 | |