Skip to content

Commit

Permalink
Fixed PSR-12 Compliance issues in src\Media (chesslablab#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarvelFan authored Oct 15, 2024
1 parent 54ae62b commit b222316
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Media/AbstractBoardToImg.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function chessboard(string $filepath)
{
$nSqs = $this->board->square::SIZE['files'] * $this->board->square::SIZE['ranks'];
$sqSize = $this->size / $this->board->square::SIZE['files'];
$chessboard = $this->imagine->open(self::FILEPATH.'/chessboard/'."{$this->size}_{$nSqs}".'.png');
$chessboard = $this->imagine->open(self::FILEPATH . '/chessboard/' . "{$this->size}_{$nSqs}" . '.png');
$x = $y = 0;
foreach ($this->board->toArray($this->flip) as $i => $rank) {
foreach ($rank as $j => $piece) {
Expand Down
4 changes: 2 additions & 2 deletions src/Media/BoardToMp4.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public function output(string $filepath, string $filename = ''): string
}

$filename
? $filename = $filename.$this->ext
: $filename = uniqid().$this->ext;
? $filename = $filename . $this->ext
: $filename = uniqid() . $this->ext;

$this->frames($filepath, $filename)
->animate(escapeshellarg($filepath), $filename)
Expand Down
2 changes: 1 addition & 1 deletion src/Media/PGN/AN/JpgToPiece.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(\GdImage $image)
$this->image = $image;

$this->estimator = PersistentModel::load(
new Filesystem(self::ML_PATH.'/piece.rbx')
new Filesystem(self::ML_PATH . '/piece.rbx')
);
}

Expand Down

0 comments on commit b222316

Please sign in to comment.