Completed
Push — master ( 1c9124...348b7a )
by Lukáš
07:17
created
app/Console/Commands/Permissions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@
 block discarded – undo
45 45
 
46 46
         $configFile = config('satis.config');
47 47
 
48
-        if($this->filesystem->exists($configFile)) {
48
+        if ($this->filesystem->exists($configFile)) {
49 49
             chmod($configFile, 777);
50 50
         } else {
51
-            $this->error("\n" . 'Satis config file "' . $configFile . '" does not exist.
51
+            $this->error("\n".'Satis config file "'.$configFile.'" does not exist.
52 52
                 Did you forget to create it?');
53 53
         }
54 54
     }
Please login to merge, or discard this patch.
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.@:\/\-~]+)(.git)(\/)?#';
16
+    const REGEX = '#((git|ssh|http(s)?)|(git@[\w.]+))(:(\/\/)?)([\w.@:\/\-~]+)(.git)(\/)?#';
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(strtolower($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.