Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,23 +198,23 @@ public function getLinebreak() {
}

public function setLintMode($lint) {
$this->lint = (boolean)$lint;
$this->lint = (bool)$lint;
}

public function isLintMode() {
return $this->lint;
}

public function setLowercaseMode($lowercase) {
$this->lowercase = (boolean)$lowercase;
$this->lowercase = (bool)$lowercase;
}

public function isLowercaseMode() {
return $this->lowercase;
}

public function setOnceMode($once) {
$this->once = (boolean)$once;
$this->once = (bool)$once;
}

public function isOnceMode() {
Expand All @@ -232,7 +232,7 @@ public function getOutputFile() {
public function enablePharMode($compression = 'NONE', $all = true, $key = NULL, $alias = NULL) {
$this->pharMode = true;
$this->pharCompression = $compression;
$this->pharAll = (boolean)$all;
$this->pharAll = (bool)$all;
$this->pharKey = $key;
$this->pharAliasName = $alias;
}
Expand Down Expand Up @@ -289,11 +289,11 @@ public function getPhp() {
}

public function setQuietMode($quietMode) {
$this->quietMode = (boolean)$quietMode;
$this->quietMode = (bool)$quietMode;
}

public function setStaticMode($staticMode) {
$this->staticMode = (boolean)$staticMode;
$this->staticMode = (bool)$staticMode;
$this->warmMode = FALSE;
}

Expand All @@ -302,7 +302,7 @@ public function isStaticMode() {
}

public function setWarmMode($warmMode) {
$this->warmMode = (boolean)$warmMode;
$this->warmMode = (bool)$warmMode;
$this->staticMode = FALSE;
}

Expand All @@ -311,7 +311,7 @@ public function isWarmMode() {
}

public function setResetMode($resetMode) {
$this->reset = (boolean)$resetMode;
$this->reset = (bool)$resetMode;
}

public function isResetMode() {
Expand Down Expand Up @@ -362,19 +362,19 @@ public function getTemplate() {
}

public function setTolerantMode($tolerant) {
$this->tolerant = (boolean)$tolerant;
$this->tolerant = (bool)$tolerant;
}

public function isTolerantMode() {
return $this->tolerant;
}

public function setTrusting($trusting) {
$this->trusting = (boolean)$trusting;
$this->trusting = (bool)$trusting;
}

public function setFollowSymlinks($followSymlinks) {
$this->followSymlinks = (boolean)$followSymlinks;
$this->followSymlinks = (bool)$followSymlinks;
}

public function isFollowSymlinks() {
Expand Down
2 changes: 1 addition & 1 deletion src/StaticRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function setDependencies(Array $dep) {
* @param boolean $phar
*/
public function setPharMode($phar) {
$this->phar = (boolean)$phar;
$this->phar = (bool)$phar;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/StaticRequireListRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct($useOnce, $indent, $linebreak) {
* @return string
*/
public function render(array $list) {
$require = (boolean)$this->useOnce ? 'require_once' : 'require';
$require = (bool)$this->useOnce ? 'require_once' : 'require';
$require .= ' ___BASEDIR___\'';
$glue = '\';' . $this->linebreak . $this->indent . $require;

Expand Down