Skip to content

Commit

Permalink
style(src) ignore transpile transgressions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Oct 18, 2024
1 parent 3126042 commit 9fbb505
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Process/SerializableThrowable.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __construct(Throwable $throwable)
* trace: array<int,array<string,mixed>>
* }
*/
public function __serialize(): array
public function __serialize(): array // phpcs:ignore
{
return [
'colorize' => $this->colorize,
Expand All @@ -92,7 +92,7 @@ public function __serialize(): array
*
* @throws ReflectionException
*/
public function __unserialize(array $data): void
public function __unserialize(array $data): void // phpcs:ignore
{
$this->throwable = $data['throwable'];
$this->colorize = $data['colorize'];
Expand Down Expand Up @@ -133,7 +133,7 @@ private function prettyPrintTrace(array $trace): array
$updatedTrace = [];
$streamIsatty = function ($stream) {
if (\function_exists('stream_isatty')) {
return stream_isatty($stream);
return stream_isatty($stream); // phpcs:ignore
}
if (!\is_resource($stream)) {
trigger_error('stream_isatty() expects parameter 1 to be resource, ' . \gettype($stream) . ' given', \E_USER_WARNING);
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static function (array $lines, $line) use ($pattern): array {
*/
public static function os(): string
{
$osSlug = strtolower(substr(PHP_OS_FAMILY, 0, 3));
$osSlug = strtolower(substr(PHP_OS, 0, 3));

$map = [
'win' => 'Windows',
Expand Down
6 changes: 3 additions & 3 deletions src/WordPress/FileRequests/FileRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function execute(): array
{
if (count($this->presetGlobalVars) > 0) {
foreach ($this->presetGlobalVars as $key => $value) {
global $$key;
global $$key; // phpcs:ignore
$$key = $value;
}
}
Expand Down Expand Up @@ -223,7 +223,7 @@ public function execute(): array
* targetFile: string
* }
*/
public function __serialize(): array
public function __serialize(): array // phpcs:ignore
{
return [
'afterLoadClosures' => $this->afterLoadClosures,
Expand Down Expand Up @@ -259,7 +259,7 @@ public function __serialize(): array
*
* @throws FileRequestException
*/
public function __unserialize(array $data): void
public function __unserialize(array $data): void // phpcs:ignore
{
$this->afterLoadClosures = $data['afterLoadClosures'] ?? [];
$this->constants = $data['constants'] ?? [];
Expand Down

0 comments on commit 9fbb505

Please sign in to comment.