Skip to content

Commit 185d3a1

Browse files
authored
Merge pull request #14 from mikimaine/analysis-XZQ02N
Applied fixes from StyleCI
2 parents c31a8bd + cfa6414 commit 185d3a1

File tree

5 files changed

+28
-49
lines changed

5 files changed

+28
-49
lines changed

app/Http/Controllers/Product/Backend/ProductController.php

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,25 @@
44
* For : INNOVATE E-COMMERCE
55
* User: MIKI$
66
* Date: 3/18/2016
7-
* Time: 12:44 PM
7+
* Time: 12:44 PM.
88
*/
9-
109
namespace app\Http\Controllers\Product\Backend;
1110

1211
use App\Http\Controllers\CommandsDomainEventController;
13-
use Innovate\Products\PostProductCommand;
1412
use Illuminate\Support\Facades\Input;
13+
use Innovate\Products\PostProductCommand;
1514
use Innovate\Products\ProductSoldCommand;
1615

1716
/**
18-
* Class ProductController
19-
* @package app\Http\Controllers\Product\Backend
17+
* Class ProductController.
2018
*/
21-
class ProductController extends CommandsDomainEventController{
22-
23-
/**
24-
*
25-
*/
19+
class ProductController extends CommandsDomainEventController
20+
{
2621
public function store()
2722
{
28-
$input = Input::only('title','description');
29-
$command = new PostProductCommand($input['title'],$input['description']);
30-
$this->commandBus->execute($command);
23+
$input = Input::only('title', 'description');
24+
$command = new PostProductCommand($input['title'], $input['description']);
25+
$this->commandBus->execute($command);
3126
}
3227

3328
/**
@@ -38,5 +33,4 @@ public function delete($productId)
3833
$command = new ProductSoldCommand($productId);
3934
$this->commandBus->execute($command);
4035
}
41-
42-
}
36+
}

app/Innovate/Products/ProductIsAboutToBePosted.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
* For : INNOVATE E-COMMERCE
55
* User: MIKI$
66
* Date: 3/18/2016
7-
* Time: 5:31 PM
7+
* Time: 5:31 PM.
88
*/
9-
109
namespace Innovate\Products;
1110

12-
1311
/**
14-
* Class ProductWasPosted
15-
* @package Innovate\Products
12+
* Class ProductWasPosted.
1613
*/
17-
class ProductIsAboutToBePosted {
18-
14+
class ProductIsAboutToBePosted
15+
{
1916
/**
2017
* @var Product
2118
*/
@@ -24,10 +21,8 @@ class ProductIsAboutToBePosted {
2421
/**
2522
* @param Product $product
2623
*/
27-
function __construct(Product $product)
24+
public function __construct(Product $product)
2825
{
2926
$this->product = $product;
3027
}
31-
32-
33-
}
28+
}

app/Innovate/Products/ProductWasArchived.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
* For : INNOVATE E-COMMERCE
55
* User: MIKI$
66
* Date: 3/18/2016
7-
* Time: 10:30 PM
7+
* Time: 10:30 PM.
88
*/
9-
109
namespace Innovate\Products;
1110

12-
1311
/**
14-
* Class ProductWasArchived
15-
* @package Innovate\Products
12+
* Class ProductWasArchived.
1613
*/
17-
class ProductWasArchived {
18-
14+
class ProductWasArchived
15+
{
1916
/**
2017
* @var Product
2118
*/
@@ -24,10 +21,8 @@ class ProductWasArchived {
2421
/**
2522
* @param Product $product
2623
*/
27-
function __construct(Product $product)
24+
public function __construct(Product $product)
2825
{
2926
$this->product = $product;
3027
}
31-
32-
33-
}
28+
}

app/Innovate/Products/ProductWasPosted.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
* For : INNOVATE E-COMMERCE
55
* User: MIKI$
66
* Date: 3/18/2016
7-
* Time: 5:31 PM
7+
* Time: 5:31 PM.
88
*/
9-
109
namespace Innovate\Products;
1110

12-
1311
/**
14-
* Class ProductWasPosted
15-
* @package Innovate\Products
12+
* Class ProductWasPosted.
1613
*/
17-
class ProductWasPosted {
18-
14+
class ProductWasPosted
15+
{
1916
/**
2017
* @var Product
2118
*/
@@ -24,10 +21,8 @@ class ProductWasPosted {
2421
/**
2522
* @param Product $product
2623
*/
27-
function __construct(Product $product)
24+
public function __construct(Product $product)
2825
{
2926
$this->product = $product;
3027
}
31-
32-
33-
}
28+
}

tests/ProductTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function it_fetches_lessons()
2626

2727
private function makeProduct()
2828
{
29-
return true;
29+
return true;
3030
}
3131

3232
private function getResponse($string)

0 commit comments

Comments
 (0)