@@ -86,7 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | if (count($publishedPlatforms) > 0) { |
| 88 | 88 | try { |
| 89 | - $publishedPlatforms->each(function ($platform) use ($ad) { |
|
| 89 | + $publishedPlatforms->each(function($platform) use ($ad) { |
|
| 90 | 90 | $platformHelper = $this->getHelperClassFromPlatform($platform); |
| 91 | 91 | $platformHelper->unpublish($ad, $platform); |
| 92 | 92 | $ad->platforms()->detach($platform->id); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function createApplication() |
| 15 | 15 | { |
| 16 | - $app = require __DIR__.'/../bootstrap/app.php'; |
|
| 16 | + $app = require __DIR__ . '/../bootstrap/app.php'; |
|
| 17 | 17 | |
| 18 | 18 | $app->make(Kernel::class)->bootstrap(); |
| 19 | 19 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | protected function mapWebRoutes() |
| 49 | 49 | { |
| 50 | 50 | Route::middleware('web') |
| 51 | - ->namespace($this->namespace) |
|
| 52 | - ->group(base_path('routes/web.php')); |
|
| 51 | + ->namespace($this->namespace) |
|
| 52 | + ->group(base_path('routes/web.php')); |
|
| 53 | 53 | } |
| 54 | 54 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | $crawler = Goutte::submit($form, $adParameters); |
| 75 | 75 | |
| 76 | 76 | $errors = []; |
| 77 | - $crawler->filter('.fem.fieldwarning')->each(function ($node) use (&$errors) { |
|
| 77 | + $crawler->filter('.fem.fieldwarning')->each(function($node) use (&$errors) { |
|
| 78 | 78 | $errors[] = $node->text(); |
| 79 | 79 | }); |
| 80 | 80 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function testAddNewAd() |
| 31 | 31 | { |
| 32 | - $this->browse(function (Browser $browser) { |
|
| 32 | + $this->browse(function(Browser $browser) { |
|
| 33 | 33 | $browser->visit('/ads') |
| 34 | 34 | ->clickLink('Ajouter') |
| 35 | 35 | ->type('title', 'Testing title ' . $this->uniqueId) |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $ad = Ad::create($this->testingValues); |
| 55 | 55 | |
| 56 | - $this->browse(function (Browser $browser) use ($ad) { |
|
| 56 | + $this->browse(function(Browser $browser) use ($ad) { |
|
| 57 | 57 | $browser->visit('/ads/' . $ad->id) |
| 58 | 58 | ->type('price', 343.34) |
| 59 | 59 | ->press('Éditer') |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | $ad = Ad::create($this->testingValues); |
| 75 | 75 | |
| 76 | - $this->browse(function (Browser $browser) use ($ad) { |
|
| 76 | + $this->browse(function(Browser $browser) use ($ad) { |
|
| 77 | 77 | $browser->visit('/ads/' . $ad->id) |
| 78 | 78 | ->type('price', 'abc') |
| 79 | 79 | ->press('Éditer') |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | { |
| 94 | 94 | $ad = Ad::create($this->testingValues); |
| 95 | 95 | |
| 96 | - $this->browse(function (Browser $browser) use ($ad) { |
|
| 96 | + $this->browse(function(Browser $browser) use ($ad) { |
|
| 97 | 97 | $browser->visit('/ads/' . $ad->id . '/delete') |
| 98 | 98 | ->assertDontSee('Testing title ' . $this->uniqueId); |
| 99 | 99 | }); |