@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | $homepage = $publicConfig->getHomepage(); |
42 | 42 | |
43 | - $publicConfig->setHomepage(rtrim($homepage, '/') . '/' . config('satis.public_repository')) |
|
43 | + $publicConfig->setHomepage(rtrim($homepage, '/').'/'.config('satis.public_repository')) |
|
44 | 44 | ->setRequireAll(false) |
45 | 45 | ->setRepositories(new RepositoryCollection([$repository])); |
46 | 46 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | $homepage = $privateConfig->getHomepage(); |
63 | 63 | |
64 | - $privateConfig->setHomepage(rtrim($homepage, '/') . '/' . config('satis.private_repository')) |
|
64 | + $privateConfig->setHomepage(rtrim($homepage, '/').'/'.config('satis.private_repository')) |
|
65 | 65 | ->setRequireAll(true) |
66 | 66 | ->setProviders(true) |
67 | 67 | ->setPackages(new PackageCollection()); |
@@ -15,56 +15,56 @@ discard block |
||
15 | 15 | * @author Lukas Homza <[email protected]> |
16 | 16 | */ |
17 | 17 | class Config { |
18 | - /** |
|
19 | - * @Type("string") |
|
20 | - */ |
|
21 | - private $name; |
|
22 | - |
|
23 | - /** |
|
24 | - * @Type("string") |
|
25 | - */ |
|
26 | - private $homepage; |
|
27 | - |
|
28 | - /** |
|
29 | - * @Type("App\Satis\Collections\RepositoryCollection<App\Satis\Model\Repository>") |
|
30 | - */ |
|
31 | - private $repositories; |
|
32 | - |
|
33 | - /** |
|
34 | - * @Type("App\Satis\Collections\PackageCollection<App\Satis\Model\Package>") |
|
35 | - * @SerializedName("require") |
|
36 | - */ |
|
37 | - private $packages; |
|
38 | - |
|
39 | - /** |
|
40 | - * @Type("boolean") |
|
41 | - * @SerializedName("require-all") |
|
42 | - */ |
|
43 | - private $requireAll; |
|
44 | - |
|
45 | - /** |
|
46 | - * @Type("boolean") |
|
47 | - * @SerializedName("providers") |
|
48 | - */ |
|
49 | - private $providers; |
|
50 | - |
|
51 | - /** |
|
52 | - * @Type("boolean") |
|
53 | - * @SerializedName("require-dependencies") |
|
54 | - */ |
|
55 | - private $requireDependencies; |
|
56 | - |
|
57 | - /** |
|
58 | - * @Type("boolean") |
|
59 | - * @SerializedName("require-dev-dependencies") |
|
60 | - */ |
|
61 | - private $requireDevDependencies; |
|
62 | - |
|
63 | - /** |
|
64 | - * @var Archive |
|
65 | - * @Type("App\Satis\Model\Archive") |
|
66 | - */ |
|
67 | - private $archive; |
|
18 | + /** |
|
19 | + * @Type("string") |
|
20 | + */ |
|
21 | + private $name; |
|
22 | + |
|
23 | + /** |
|
24 | + * @Type("string") |
|
25 | + */ |
|
26 | + private $homepage; |
|
27 | + |
|
28 | + /** |
|
29 | + * @Type("App\Satis\Collections\RepositoryCollection<App\Satis\Model\Repository>") |
|
30 | + */ |
|
31 | + private $repositories; |
|
32 | + |
|
33 | + /** |
|
34 | + * @Type("App\Satis\Collections\PackageCollection<App\Satis\Model\Package>") |
|
35 | + * @SerializedName("require") |
|
36 | + */ |
|
37 | + private $packages; |
|
38 | + |
|
39 | + /** |
|
40 | + * @Type("boolean") |
|
41 | + * @SerializedName("require-all") |
|
42 | + */ |
|
43 | + private $requireAll; |
|
44 | + |
|
45 | + /** |
|
46 | + * @Type("boolean") |
|
47 | + * @SerializedName("providers") |
|
48 | + */ |
|
49 | + private $providers; |
|
50 | + |
|
51 | + /** |
|
52 | + * @Type("boolean") |
|
53 | + * @SerializedName("require-dependencies") |
|
54 | + */ |
|
55 | + private $requireDependencies; |
|
56 | + |
|
57 | + /** |
|
58 | + * @Type("boolean") |
|
59 | + * @SerializedName("require-dev-dependencies") |
|
60 | + */ |
|
61 | + private $requireDevDependencies; |
|
62 | + |
|
63 | + /** |
|
64 | + * @var Archive |
|
65 | + * @Type("App\Satis\Model\Archive") |
|
66 | + */ |
|
67 | + private $archive; |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * @Type("string") |
@@ -72,149 +72,149 @@ discard block |
||
72 | 72 | */ |
73 | 73 | private $twigTemplate; |
74 | 74 | |
75 | - /** |
|
76 | - * Constructor |
|
77 | - */ |
|
78 | - public function __construct() { |
|
79 | - $this->repositories = []; |
|
80 | - $this->packages = []; |
|
81 | - $this->requireAll = false; |
|
82 | - $this->requireDependencies = true; |
|
83 | - $this->requireDevDependencies = false; |
|
84 | - } |
|
85 | - |
|
86 | - /** |
|
87 | - * Get name |
|
88 | - * |
|
89 | - * @return string $name |
|
90 | - */ |
|
91 | - public function getName() { |
|
92 | - return $this->name; |
|
93 | - } |
|
94 | - |
|
95 | - /** |
|
96 | - * Get homepage |
|
97 | - * |
|
98 | - * @return string $homepage |
|
99 | - */ |
|
100 | - public function getHomepage() { |
|
101 | - return $this->homepage; |
|
102 | - } |
|
103 | - |
|
104 | - /** |
|
105 | - * @param string $homepage |
|
106 | - * @return $this |
|
107 | - */ |
|
108 | - public function setHomepage($homepage) { |
|
109 | - $this->homepage = $homepage; |
|
110 | - |
|
111 | - return $this; |
|
112 | - } |
|
113 | - |
|
114 | - /** |
|
115 | - * Get repositories |
|
116 | - * |
|
117 | - * @return RepositoryCollection<Repository> |
|
118 | - */ |
|
119 | - public function getRepositories() { |
|
120 | - return $this->repositories; |
|
121 | - } |
|
122 | - |
|
123 | - /** |
|
124 | - * Set repositories |
|
125 | - * |
|
126 | - * @param RepositoryCollection $repositories |
|
127 | - * |
|
128 | - * @return static |
|
129 | - */ |
|
130 | - public function setRepositories(RepositoryCollection $repositories) { |
|
131 | - $this->repositories = $repositories; |
|
132 | - |
|
133 | - return $this; |
|
134 | - } |
|
135 | - |
|
136 | - /** |
|
137 | - * @param Archive $archive |
|
138 | - */ |
|
139 | - public function setArchive(Archive $archive = null) { |
|
140 | - $this->archive = $archive; |
|
141 | - } |
|
142 | - |
|
143 | - /** |
|
144 | - * @return Archive |
|
145 | - */ |
|
146 | - public function getArchive() { |
|
147 | - return $this->archive; |
|
148 | - } |
|
149 | - |
|
150 | - /** |
|
151 | - * Get packages |
|
152 | - * |
|
153 | - * @return PackageCollection<Package> |
|
154 | - */ |
|
155 | - public function getPackages() { |
|
156 | - return $this->packages; |
|
157 | - } |
|
158 | - |
|
159 | - /** |
|
160 | - * @param PackageCollection $packages |
|
161 | - * @return $this |
|
162 | - */ |
|
163 | - public function setPackages(PackageCollection $packages) { |
|
164 | - $this->packages = $packages; |
|
165 | - |
|
166 | - return $this; |
|
167 | - } |
|
168 | - |
|
169 | - /** |
|
170 | - * @return boolean |
|
171 | - */ |
|
172 | - public function getRequireDevDependencies() { |
|
173 | - return $this->requireDevDependencies; |
|
174 | - } |
|
175 | - |
|
176 | - /** |
|
177 | - * @param boolean $requireDevDependencies |
|
178 | - * @return Config |
|
179 | - */ |
|
180 | - public function setRequireDevDependencies($requireDevDependencies) { |
|
181 | - $this->requireDevDependencies = $requireDevDependencies; |
|
182 | - |
|
183 | - return $this; |
|
184 | - } |
|
185 | - |
|
186 | - /** |
|
187 | - * @return boolean |
|
188 | - */ |
|
189 | - public function getRequireAll() { |
|
190 | - return $this->requireAll; |
|
191 | - } |
|
192 | - |
|
193 | - /** |
|
194 | - * @param boolean $requireAll |
|
195 | - * @return $this |
|
196 | - */ |
|
197 | - public function setRequireAll($requireAll) { |
|
198 | - $this->requireAll = $requireAll; |
|
199 | - |
|
200 | - return $this; |
|
201 | - } |
|
202 | - |
|
203 | - /** |
|
204 | - * @return boolean |
|
205 | - */ |
|
206 | - public function getProviders() { |
|
207 | - return $this->providers; |
|
208 | - } |
|
209 | - |
|
210 | - /** |
|
211 | - * @param boolean $providers |
|
212 | - * @return $this |
|
213 | - */ |
|
214 | - public function setProviders($providers) { |
|
215 | - $this->providers = $providers; |
|
216 | - return $this; |
|
217 | - } |
|
75 | + /** |
|
76 | + * Constructor |
|
77 | + */ |
|
78 | + public function __construct() { |
|
79 | + $this->repositories = []; |
|
80 | + $this->packages = []; |
|
81 | + $this->requireAll = false; |
|
82 | + $this->requireDependencies = true; |
|
83 | + $this->requireDevDependencies = false; |
|
84 | + } |
|
85 | + |
|
86 | + /** |
|
87 | + * Get name |
|
88 | + * |
|
89 | + * @return string $name |
|
90 | + */ |
|
91 | + public function getName() { |
|
92 | + return $this->name; |
|
93 | + } |
|
94 | + |
|
95 | + /** |
|
96 | + * Get homepage |
|
97 | + * |
|
98 | + * @return string $homepage |
|
99 | + */ |
|
100 | + public function getHomepage() { |
|
101 | + return $this->homepage; |
|
102 | + } |
|
103 | + |
|
104 | + /** |
|
105 | + * @param string $homepage |
|
106 | + * @return $this |
|
107 | + */ |
|
108 | + public function setHomepage($homepage) { |
|
109 | + $this->homepage = $homepage; |
|
110 | + |
|
111 | + return $this; |
|
112 | + } |
|
113 | + |
|
114 | + /** |
|
115 | + * Get repositories |
|
116 | + * |
|
117 | + * @return RepositoryCollection<Repository> |
|
118 | + */ |
|
119 | + public function getRepositories() { |
|
120 | + return $this->repositories; |
|
121 | + } |
|
122 | + |
|
123 | + /** |
|
124 | + * Set repositories |
|
125 | + * |
|
126 | + * @param RepositoryCollection $repositories |
|
127 | + * |
|
128 | + * @return static |
|
129 | + */ |
|
130 | + public function setRepositories(RepositoryCollection $repositories) { |
|
131 | + $this->repositories = $repositories; |
|
132 | + |
|
133 | + return $this; |
|
134 | + } |
|
135 | + |
|
136 | + /** |
|
137 | + * @param Archive $archive |
|
138 | + */ |
|
139 | + public function setArchive(Archive $archive = null) { |
|
140 | + $this->archive = $archive; |
|
141 | + } |
|
142 | + |
|
143 | + /** |
|
144 | + * @return Archive |
|
145 | + */ |
|
146 | + public function getArchive() { |
|
147 | + return $this->archive; |
|
148 | + } |
|
149 | + |
|
150 | + /** |
|
151 | + * Get packages |
|
152 | + * |
|
153 | + * @return PackageCollection<Package> |
|
154 | + */ |
|
155 | + public function getPackages() { |
|
156 | + return $this->packages; |
|
157 | + } |
|
158 | + |
|
159 | + /** |
|
160 | + * @param PackageCollection $packages |
|
161 | + * @return $this |
|
162 | + */ |
|
163 | + public function setPackages(PackageCollection $packages) { |
|
164 | + $this->packages = $packages; |
|
165 | + |
|
166 | + return $this; |
|
167 | + } |
|
168 | + |
|
169 | + /** |
|
170 | + * @return boolean |
|
171 | + */ |
|
172 | + public function getRequireDevDependencies() { |
|
173 | + return $this->requireDevDependencies; |
|
174 | + } |
|
175 | + |
|
176 | + /** |
|
177 | + * @param boolean $requireDevDependencies |
|
178 | + * @return Config |
|
179 | + */ |
|
180 | + public function setRequireDevDependencies($requireDevDependencies) { |
|
181 | + $this->requireDevDependencies = $requireDevDependencies; |
|
182 | + |
|
183 | + return $this; |
|
184 | + } |
|
185 | + |
|
186 | + /** |
|
187 | + * @return boolean |
|
188 | + */ |
|
189 | + public function getRequireAll() { |
|
190 | + return $this->requireAll; |
|
191 | + } |
|
192 | + |
|
193 | + /** |
|
194 | + * @param boolean $requireAll |
|
195 | + * @return $this |
|
196 | + */ |
|
197 | + public function setRequireAll($requireAll) { |
|
198 | + $this->requireAll = $requireAll; |
|
199 | + |
|
200 | + return $this; |
|
201 | + } |
|
202 | + |
|
203 | + /** |
|
204 | + * @return boolean |
|
205 | + */ |
|
206 | + public function getProviders() { |
|
207 | + return $this->providers; |
|
208 | + } |
|
209 | + |
|
210 | + /** |
|
211 | + * @param boolean $providers |
|
212 | + * @return $this |
|
213 | + */ |
|
214 | + public function setProviders($providers) { |
|
215 | + $this->providers = $providers; |
|
216 | + return $this; |
|
217 | + } |
|
218 | 218 | |
219 | 219 | /** |
220 | 220 | * @return string |