Skip to content

Commit

Permalink
Adopt PSR-2 coding style
Browse files Browse the repository at this point in the history
The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
  • Loading branch information
laravel-shift committed Sep 2, 2017
1 parent cedfb39 commit 62ae58a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/Conversations/ExampleConversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public function run()
{
$this->askReason();
}
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/BotManController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public function startConversation(BotMan $bot)
{
$bot->startConversation(new ExampleConversation());
}
}
}
3 changes: 1 addition & 2 deletions app/Providers/BotMan/DriverServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ public function boot()
DriverManager::loadDriver($driver);
}
}

}
}
2 changes: 1 addition & 1 deletion config/botman/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
|
*/
'conversation_cache_time' => 30
];
];
5 changes: 3 additions & 2 deletions routes/botman.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php
use App\Http\Controllers\BotManController;

$botman = resolve('botman');

$botman->hears('Hi', function($bot){
$botman->hears('Hi', function ($bot) {
$bot->reply('Hello!');
});
$botman->hears('Start conversation', BotManController::class.'@startConversation');
$botman->hears('Start conversation', BotManController::class.'@startConversation');
2 changes: 1 addition & 1 deletion tests/BotMan/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ public function testConversationBasicTest()
->receivesInteractiveMessage('quote')
->assertReplyIn($quotes);
}
}
}

0 comments on commit 62ae58a

Please sign in to comment.