@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | foreach($range2 as $col){ |
| 293 | 293 | |
| 294 | 294 | if( |
| 295 | - $this->matrix[$row][$col ] |
|
| 295 | + $this->matrix[$row][$col ] |
|
| 296 | 296 | && !$this->matrix[$row][$col + 1] |
| 297 | 297 | && $this->matrix[$row][$col + 2] |
| 298 | 298 | && $this->matrix[$row][$col + 3] |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | foreach($range2 as $row){ |
| 311 | 311 | |
| 312 | 312 | if( |
| 313 | - $this->matrix[$row ][$col] |
|
| 313 | + $this->matrix[$row ][$col] |
|
| 314 | 314 | && !$this->matrix[$row + 1][$col] |
| 315 | 315 | && $this->matrix[$row + 2][$col] |
| 316 | 316 | && $this->matrix[$row + 3][$col] |
@@ -649,7 +649,7 @@ discard block |
||
| 649 | 649 | for($row = -2; $row <= 2; $row++){ |
| 650 | 650 | for($col = -2; $col <= 2; $col++){ |
| 651 | 651 | $this->matrix[$posI + $row][$posJ + $col] = |
| 652 | - $row === -2 || $row === 2 |
|
| 652 | + $row === -2 || $row === 2 |
|
| 653 | 653 | || $col === -2 || $col === 2 |
| 654 | 654 | || ($row === 0 && $col === 0); |
| 655 | 655 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | // svg header |
| 84 | 84 | $svg = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'.$length.'" height="'.$length.'" viewBox="0 0 '.$length.' '.$length.'" style="background-color:'.$this->options->bgColor.'">'.$this->options->eol. |
| 85 | - '<defs><style>.'.$class.'{fill:'.$this->options->fgColor.'} rect{shape-rendering:crispEdges}</style></defs>'.$this->options->eol; |
|
| 85 | + '<defs><style>.'.$class.'{fill:'.$this->options->fgColor.'} rect{shape-rendering:crispEdges}</style></defs>'.$this->options->eol; |
|
| 86 | 86 | |
| 87 | 87 | // svg body |
| 88 | 88 | foreach($this->matrix as $r => $row){ |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | elseif($from >= 0){ |
| 102 | 102 | $svg .= '<rect x="'.($from * $this->options->pixelSize + $this->options->marginSize).'" y="'.($r * $this->options->pixelSize + $this->options->marginSize) |
| 103 | - .'" width="'.($this->options->pixelSize * $count).'" height="'.$this->options->pixelSize.'" class="'.$class.'" />'.$this->options->eol; |
|
| 103 | + .'" width="'.($this->options->pixelSize * $count).'" height="'.$this->options->pixelSize.'" class="'.$class.'" />'.$this->options->eol; |
|
| 104 | 104 | |
| 105 | 105 | // reset count |
| 106 | 106 | $from = -1; |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | // close off the row, if applicable |
| 112 | 112 | if($from >= 0){ |
| 113 | 113 | $svg .= '<rect x="'.($from * $this->options->pixelSize + $this->options->marginSize).'" y="'.($r * $this->options->pixelSize + $this->options->marginSize) |
| 114 | - .'" width="'.($this->options->pixelSize * $count).'" height="'.$this->options->pixelSize.'" class="'.$class.'" />'.$this->options->eol; |
|
| 114 | + .'" width="'.($this->options->pixelSize * $count).'" height="'.$this->options->pixelSize.'" class="'.$class.'" />'.$this->options->eol; |
|
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |