Skip to content

Commit

Permalink
fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vluzrmos committed Dec 30, 2015
1 parent 2f2014a commit 0bce3c3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ $finder = Symfony\Component\Finder\Finder::create()
->files()
->in(__DIR__)
->exclude('vendor')
->notName("*.md")
->notName("*.xml")
->notName("*.txt")
->notName("*.phar")
->ignoreDotFiles(true)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"illuminate/support": "~5.0"
},
"require-dev": {
"fabpot/php-cs-fixer": "~2.0",
"fabpot/php-cs-fixer": "~1.11",
"mockery/mockery": "0.9.*",
"orchestra/testbench": "~3.0",
"phpunit/phpunit": "~4.0"
Expand Down
5 changes: 3 additions & 2 deletions src/LanguageDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public function apply($locale)
* Add a callback to call after applying the detected locale.
* @param Closure $callback
*/
public function addCallback(Closure $callback){
public function addCallback(Closure $callback)
{
$this->callbacks[] = $callback;
}

Expand All @@ -113,7 +114,7 @@ public function addCallback(Closure $callback){
*/
protected function applyCallbacks($language)
{
foreach($this->callbacks as $callback) {
foreach ($this->callbacks as $callback) {
call_user_func($callback, $language, $this);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Support/helpers.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if (! function_exists('parse_langs_to_array')) {
if (!function_exists('parse_langs_to_array')) {
/**
* Parse a simple string comma-separated to array.
* @see split_srt_to_simple_array.
Expand All @@ -18,7 +18,7 @@ function parse_langs_to_array($str)
}
}

if (! function_exists('split_str_to_simple_array')) {
if (!function_exists('split_str_to_simple_array')) {
/**
* Parse a simple string comma-separated to array. It also allow to use simple
* indexes, like: "something:awesome, locale:pt-br, country:brazil".
Expand Down

0 comments on commit 0bce3c3

Please sign in to comment.