Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Nov 22, 2018
1 parent aae4650 commit b31b7f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ return PhpCsFixer\Config::create()
],
'@Symfony' => true,
'new_with_braces' => false,
'yoda_style' => false,
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
'strict_comparison' => true,
Expand Down
3 changes: 1 addition & 2 deletions src/SlugGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ private function findMatchingTransliterator(string $rule, string $locale): \Tran
return $transliterator;
}
}
}
finally {
} finally {
ini_set('intl.error_level', $errorLevel);
ini_set('intl.use_exceptions', $useExceptions);
}
Expand Down
3 changes: 1 addition & 2 deletions tests/SlugGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ public function testGenerateWithIntlErrors(string $source, string $expected, arr
ini_set('intl.use_exceptions', '1');
$this->testGenerate($source, $expected, $options, $skip);
$this->assertSame('1', ini_get('intl.use_exceptions'));
}
finally {
} finally {
ini_set('intl.error_level', $errorLevel);
ini_set('intl.use_exceptions', $useExceptions);
}
Expand Down

0 comments on commit b31b7f7

Please sign in to comment.