Skip to content

Commit

Permalink
Fix CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatseykanets committed Dec 29, 2015
1 parent d8583b3 commit bbe09a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion phpunit.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
require __DIR__.'/vendor/autoload.php';
} else {
require __DIR__.'/../../autoload.php';
}
}
4 changes: 2 additions & 2 deletions src/SSHConfigFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function parseString($string)
}

// Collect only Host declarations
if (!$matchSection) {
if (! $matchSection) {
$groups[$index][$key] = $value;
}
}
Expand Down Expand Up @@ -134,7 +134,7 @@ protected function parseHost($host)

/**
* Unqoutes (removes) an optionally double quoted string
* and preserves embed double quotes and whitespace
* and preserves embeded double quotes and whitespace.
*
* @param string $string
* @return string
Expand Down
12 changes: 6 additions & 6 deletions tests/SSHConfigFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function test_it_ignores_comments_and_empty_lines_outside_host_section()

$this->assertEquals([[
'host' => 'bar',
'hostname' => 'baz.com'
'hostname' => 'baz.com',
]], $groups);
}

Expand All @@ -107,7 +107,7 @@ public function test_it_ignores_comments_and_empty_lines_inside_host_section()
$this->assertEquals([[
'host' => 'bar',
'hostname' => 'baz.com',
'port' => 1234
'port' => 1234,
]], $groups);
}

Expand All @@ -124,7 +124,7 @@ public function test_it_parses_sections_without_new_lines_between_them()
$this->assertEquals([[
'host' => 'bar',
'hostname' => 'baz.com',
],[
], [
'host' => 'qux',
'hostname' => 'qux.com',
]], $groups);
Expand All @@ -144,7 +144,7 @@ public function test_it_parses_sections_separated_by_new_lines()
$this->assertEquals([[
'host' => 'bar',
'hostname' => 'baz.com',
],[
], [
'host' => 'qux',
'hostname' => 'qux.com',
]], $groups);
Expand All @@ -169,7 +169,7 @@ public function test_it_parses_sections_separated_by_match_keyword()
$this->assertEquals([[
'host' => 'bar',
'hostname' => 'baz.com',
],[
], [
'host' => 'qux',
'hostname' => 'qux.com',
]], $groups);
Expand Down Expand Up @@ -253,4 +253,4 @@ private function parse($config)

return $property->getValue($sshConfig);
}
}
}

0 comments on commit bbe09a3

Please sign in to comment.