Completed
Pull Request — master (#114)
by Glenn
02:52
created
app/Segments.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@
 block discarded – undo
6 6
 
7 7
 class Segments extends Model
8 8
 {
9
-  /**
10
-   * The database table used by the model.
11
-   *
12
-   * @var string
13
-   */
14
-  protected $table = 'customers_segments';
9
+    /**
10
+     * The database table used by the model.
11
+     *
12
+     * @var string
13
+     */
14
+    protected $table = 'customers_segments';
15 15
 }
Please login to merge, or discard this patch.
app/Http/Controllers/AssetsController.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -8,27 +8,27 @@
 block discarded – undo
8 8
 
9 9
 class AssetsController extends Controller
10 10
 {
11
-  /**
12
-   * AssetsController constructor.
13
-   */
14
-  public function __construct()
15
-  {
16
-      $this->middleware('auth');
17
-      $this->middleware('lang');
18
-  }
11
+    /**
12
+     * AssetsController constructor.
13
+     */
14
+    public function __construct()
15
+    {
16
+        $this->middleware('auth');
17
+        $this->middleware('lang');
18
+    }
19 19
 
20
-  public function index()
21
-  {
20
+    public function index()
21
+    {
22 22
     return view('assets.index');
23
-  }
23
+    }
24 24
 
25
-  public function edit()
26
-  {
25
+    public function edit()
26
+    {
27 27
     return view('assets.edit');
28
-  }
28
+    }
29 29
 
30
-  public function remove()
31
-  {
30
+    public function remove()
31
+    {
32 32
     
33
-  }
33
+    }
34 34
 }
Please login to merge, or discard this patch.
app/Http/Controllers/SegmentsController.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -8,29 +8,29 @@
 block discarded – undo
8 8
 
9 9
 class SegmentsController extends Controller
10 10
 {
11
-  public function __construct()
12
-  {
13
-      $this->middleware('auth');
14
-      $this->middleware('lang');
15
-  }
16
-
17
-  public function index()
18
-  {
11
+    public function __construct()
12
+    {
13
+        $this->middleware('auth');
14
+        $this->middleware('lang');
15
+    }
16
+
17
+    public function index()
18
+    {
19 19
     return view('segments.index');
20
-  }
20
+    }
21 21
 
22
-  public function store()
23
-  {
22
+    public function store()
23
+    {
24 24
     return view('segments.register');
25
-  }
25
+    }
26 26
 
27
-  public function edit()
28
-  {
27
+    public function edit()
28
+    {
29 29
     return view('segments.edit');
30
-  }
30
+    }
31 31
 
32
-  public function update()
33
-  {
32
+    public function update()
33
+    {
34 34
 
35
-  }
35
+    }
36 36
 }
Please login to merge, or discard this patch.
app/Http/Controllers/CallbackController.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Http\Request;
6 6
 
7
-use App\Http\Requests;
8
-
9 7
 class DepartmentController extends Controller
10 8
 {
11 9
     /**
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $data['callback'] = Callback::with('users', 'customers', 'departments')->get();
37 37
         $data['users'] = User::all();
38
-    	return view('callbacks/list', $data);
38
+        return view('callbacks/list', $data);
39 39
     }
40 40
 
41 41
 
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $user = auth()->user();
66 66
 
67
-      //  Callback::create($input->except('_token', 'product', 'description'));
68
-      $faker = \Faker\Factory::create();
69
-      $Callback = new Callback;
67
+        //  Callback::create($input->except('_token', 'product', 'description'));
68
+        $faker = \Faker\Factory::create();
69
+        $Callback = new Callback;
70 70
 
71
-      $Callback->type = $faker->numberBetween($min = 1, $max = 3);
72
-      $Callback->customer = $faker->numberBetween($min = 1, $max = 9);
73
-      $Callback->agent_id = '1';
74
-      $Callback->description = $request->description;
71
+        $Callback->type = $faker->numberBetween($min = 1, $max = 3);
72
+        $Callback->customer = $faker->numberBetween($min = 1, $max = 9);
73
+        $Callback->agent_id = '1';
74
+        $Callback->description = $request->description;
75 75
 
76
-      $Callback->save();
76
+        $Callback->save();
77 77
 
78 78
         Mail::send('emails.request', ['user' => $user, 'callback' => $Callback], function ($m) use ($user) {
79
-           $m->from('[email protected]', 'Ring Me');
79
+            $m->from('[email protected]', 'Ring Me');
80 80
 
81
-           $m->to("[email protected]", 'Glenn')->subject('Call back request!');
82
-       });
81
+            $m->to("[email protected]", 'Glenn')->subject('Call back request!');
82
+        });
83 83
         return back();
84 84
     }
85 85
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function index()
35 35
     {
36
-        $data['callback'] = Callback::with('users', 'customers', 'departments')->get();
37
-        $data['users'] = User::all();
36
+        $data[ 'callback' ] = Callback::with('users', 'customers', 'departments')->get();
37
+        $data[ 'users' ] = User::all();
38 38
     	return view('callbacks/list', $data);
39 39
     }
40 40
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $user = auth()->user();
50 50
 
51
-        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
51
+        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
52 52
             return redirect()->back();
53 53
         }
54 54
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
       $Callback->save();
77 77
 
78
-        Mail::send('emails.request', ['user' => $user, 'callback' => $Callback], function ($m) use ($user) {
78
+        Mail::send('emails.request', [ 'user' => $user, 'callback' => $Callback ], function($m) use ($user) {
79 79
            $m->from('[email protected]', 'Ring Me');
80 80
 
81 81
            $m->to("[email protected]", 'Glenn')->subject('Call back request!');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function edit($id)
93 93
     {
94 94
         $user = auth()->user();
95
-        $data['item'] = Callback::find($id);
95
+        $data[ 'item' ] = Callback::find($id);
96 96
 
97 97
         if ($user->is('Agent') || $user->is('Manager') || $user->is('Administrator')) {
98 98
             return view('callbacks/details', $data);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $user = auth()->user();
113 113
 
114
-        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
114
+        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
115 115
             return redirect()->back();
116 116
         }
117 117
 
Please login to merge, or discard this patch.