Completed
Push — master ( 28284e...eaa9bf )
by
unknown
12:07
created
app/Http/ViewComposers/BannerComposer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Repositories/BannerRepository.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
app/Partner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Social.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Banner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/FavoriteProduct.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * @var array
16 16
      */
17
-    protected $fillable = ['active'];
17
+    protected $fillable = [ 'active' ];
18 18
 
19 19
     /**
20 20
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
Please login to merge, or discard this patch.
app/Http/administrator/routes.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // Use 'web' middleware if you using laravel version since 5.2
4 4
 
5
-Route::group(['prefix' => 'admin', 'middleware' => 'web'], function () {
5
+Route::group([ 'prefix' => 'admin', 'middleware' => 'web' ], function() {
6 6
     /*
7 7
     |-------------------------------------------------------
8 8
     | Authentication
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
     Route::get('logout', 'Keyhunter\Administrator\AuthController@logout');
14 14
 });
15 15
 
16
-Route::group(['prefix' => 'admin'
17
-    , 'middleware' => ['web', '\Keyhunter\Administrator\Middleware\Authenticate']
18
-], function () {
19
-    Route::get('/', function () {
16
+Route::group([ 'prefix' => 'admin'
17
+    , 'middleware' => [ 'web', '\Keyhunter\Administrator\Middleware\Authenticate' ]
18
+], function() {
19
+    Route::get('/', function() {
20 20
         $homepage = config('administrator.home_page', '/members');
21 21
 
22 22
         return \Redirect::to($homepage);
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     | Settings
28 28
     |-------------------------------------------------------
29 29
     */
30
-    Route::group(['middleware' => '\Keyhunter\Administrator\Middleware\Settings'], function () {
30
+    Route::group([ 'middleware' => '\Keyhunter\Administrator\Middleware\Settings' ], function() {
31 31
         Route::get('settings/{page}',
32 32
             [
33 33
                 'as' => 'admin_settings_edit',
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     | Main Scaffolding routes
47 47
     |-------------------------------------------------------
48 48
     */
49
-    Route::group(['middleware' => '\Keyhunter\Administrator\Middleware\Module'], function () {
49
+    Route::group([ 'middleware' => '\Keyhunter\Administrator\Middleware\Module' ], function() {
50 50
         /*
51 51
         |-------------------------------------------------------
52 52
         | Custom routes
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/VerifyUserController.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      *
40 40
      * @param Request $request
41 41
      * @param $code
42
-     * @return mixed
42
+     * @return \Illuminate\Http\RedirectResponse|null
43 43
      */
44 44
     public function confirm(Request $request, $code)
45 45
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Illuminate\Contracts\Events\Dispatcher;
10 10
 use App\Http\Controllers\Controller;
11 11
 use Auth;
12
-use Log;
13 12
 
14 13
 class VerifyUserController extends Controller
15 14
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $user = $this->users->getByConfirmationCode($code);
47 47
 
48 48
         if ($user) {
49
-            if (! $user->confirmed) {
49
+            if (!$user->confirmed) {
50 50
                 
51 51
                 $this->users->confirmate($user);
52 52
                 
Please login to merge, or discard this patch.