Completed
Push — dev ( a54ca8...2db90d )
by
unknown
08:33 queued 11s
created

CampaignController::donateRecurrent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers\Frontend;
4
5
use App\Models\Campaign;
0 ignored issues
show
Bug introduced by
The type App\Models\Campaign was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use App\Models\User;
7
use Illuminate\Http\Request;
8
use Illuminate\Support\Facades\Response;
9
use Illuminate\Support\Facades\Gate;
10
11
12
class CampaignController extends FrontendController
13
{
14
    /**
15
     * @var CampaignRepository
0 ignored issues
show
Bug introduced by
The type App\Http\Controllers\Frontend\CampaignRepository was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
16
     */
17
    protected $campaigns;
18
19
    /**
20
     * Create a new controller instance.
21
     *
22
     * @param \App\Repositories\Contracts\CampaignRepository $campaigns
0 ignored issues
show
Bug introduced by
The type App\Repositories\Contracts\CampaignRepository was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
23
     */
24
25
    public function __construct()
26
    {
27
        parent::__construct();
28
        $this->campaigns = null;
29
    }
30
31
    public function index()
32
    {
33
        return null;
34
    }
35
36
    public function show()
37
    {
38
        $data = '{
39
          "layout": "form",
40
          "styles": { },
41
          "content": {
42
            "title": "First campaign title",
43
            "description": "First campaign description",
44
            "image": "path_url",
45
            "warnings": {
46
              "cost_error": "invalid cost"
47
            },
48
            "button_values": [ "2", "4", "6", "8", "10", "12" ],
49
            "termsOfUse": {}
50
            }
51
        }';
52
53
        return view('client.campaign')->withData($data);
54
    }
55
56
    public function donate()
57
    {
58
        $data = '{
59
          "layout": "form",
60
          "styles": {
61
          },
62
          "content": {
63
              "title": "First campaign title",
64
              "description": "First campaign description",
65
              "image": "path_url",
66
              "warnings": {
67
                  "cost_error": "invalid cost"
68
              },
69
              "button_values": [ "2", "4", "6", "8", "10", "12" ],
70
              "termsOfUse": {}
71
          }
72
        }';
73
74
        return view('client.campaign')->withData($data);
75
    }
76
77
    public function donateRecurrent()
78
    {
79
      return null;
80
    }
81
82
    public function createDonator()
83
    {
84
      return null;
85
    }
86
}
87