Skip to content

Commit

Permalink
Merge pull request #5 from jbdelhommeau/master
Browse files Browse the repository at this point in the history
PSR-2 Code style
  • Loading branch information
ddtraceweb committed Jun 25, 2015
2 parents 83ab5f5 + bf34a63 commit 1aa1a4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/Dubture/Monolog/Parser/LineLogParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ public function parse($log, $days = 1, $pattern = 'default')
*
* @throws \RuntimeException
*/
public function registerPattern($name, $pattern){
if(!isset($this->pattern[$name])){
public function registerPattern($name, $pattern)
{
if (!isset($this->pattern[$name])) {
$this->pattern[$name] = $pattern;
}else{
} else {
throw new \RuntimeException("Pattern $name already exists");
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/Dubture/Monolog/Parser/LogParserInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ interface LogParserInterface
* @param $pattern
*
* @return mixed
*/function parse($log, $days, $pattern);
*/
public function parse($log, $days, $pattern);
}

0 comments on commit 1aa1a4a

Please sign in to comment.