Completed
Push — master ( 28284e...eaa9bf )
by
unknown
12:07
created
app/Http/Requests/GetEmailFormRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
      */
10 10
     public function authorize()
11 11
     {
12
-        return (bool)!$this->route()->getParameter('social')->user;
12
+        return (bool) !$this->route()->getParameter('social')->user;
13 13
     }
14 14
 
15 15
     /**
Please login to merge, or discard this patch.
app/Http/Requests/UpdateUserSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             'fname' => 'required|min:3|max:20',
23 23
             'lname' => 'required|min:3|max:20',
24 24
             'phone' => 'required|digits:8',
25
-            'email' => 'required|unique:users,email,' . \Auth::id() . ',id',
25
+            'email' => 'required|unique:users,email,'.\Auth::id().',id',
26 26
         ];
27 27
     }
28 28
 }
29 29
\ No newline at end of file
Please login to merge, or discard this patch.
app/Http/Requests/SocialiteUserSaveEmailRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
      */
10 10
     public function authorize()
11 11
     {
12
-        return (bool)!$this->route()->getParameter('social')->user;
12
+        return (bool) !$this->route()->getParameter('social')->user;
13 13
     }
14 14
 
15 15
     /**
Please login to merge, or discard this patch.
app/Http/ViewComposers/CategoryComposer.php 1 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/Http/ViewComposers/LanguageComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
     {
33 33
         $languages = $this->languages->getPublic();
34 34
 
35
-        $active_langs = [];
36
-        $languages->each(function ($language) use (&$active_langs) {
35
+        $active_langs = [ ];
36
+        $languages->each(function($language) use (&$active_langs) {
37 37
             if ($language->slug == Lang::slug()) {
38
-                $active_langs['current'] = $language;
38
+                $active_langs[ 'current' ] = $language;
39 39
             } else {
40
-                $active_langs['other'][] = $language;
40
+                $active_langs[ 'other' ][ ] = $language;
41 41
             }
42 42
         });
43 43
 
Please login to merge, or discard this patch.
app/Http/ViewComposers/CurrencyComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
     {
15 15
         $currency = json_decode(File::get(storage_path('app/json_currency.json')));
16 16
 
17
-        return $view->with(['euro'=>$currency->EUR,'usd'=>$currency->USD]);
17
+        return $view->with([ 'euro'=>$currency->EUR, 'usd'=>$currency->USD ]);
18 18
     }
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
app/Http/ViewComposers/MainComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function compose(View $view)
32 32
     {
33
-        $comision   = \Auth::check() ? $this->lots->userLotsPendingComision(\Auth::user()) : 0;
33
+        $comision = \Auth::check() ? $this->lots->userLotsPendingComision(\Auth::user()) : 0;
34 34
         return $view
35 35
             ->with('comision', $comision);
36 36
     }
Please login to merge, or discard this patch.
app/Http/ViewComposers/HomePageComposer.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -59,41 +59,41 @@  discard block
 block discarded – undo
59 59
                     ->with('popular_category', $this->categories->getPopularCategory())
60 60
                     ->with('recommended', [
61 61
                         'name' => 'oferte recomandate',
62
-                        'data' => function () {
62
+                        'data' => function() {
63 63
                             return $this->products->getFeaturedPublic(5);
64 64
                         }
65 65
                     ])
66 66
                     ->with('posts', [
67 67
                         'name' => 'articole de blog',
68
-                        'data' => function (){
68
+                        'data' => function() {
69 69
                             return $this->posts->getPopularPublic();
70 70
                         }
71 71
                     ])
72 72
                     ->with('expire', [
73 73
                         'name' => 'produse care expira in curand',
74 74
                         'label' => 'info_corner.png',
75
-                        'data' => function ($count = 8) {
75
+                        'data' => function($count = 8) {
76 76
                             return $this->products->getPublicExpireSoon($count);
77 77
                         }
78 78
                     ])
79 79
                     ->with('popular', [
80 80
                         'name' => 'produse populare',
81
-                        'data' => function () {
81
+                        'data' => function() {
82 82
                             return $this->products->getFeaturedPublic(8);
83 83
                         }
84 84
                     ])
85 85
                     ->with('category_1', [
86 86
                         'name' => ($category_1) ? $category_1->name : '',
87
-                        'data' => function () use ($category_1){
88
-                            $products = [];
87
+                        'data' => function() use ($category_1){
88
+                            $products = [ ];
89 89
 
90
-                            if($category_1)
90
+                            if ($category_1)
91 91
                             $category_1->categoryables()
92 92
                                 ->active()
93 93
                                 ->elementType(get_class($this->products->getModel()))
94 94
                                 ->get()
95
-                                ->each(function ($morph) use (&$products) {
96
-                                    $products[] = $morph->categoryable;
95
+                                ->each(function($morph) use (&$products) {
96
+                                    $products[ ] = $morph->categoryable;
97 97
                                 });
98 98
 
99 99
                             return $products;
@@ -101,16 +101,16 @@  discard block
 block discarded – undo
101 101
                     ])
102 102
                     ->with('category_2', [
103 103
                         'name' => ($category_2) ? $category_2->name : '',
104
-                        'data' => function () use ($category_2){
105
-                            $products = [];
104
+                        'data' => function() use ($category_2){
105
+                            $products = [ ];
106 106
 
107
-                            if($category_2)
107
+                            if ($category_2)
108 108
                             $category_2->categoryables()
109 109
                                 ->active()
110 110
                                 ->elementType(get_class($this->products->getModel()))
111 111
                                 ->get()
112
-                                ->each(function ($morph) use (&$products) {
113
-                                    $products[] = $morph->categoryable;
112
+                                ->each(function($morph) use (&$products) {
113
+                                    $products[ ] = $morph->categoryable;
114 114
                                 });
115 115
 
116 116
                             return $products;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                     ])
119 119
                     ->with('latest', [
120 120
                         'name' => 'latest',
121
-                        'data' => function () {
121
+                        'data' => function() {
122 122
                             return $this->products->getPublicLatest();
123 123
                         }
124 124
                     ]);
Please login to merge, or discard this patch.
app/Http/Middleware/UserConfirmed.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
      */
38 38
     public function handle($request, \Closure $next)
39 39
     {
40
-        if(Auth::check())
40
+        if (Auth::check())
41 41
         {
42
-            if(Auth::user()->confirmed)
42
+            if (Auth::user()->confirmed)
43 43
                 return $next($request);
44 44
 
45 45
             foreach ($this->excludeRoutes as $route) {
46
-                if($request->route()->getName() == $route) {
46
+                if ($request->route()->getName() == $route) {
47 47
                     return $next($request);
48 48
                 }
49 49
             }
Please login to merge, or discard this patch.