Passed
Push — master ( 8be593...d0f45d )
by F
07:27
created
src/Repositories/AddressRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return array
42 42
      */
43
-    public function getFieldsSearchable()
43
+    public function getFieldsSearchable ()
44 44
     {
45 45
         return $this->fieldSearchable;
46 46
     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Configure the Model.
50 50
      **/
51
-    public function model()
51
+    public function model ()
52 52
     {
53 53
         return Address::class;
54 54
     }
Please login to merge, or discard this patch.
src/Models/Address.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @return void
96 96
      */
97
-    public function __construct(array $attributes = [])
97
+    public function __construct (array $attributes = [])
98 98
     {
99 99
         parent::__construct($attributes);
100 100
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
106 106
      **/
107
-    public function country()
107
+    public function country ()
108 108
     {
109 109
         return $this->belongsTo(\App\Models\Pwweb\Localisation\Models\SystemLocalisationCountry::class, 'country_id');
110 110
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
114 114
      **/
115
-    public function type()
115
+    public function type ()
116 116
     {
117 117
         return $this->belongsTo(\App\Models\Pwweb\Localisation\Models\SystemAddressType::class, 'type_id');
118 118
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     /**
121 121
      * @return \Illuminate\Database\Eloquent\Relations\HasOne
122 122
      **/
123
-    public function systemModelHasAddress()
123
+    public function systemModelHasAddress ()
124 124
     {
125 125
         return $this->hasOne(\App\Models\Pwweb\Localisation\Models\SystemModelHasAddress::class);
126 126
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      *
135 135
      * @return \PWWEB\Localisation\Contracts\Address
136 136
      */
137
-    public static function findById(int $id): AddressContract
137
+    public static function findById (int $id): AddressContract
138 138
     {
139 139
         $address = static::getAddresses(['id' => $id])->first();
140 140
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      *
155 155
      * @return \PWWEB\Localisation\Contracts\Address
156 156
      */
157
-    public static function findByType(string $type): AddressContract
157
+    public static function findByType (string $type): AddressContract
158 158
     {
159 159
         $address = static::getAddresses(['type' => $type])->first();
160 160
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      *
173 173
      * @return Collection collection of addresses
174 174
      */
175
-    protected static function getAddresses(array $params = []): Collection
175
+    protected static function getAddresses (array $params = []): Collection
176 176
     {
177 177
         return app(LocalisationRegistrar::class)
178 178
             ->setAddressClass(static::class)
Please login to merge, or discard this patch.
src/Controllers/AddressController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     private $addressRepository;
33 33
 
34
-    public function __construct(AddressRepository $addressRepo, TypeRepository $typeRepo)
34
+    public function __construct (AddressRepository $addressRepo, TypeRepository $typeRepo)
35 35
     {
36 36
         $this->addressRepository = $addressRepo;
37 37
         $this->typeRepository = $typeRepo;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @return Response
46 46
      */
47
-    public function index(Request $request)
47
+    public function index (Request $request)
48 48
     {
49 49
         $addresses = $this->addressRepository->all();
50 50
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return Response
59 59
      */
60
-    public function create()
60
+    public function create ()
61 61
     {
62 62
         $types = $this->typeRepository->all();
63 63
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @return Response
74 74
      */
75
-    public function store(CreateAddressRequest $request)
75
+    public function store (CreateAddressRequest $request)
76 76
     {
77 77
         $input = $request->all();
78 78
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return Response
92 92
      */
93
-    public function show($id)
93
+    public function show ($id)
94 94
     {
95 95
         $address = $this->addressRepository->find($id);
96 96
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @return Response
112 112
      */
113
-    public function edit($id)
113
+    public function edit ($id)
114 114
     {
115 115
         $address = $this->addressRepository->find($id);
116 116
         $types = $this->typeRepository->all();
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      *
136 136
      * @return Response
137 137
      */
138
-    public function update($id, UpdateAddressRequest $request)
138
+    public function update ($id, UpdateAddressRequest $request)
139 139
     {
140 140
         $address = $this->addressRepository->find($id);
141 141
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      *
162 162
      * @return Response
163 163
      */
164
-    public function destroy($id)
164
+    public function destroy ($id)
165 165
     {
166 166
         $address = $this->addressRepository->find($id);
167 167
 
Please login to merge, or discard this patch.
src/Requests/UpdateAddressRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return bool
27 27
      */
28
-    public function authorize()
28
+    public function authorize ()
29 29
     {
30 30
         return true;
31 31
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @return array
37 37
      */
38
-    public function rules()
38
+    public function rules ()
39 39
     {
40 40
         return Address::$rules;
41 41
     }
Please login to merge, or discard this patch.
src/Requests/CreateAddressRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return bool
27 27
      */
28
-    public function authorize()
28
+    public function authorize ()
29 29
     {
30 30
         return true;
31 31
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @return array
37 37
      */
38
-    public function rules()
38
+    public function rules ()
39 39
     {
40 40
         return Address::$rules;
41 41
     }
Please login to merge, or discard this patch.