@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param View $view |
| 26 | - * @return $this |
|
| 26 | + * @return View|null |
|
| 27 | 27 | */ |
| 28 | 28 | public function compose(View $view) |
| 29 | 29 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | // Here template names is hardcoded, but here is easy to edit them, then go to templates and change variables there |
| 31 | 31 | |
| 32 | - switch ($view->getName()){ |
|
| 32 | + switch ($view->getName()) { |
|
| 33 | 33 | case "partials.banners.small": |
| 34 | 34 | return $view->with('banners', $this->banners->getSmallAdBlocks(2)); |
| 35 | 35 | break; |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * Get ad-blocks for extended banners block. |
| 19 | 19 | * |
| 20 | - * @param $count |
|
| 20 | + * @param integer $count |
|
| 21 | 21 | * @return mixed |
| 22 | 22 | */ |
| 23 | 23 | public function getBigAdBlocks($count = null) |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Get small adblocks for homepage. |
| 34 | 34 | * |
| 35 | - * @param null $count |
|
| 35 | + * @param integer $count |
|
| 36 | 36 | * @return mixed |
| 37 | 37 | */ |
| 38 | 38 | public function getSmallAdBlocks($count = null) |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * Get adblocks for right sidebar of homepage. |
| 49 | 49 | * |
| 50 | - * @param null $count |
|
| 50 | + * @param integer $count |
|
| 51 | 51 | * @return mixed |
| 52 | 52 | */ |
| 53 | 53 | public function getRightSideBarAdBlocks($count = null) |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * @var array |
| 18 | 18 | */ |
| 19 | - protected $fillable = ['name', 'link', 'active', 'rank']; |
|
| 19 | + protected $fillable = [ 'name', 'link', 'active', 'rank' ]; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @var bool |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @var array |
| 19 | 19 | */ |
| 20 | - protected $fillable = ['key', 'link']; |
|
| 20 | + protected $fillable = [ 'key', 'link' ]; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @var bool |
@@ -17,5 +17,5 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @var array |
| 19 | 19 | */ |
| 20 | - protected $fillable = ['link', 'image_url', 'rank', 'active']; |
|
| 20 | + protected $fillable = [ 'link', 'image_url', 'rank', 'active' ]; |
|
| 21 | 21 | } |
| 22 | 22 | \ No newline at end of file |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class PostTranslation extends Model |
| 8 | 8 | { |
| 9 | - protected $fillable = ['*']; |
|
| 9 | + protected $fillable = [ '*' ]; |
|
| 10 | 10 | |
| 11 | 11 | public $timestamps = false; |
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | use HasTranslations; |
| 11 | 11 | |
| 12 | - protected $fillable = ['*']; |
|
| 12 | + protected $fillable = [ '*' ]; |
|
| 13 | 13 | |
| 14 | - public $translatedAttributes = ['name']; |
|
| 14 | + public $translatedAttributes = [ 'name' ]; |
|
| 15 | 15 | } |
| 16 | 16 | \ No newline at end of file |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * @var array |
| 16 | 16 | */ |
| 17 | - protected $fillable = ['user_id', 'product_id', 'seller_id']; |
|
| 17 | + protected $fillable = [ 'user_id', 'product_id', 'seller_id' ]; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @var bool |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | { |
| 55 | 55 | $router->group([ |
| 56 | 56 | 'namespace' => $this->namespace, 'middleware' => 'web', |
| 57 | - ], function ($router) { |
|
| 57 | + ], function($router) { |
|
| 58 | 58 | require app_path('Http/routes.php'); |
| 59 | 59 | }); |
| 60 | 60 | } |