@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function register() |
| 44 | 44 | { |
| 45 | - $this->app->bind('laravel-grammar', function () { |
|
| 45 | + $this->app->bind('laravel-grammar', function() { |
|
| 46 | 46 | return new Word(); |
| 47 | 47 | }); |
| 48 | 48 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $timestamp = date('Y_m_d_His'); |
| 68 | 68 | |
| 69 | 69 | return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR) |
| 70 | - ->flatMap(function ($path) use ($filesystem) { |
|
| 70 | + ->flatMap(function($path) use ($filesystem) { |
|
| 71 | 71 | return $filesystem->glob($path.'*_create_laravel_grammar_table.php'); |
| 72 | 72 | })->push($this->app->databasePath()."/migrations/{$timestamp}_create_laravel_grammar_table.php") |
| 73 | 73 | ->first(); |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | -if(!function_exists('part_of_speech')) { |
|
| 2 | +if (!function_exists('part_of_speech')) { |
|
| 3 | 3 | function part_of_speech($word) { |
| 4 | 4 | return (new \Djunehor\Grammar\Word())->getWordPartOfSpeech($word); |
| 5 | 5 | } |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | -if(!function_exists('parts_of_speech')) { |
|
| 8 | +if (!function_exists('parts_of_speech')) { |
|
| 9 | 9 | function parts_of_speech() { |
| 10 | 10 | return (new \Djunehor\Grammar\Word())->getPartsOfSpeech(); |
| 11 | 11 | } |