Completed
Push — master ( 1ff67a...b32b74 )
by Lukáš
10s
created
app/Satis/Model/Package.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -11,62 +11,62 @@
 block discarded – undo
11 11
 * @author Lukas Homza <[email protected]>
12 12
 */
13 13
 class Package {
14
-  /**
15
-   * @Type("string")
16
-   */
17
-  private $name;
14
+    /**
15
+     * @Type("string")
16
+     */
17
+    private $name;
18 18
 
19
-  /**
20
-   * @Type("string")
21
-   */
22
-  private $version;
19
+    /**
20
+     * @Type("string")
21
+     */
22
+    private $version;
23 23
 
24
-  /**
25
-   * Initialize with default opinionated values
26
-   */
27
-  public function __construct() {
24
+    /**
25
+     * Initialize with default opinionated values
26
+     */
27
+    public function __construct() {
28 28
     $this->name = '';
29 29
     $this->version = '*';
30
-  }
30
+    }
31 31
 
32
-  /**
33
-   * @return string
34
-   */
35
-  public function getVersion() {
32
+    /**
33
+     * @return string
34
+     */
35
+    public function getVersion() {
36 36
     return $this->version;
37
-  }
37
+    }
38 38
 
39
-  /**
40
-   * @return string
41
-   */
42
-  public function getName() {
39
+    /**
40
+     * @return string
41
+     */
42
+    public function getName() {
43 43
     return $this->name;
44
-  }
44
+    }
45 45
 
46
-  /**
47
-   * @param string $version
48
-   */
49
-  public function setVersion($version) {
46
+    /**
47
+     * @param string $version
48
+     */
49
+    public function setVersion($version) {
50 50
     $this->version = $version;
51
-  }
51
+    }
52 52
 
53
-  /**
54
-   * @param mixed $name
55
-   * @return Package
56
-   */
57
-  public function setName($name) {
53
+    /**
54
+     * @param mixed $name
55
+     * @return Package
56
+     */
57
+    public function setName($name) {
58 58
     $this->name = trim($name);
59 59
 
60 60
     return $this;
61
-  }
61
+    }
62 62
 
63
-  /**
64
-   * Get repository ID
65
-   *
66
-   * @return string
67
-   */
68
-  public function getId() {
63
+    /**
64
+     * Get repository ID
65
+     *
66
+     * @return string
67
+     */
68
+    public function getId() {
69 69
     return ConfigManager::nameToId($this->name);
70
-  }
70
+    }
71 71
 
72 72
 }
Please login to merge, or discard this patch.
app/Satis/Model/Repository.php 1 patch
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -13,85 +13,85 @@
 block discarded – undo
13 13
 */
14 14
 class Repository {
15 15
 
16
-  const REGEX = '#((git|ssh|http(s)?)|(git@[\w.]+))(:(\/\/)?)([\w.@:\/\-~]+)(\/)?#';
16
+    const REGEX = '#((git|ssh|http(s)?)|(git@[\w.]+))(:(\/\/)?)([\w.@:\/\-~]+)(\/)?#';
17 17
 
18
-  /**
19
-   * @Type("string")
20
-   */
21
-  private $type;
18
+    /**
19
+     * @Type("string")
20
+     */
21
+    private $type;
22 22
 
23
-  /**
24
-   * @Type("string")
25
-   */
26
-  private $url;
23
+    /**
24
+     * @Type("string")
25
+     */
26
+    private $url;
27 27
 
28
-  /**
29
-   * Initialize with default opinionated values
30
-   */
31
-  public function __construct() {
28
+    /**
29
+     * Initialize with default opinionated values
30
+     */
31
+    public function __construct() {
32 32
     $this->type = config('satis.default_repository_type');
33 33
     $this->url = '';
34
-  }
34
+    }
35 35
 
36
-  /**
37
-   * Get the string representation
38
-   *
39
-   * @return string
40
-   */
41
-  public function __toString() {
36
+    /**
37
+     * Get the string representation
38
+     *
39
+     * @return string
40
+     */
41
+    public function __toString() {
42 42
     return $this->url;
43
-  }
43
+    }
44 44
 
45
-  /**
46
-   * Get type
47
-   *
48
-   * @return string $type
49
-   */
50
-  public function getType() {
45
+    /**
46
+     * Get type
47
+     *
48
+     * @return string $type
49
+     */
50
+    public function getType() {
51 51
     return $this->type;
52
-  }
52
+    }
53 53
 
54
-  /**
55
-   * Set type
56
-   *
57
-   * @param string $type
58
-   *
59
-   * @return static
60
-   */
61
-  public function setType($type) {
54
+    /**
55
+     * Set type
56
+     *
57
+     * @param string $type
58
+     *
59
+     * @return static
60
+     */
61
+    public function setType($type) {
62 62
     $this->type = strtolower($type);
63 63
 
64 64
     return $this;
65
-  }
65
+    }
66 66
 
67
-  /**
68
-   * Get url
69
-   *
70
-   * @return string $url
71
-   */
72
-  public function getUrl() {
67
+    /**
68
+     * Get url
69
+     *
70
+     * @return string $url
71
+     */
72
+    public function getUrl() {
73 73
     return $this->url;
74
-  }
74
+    }
75 75
 
76
-  /**
77
-   * Set url
78
-   *
79
-   * @param string $url
80
-   *
81
-   * @return static
82
-   */
83
-  public function setUrl($url) {
76
+    /**
77
+     * Set url
78
+     *
79
+     * @param string $url
80
+     *
81
+     * @return static
82
+     */
83
+    public function setUrl($url) {
84 84
     $this->url = urldecode($url);
85 85
 
86 86
     return $this;
87
-  }
87
+    }
88 88
 
89
-  /**
90
-   * Get repository ID
91
-   *
92
-   * @return string
93
-   */
94
-  public function getId() {
89
+    /**
90
+     * Get repository ID
91
+     *
92
+     * @return string
93
+     */
94
+    public function getId() {
95 95
     return ConfigManager::nameToId($this->url);
96
-  }
96
+    }
97 97
 }
Please login to merge, or discard this patch.
app/Satis/Model/Config.php 1 patch
Indentation   +193 added lines, -193 removed lines patch added patch discarded remove patch
@@ -15,56 +15,56 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.