Skip to content

Commit

Permalink
Indentation fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
retrinko committed Jul 8, 2016
1 parent 26150fb commit c9d9513
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/IniFile.php
Expand Up @@ -66,7 +66,7 @@ public function save($outputFile = null)
$outputFile = $this->file;
}

if(is_file($outputFile) && !is_writable($outputFile))
if (is_file($outputFile) && !is_writable($outputFile))
{
throw new FileException(sprintf('Output file "%s" is not writable!', $outputFile));
}
Expand Down Expand Up @@ -97,7 +97,7 @@ public function addSection(IniSection $section)
if (!isset($this->sections[$section->getParent()->getName()]))
{
throw new InvalidDataException(sprintf('Parent section "%s" does not exists!',
$section->getParent()->getName()));
$section->getParent()->getName()));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/IniFile/Factory.php
Expand Up @@ -52,5 +52,5 @@ public static function fromFile($file)
{
return new IniFile($file);
}

}
2 changes: 1 addition & 1 deletion src/IniParser.php
Expand Up @@ -59,7 +59,7 @@ private function __clone()
private function __wakeup()
{
}

/**
* @param $string
*
Expand Down
4 changes: 3 additions & 1 deletion src/IniSection.php
Expand Up @@ -142,7 +142,7 @@ protected function composeContents()
public function get($itemName, $defaultValue = null)
{
$contents = $this->composeContents();
$value = isset($contents[$itemName]) ? $contents[$itemName] : $defaultValue;
$value = isset($contents[$itemName]) ? $contents[$itemName] : $defaultValue;

return IniParser::i()->castItemValueToProperType($value);
}
Expand All @@ -162,6 +162,7 @@ public function set($itemName, $itemValue)
throw new InvalidDataException($message);
}
$this->contents[$itemName] = IniParser::i()->itemValuetoStringRepresentation($itemValue);

return $this;
}

Expand Down Expand Up @@ -213,6 +214,7 @@ protected function renderName()
{
$line = [sprintf('[%s]', $this->getName())];
}

return $line;
}

Expand Down

0 comments on commit c9d9513

Please sign in to comment.