Test Failed
Push — master ( 4d2995...9287ab )
by Georgi
04:21
created
src/System/SystemCore.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
 	
25 25
 	public function migrate()
26 26
 	{
27
-	    Models\Module::migrate();
27
+		Models\Module::migrate();
28 28
 	    
29
-	    Models\Variable::migrate();
29
+		Models\Variable::migrate();
30 30
 	    
31
-	    return parent::migrate();
31
+		return parent::migrate();
32 32
 	}
33 33
 	
34 34
 }
Please login to merge, or discard this patch.
src/System/Models/Module.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -7,18 +7,18 @@
 block discarded – undo
7 7
 
8 8
 class Module extends Model
9 9
 {
10
-    use HasEpesiConnection;
10
+	use HasEpesiConnection;
11 11
     
12
-    public $table = 'modules';
12
+	public $table = 'modules';
13 13
     
14
-    function init() {
15
-        parent::init();
14
+	function init() {
15
+		parent::init();
16 16
         
17
-        $this->addFields([
18
-                'class',
19
-                'alias',
20
-                'priority' => ['default' => 0],
21
-                'state' => ['default' => 1]
22
-        ]);
23
-    }
17
+		$this->addFields([
18
+				'class',
19
+				'alias',
20
+				'priority' => ['default' => 0],
21
+				'state' => ['default' => 1]
22
+		]);
23
+	}
24 24
 }
Please login to merge, or discard this patch.
src/System/Models/Variable.php 3 patches
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,9 @@  discard block
 block discarded – undo
20 20
 	public $strict_types = false;
21 21
 	
22 22
 	private static function cache() {
23
-		if(isset(self::$variables)) return;
23
+		if(isset(self::$variables)) {
24
+			return;
25
+		}
24 26
 		
25 27
 		self::$variables = self::pluck('value', 'name');
26 28
 	}
@@ -45,7 +47,9 @@  discard block
 block discarded – undo
45 47
 	public static function recall($name, $default = null) {
46 48
 		self::cache();
47 49
 		
48
-		if (! self::$variables->has($name)) return $default;
50
+		if (! self::$variables->has($name)) {
51
+			return $default;
52
+		}
49 53
 		
50 54
 		return self::$variables->get($name, $default)?? $default;
51 55
 	}
@@ -65,8 +69,7 @@  discard block
 block discarded – undo
65 69
 		
66 70
 		if ($variable->loaded()) {
67 71
 		    $variable->save(compact('value'));
68
-		}
69
-		else {
72
+		} else {
70 73
 		    $variable->insert(compact('name', 'value'));
71 74
 		}
72 75
 	}
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 class Variable extends Model
10 10
 {
11
-    use HasEpesiConnection;
11
+	use HasEpesiConnection;
12 12
     
13 13
 	/**
14 14
 	 * @var Collection
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
 	}
27 27
 	
28 28
 	public function init() {
29
-	    parent::init();
29
+		parent::init();
30 30
 	    
31
-	    $this->addFields([
32
-	            'name',
33
-	            'value' => ['type' => 'text', 'serialize' => 'base64']
34
-	    ]);
31
+		$this->addFields([
32
+				'name',
33
+				'value' => ['type' => 'text', 'serialize' => 'base64']
34
+		]);
35 35
 	}
36 36
 	
37 37
 	public static function recall($name, $default = null) {
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
 		$variable = self::create()->addCondition('name', $name)->tryLoadAny();
57 57
 
58 58
 		if ($variable->loaded()) {
59
-		    $variable->save(compact('value'));
59
+			$variable->save(compact('value'));
60 60
 		}
61 61
 		else {
62
-		    $variable->insert(compact('name', 'value'));
62
+			$variable->insert(compact('name', 'value'));
63 63
 		}
64 64
 	}
65 65
 	
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	public $strict_types = false;
21 21
 	
22 22
 	private static function cache() {
23
-		if(isset(self::$variables)) return;
23
+		if (isset(self::$variables)) return;
24 24
 		
25 25
 		self::$variables = self::pluck('value', 'name');
26 26
 	}
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	public static function recall($name, $default = null) {
38 38
 		self::cache();
39 39
 		
40
-		if (! self::$variables->has($name)) return $default;
40
+		if (!self::$variables->has($name)) return $default;
41 41
 		
42 42
 		return self::$variables->get($name, $default)?? $default;
43 43
 	}
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
 		}
64 64
 	}
65 65
 	
66
-	public static function forget($name, $throwError=true) {
66
+	public static function forget($name, $throwError = true) {
67 67
 		self::cache();
68 68
 		
69
-		if (! self::$variables->has($name) && $throwError) {
69
+		if (!self::$variables->has($name) && $throwError) {
70 70
 			throw new \Exception('No such variable in database: ' . $name);
71 71
 		}
72 72
 		
Please login to merge, or discard this patch.
src/System/Modules/ModuleCore.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 * Label of the module
65 65
 	 */
66 66
 	public static function label() {
67
-		return static::$label?: ucwords(str_ireplace('.', ' ', static::alias()));
67
+		return static::$label ?: ucwords(str_ireplace('.', ' ', static::alias()));
68 68
 	}
69 69
 	
70 70
 	/**
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
 	{
77 77
 		$templatesDir = static::path() . DIRECTORY_SEPARATOR . 'Templates';
78 78
 		
79
-		if (! is_dir($templatesDir)) return;
79
+		if (!is_dir($templatesDir)) return;
80 80
 		
81 81
 		$skinDir = $templatesDir . DIRECTORY_SEPARATOR . $skin;
82 82
 		
83
-		return is_dir($skinDir)? $skinDir: $templatesDir;
83
+		return is_dir($skinDir) ? $skinDir : $templatesDir;
84 84
 	}
85 85
 	
86 86
 	public static function translations()
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@
 block discarded – undo
46 46
 	{
47 47
 		$templatesDir = static::path() . DIRECTORY_SEPARATOR . 'Templates';
48 48
 		
49
-		if (! is_dir($templatesDir)) return;
49
+		if (! is_dir($templatesDir)) {
50
+			return;
51
+		}
50 52
 		
51 53
 		$skinDir = $templatesDir . DIRECTORY_SEPARATOR . $skin;
52 54
 		
Please login to merge, or discard this patch.
src/System/Modules/PackageManifest.php 2 patches
Indentation   +162 added lines, -162 removed lines patch added patch discarded remove patch
@@ -7,168 +7,168 @@
 block discarded – undo
7 7
 
8 8
 class PackageManifest
9 9
 {
10
-    /**
11
-     * The filesystem instance.
12
-     *
13
-     * @var \Illuminate\Filesystem\Filesystem
14
-     */
15
-    public $files;
16
-
17
-    /**
18
-     * The base path.
19
-     *
20
-     * @var string
21
-     */
22
-    public $basePath;
23
-
24
-    /**
25
-     * The vendor path.
26
-     *
27
-     * @var string
28
-     */
29
-    public $vendorPath;
30
-
31
-    /**
32
-     * The manifest path.
33
-     *
34
-     * @var string|null
35
-     */
36
-    public $manifestPath;
37
-
38
-    /**
39
-     * The loaded manifest array.
40
-     *
41
-     * @var array
42
-     */
43
-    public $manifest;
44
-
45
-    /**
46
-     * Create a new package manifest instance.
47
-     *
48
-     * @param  \Illuminate\Filesystem\Filesystem  $files
49
-     * @param  string  $basePath
50
-     * @param  string  $manifestPath
51
-     * @return void
52
-     */
53
-    public function __construct(Filesystem $files, $basePath, $manifestPath)
54
-    {
55
-        $this->files = $files;
56
-        $this->basePath = $basePath;
57
-        $this->manifestPath = $manifestPath;
58
-        $this->vendorPath = $basePath.'/vendor';
59
-    }
60
-
61
-    /**
62
-     * Get all of the integrator class names for all packages.
63
-     *
64
-     * @return array
65
-     */
66
-    public function joints()
67
-    {
68
-        return collect($this->getManifest())->flatMap(function ($configuration) {
69
-            return (array) ($configuration['joints'] ?? []);
70
-        })->filter()->all();
71
-    }
10
+	/**
11
+	 * The filesystem instance.
12
+	 *
13
+	 * @var \Illuminate\Filesystem\Filesystem
14
+	 */
15
+	public $files;
16
+
17
+	/**
18
+	 * The base path.
19
+	 *
20
+	 * @var string
21
+	 */
22
+	public $basePath;
23
+
24
+	/**
25
+	 * The vendor path.
26
+	 *
27
+	 * @var string
28
+	 */
29
+	public $vendorPath;
30
+
31
+	/**
32
+	 * The manifest path.
33
+	 *
34
+	 * @var string|null
35
+	 */
36
+	public $manifestPath;
37
+
38
+	/**
39
+	 * The loaded manifest array.
40
+	 *
41
+	 * @var array
42
+	 */
43
+	public $manifest;
44
+
45
+	/**
46
+	 * Create a new package manifest instance.
47
+	 *
48
+	 * @param  \Illuminate\Filesystem\Filesystem  $files
49
+	 * @param  string  $basePath
50
+	 * @param  string  $manifestPath
51
+	 * @return void
52
+	 */
53
+	public function __construct(Filesystem $files, $basePath, $manifestPath)
54
+	{
55
+		$this->files = $files;
56
+		$this->basePath = $basePath;
57
+		$this->manifestPath = $manifestPath;
58
+		$this->vendorPath = $basePath.'/vendor';
59
+	}
60
+
61
+	/**
62
+	 * Get all of the integrator class names for all packages.
63
+	 *
64
+	 * @return array
65
+	 */
66
+	public function joints()
67
+	{
68
+		return collect($this->getManifest())->flatMap(function ($configuration) {
69
+			return (array) ($configuration['joints'] ?? []);
70
+		})->filter()->all();
71
+	}
72 72
     
73
-    /**
74
-     * Get all of the module declared for all packages.
75
-     *
76
-     * @return array
77
-     */
78
-    public function modules()
79
-    {
80
-    	return collect($this->getManifest())->flatMap(function ($configuration, $package) {
81
-    		return array_map(function($moduleRelativePath) use ($package) {
82
-    			return str_ireplace('/', DIRECTORY_SEPARATOR, implode('/', [$this->vendorPath, $package, $moduleRelativePath]));
83
-    		}, (array) ($configuration['modules'] ?? []));
84
-    	})->filter()->all();
85
-    }
86
-
87
-    /**
88
-     * Get the current package manifest.
89
-     *
90
-     * @return array
91
-     */
92
-    protected function getManifest()
93
-    {
94
-        if (isset($this->manifest)) {
95
-            return $this->manifest;
96
-        }
97
-
98
-        if (! file_exists($this->manifestPath)) {
99
-            $this->build();
100
-        }
73
+	/**
74
+	 * Get all of the module declared for all packages.
75
+	 *
76
+	 * @return array
77
+	 */
78
+	public function modules()
79
+	{
80
+		return collect($this->getManifest())->flatMap(function ($configuration, $package) {
81
+			return array_map(function($moduleRelativePath) use ($package) {
82
+				return str_ireplace('/', DIRECTORY_SEPARATOR, implode('/', [$this->vendorPath, $package, $moduleRelativePath]));
83
+			}, (array) ($configuration['modules'] ?? []));
84
+		})->filter()->all();
85
+	}
86
+
87
+	/**
88
+	 * Get the current package manifest.
89
+	 *
90
+	 * @return array
91
+	 */
92
+	protected function getManifest()
93
+	{
94
+		if (isset($this->manifest)) {
95
+			return $this->manifest;
96
+		}
97
+
98
+		if (! file_exists($this->manifestPath)) {
99
+			$this->build();
100
+		}
101 101
         
102
-        return $this->manifest = file_exists($this->manifestPath) ?
103
-            $this->files->getRequire($this->manifestPath) : [];
104
-    }
105
-
106
-    /**
107
-     * Build the manifest and write it to disk.
108
-     *
109
-     * @return void
110
-     */
111
-    public function build()
112
-    {
113
-        $packages = [];
114
-
115
-        if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) {
116
-            $packages = json_decode($this->files->get($path), true);
117
-        }
118
-
119
-        $ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());
120
-
121
-        $this->write(collect($packages)->mapWithKeys(function ($package) {
122
-            return [$this->format($package['name']) => $package['extra']['epesi'] ?? []];
123
-        })->each(function ($configuration) use (&$ignore) {
124
-            $ignore = array_merge($ignore, $configuration['dont-discover'] ?? []);
125
-        })->reject(function ($configuration, $package) use ($ignore, $ignoreAll) {
126
-            return $ignoreAll || in_array($package, $ignore);
127
-        })->filter()->all());
128
-    }
129
-
130
-    /**
131
-     * Format the given package name.
132
-     *
133
-     * @param  string  $package
134
-     * @return string
135
-     */
136
-    protected function format($package)
137
-    {
138
-        return str_replace($this->vendorPath.'/', '', $package);
139
-    }
140
-
141
-    /**
142
-     * Get all of the package names that should be ignored.
143
-     *
144
-     * @return array
145
-     */
146
-    protected function packagesToIgnore()
147
-    {
148
-        if (! file_exists($this->basePath.'/composer.json')) {
149
-            return [];
150
-        }
151
-
152
-        return json_decode(file_get_contents(
153
-            $this->basePath.'/composer.json'
154
-        ), true)['extra']['epesi']['dont-discover'] ?? [];
155
-    }
156
-
157
-    /**
158
-     * Write the given manifest array to disk.
159
-     *
160
-     * @param  array  $manifest
161
-     * @return void
162
-     * @throws \Exception
163
-     */
164
-    protected function write(array $manifest)
165
-    {
166
-        if (! is_writable(dirname($this->manifestPath))) {
167
-            throw new Exception('The '.dirname($this->manifestPath).' directory must be present and writable.');
168
-        }
169
-
170
-        $this->files->put(
171
-            $this->manifestPath, '<?php return '.var_export($manifest, true).';'
172
-        );
173
-    }
102
+		return $this->manifest = file_exists($this->manifestPath) ?
103
+			$this->files->getRequire($this->manifestPath) : [];
104
+	}
105
+
106
+	/**
107
+	 * Build the manifest and write it to disk.
108
+	 *
109
+	 * @return void
110
+	 */
111
+	public function build()
112
+	{
113
+		$packages = [];
114
+
115
+		if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) {
116
+			$packages = json_decode($this->files->get($path), true);
117
+		}
118
+
119
+		$ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());
120
+
121
+		$this->write(collect($packages)->mapWithKeys(function ($package) {
122
+			return [$this->format($package['name']) => $package['extra']['epesi'] ?? []];
123
+		})->each(function ($configuration) use (&$ignore) {
124
+			$ignore = array_merge($ignore, $configuration['dont-discover'] ?? []);
125
+		})->reject(function ($configuration, $package) use ($ignore, $ignoreAll) {
126
+			return $ignoreAll || in_array($package, $ignore);
127
+		})->filter()->all());
128
+	}
129
+
130
+	/**
131
+	 * Format the given package name.
132
+	 *
133
+	 * @param  string  $package
134
+	 * @return string
135
+	 */
136
+	protected function format($package)
137
+	{
138
+		return str_replace($this->vendorPath.'/', '', $package);
139
+	}
140
+
141
+	/**
142
+	 * Get all of the package names that should be ignored.
143
+	 *
144
+	 * @return array
145
+	 */
146
+	protected function packagesToIgnore()
147
+	{
148
+		if (! file_exists($this->basePath.'/composer.json')) {
149
+			return [];
150
+		}
151
+
152
+		return json_decode(file_get_contents(
153
+			$this->basePath.'/composer.json'
154
+		), true)['extra']['epesi']['dont-discover'] ?? [];
155
+	}
156
+
157
+	/**
158
+	 * Write the given manifest array to disk.
159
+	 *
160
+	 * @param  array  $manifest
161
+	 * @return void
162
+	 * @throws \Exception
163
+	 */
164
+	protected function write(array $manifest)
165
+	{
166
+		if (! is_writable(dirname($this->manifestPath))) {
167
+			throw new Exception('The '.dirname($this->manifestPath).' directory must be present and writable.');
168
+		}
169
+
170
+		$this->files->put(
171
+			$this->manifestPath, '<?php return '.var_export($manifest, true).';'
172
+		);
173
+	}
174 174
 }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->files = $files;
56 56
         $this->basePath = $basePath;
57 57
         $this->manifestPath = $manifestPath;
58
-        $this->vendorPath = $basePath.'/vendor';
58
+        $this->vendorPath = $basePath . '/vendor';
59 59
     }
60 60
 
61 61
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function joints()
67 67
     {
68
-        return collect($this->getManifest())->flatMap(function ($configuration) {
68
+        return collect($this->getManifest())->flatMap(function($configuration) {
69 69
             return (array) ($configuration['joints'] ?? []);
70 70
         })->filter()->all();
71 71
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function modules()
79 79
     {
80
-    	return collect($this->getManifest())->flatMap(function ($configuration, $package) {
80
+    	return collect($this->getManifest())->flatMap(function($configuration, $package) {
81 81
     		return array_map(function($moduleRelativePath) use ($package) {
82 82
     			return str_ireplace('/', DIRECTORY_SEPARATOR, implode('/', [$this->vendorPath, $package, $moduleRelativePath]));
83 83
     		}, (array) ($configuration['modules'] ?? []));
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             return $this->manifest;
96 96
         }
97 97
 
98
-        if (! file_exists($this->manifestPath)) {
98
+        if (!file_exists($this->manifestPath)) {
99 99
             $this->build();
100 100
         }
101 101
         
@@ -112,17 +112,17 @@  discard block
 block discarded – undo
112 112
     {
113 113
         $packages = [];
114 114
 
115
-        if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) {
115
+        if ($this->files->exists($path = $this->vendorPath . '/composer/installed.json')) {
116 116
             $packages = json_decode($this->files->get($path), true);
117 117
         }
118 118
 
119 119
         $ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());
120 120
 
121
-        $this->write(collect($packages)->mapWithKeys(function ($package) {
121
+        $this->write(collect($packages)->mapWithKeys(function($package) {
122 122
             return [$this->format($package['name']) => $package['extra']['epesi'] ?? []];
123
-        })->each(function ($configuration) use (&$ignore) {
123
+        })->each(function($configuration) use (&$ignore) {
124 124
             $ignore = array_merge($ignore, $configuration['dont-discover'] ?? []);
125
-        })->reject(function ($configuration, $package) use ($ignore, $ignoreAll) {
125
+        })->reject(function($configuration, $package) use ($ignore, $ignoreAll) {
126 126
             return $ignoreAll || in_array($package, $ignore);
127 127
         })->filter()->all());
128 128
     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     protected function format($package)
137 137
     {
138
-        return str_replace($this->vendorPath.'/', '', $package);
138
+        return str_replace($this->vendorPath . '/', '', $package);
139 139
     }
140 140
 
141 141
     /**
@@ -145,12 +145,12 @@  discard block
 block discarded – undo
145 145
      */
146 146
     protected function packagesToIgnore()
147 147
     {
148
-        if (! file_exists($this->basePath.'/composer.json')) {
148
+        if (!file_exists($this->basePath . '/composer.json')) {
149 149
             return [];
150 150
         }
151 151
 
152 152
         return json_decode(file_get_contents(
153
-            $this->basePath.'/composer.json'
153
+            $this->basePath . '/composer.json'
154 154
         ), true)['extra']['epesi']['dont-discover'] ?? [];
155 155
     }
156 156
 
@@ -163,12 +163,12 @@  discard block
 block discarded – undo
163 163
      */
164 164
     protected function write(array $manifest)
165 165
     {
166
-        if (! is_writable(dirname($this->manifestPath))) {
167
-            throw new Exception('The '.dirname($this->manifestPath).' directory must be present and writable.');
166
+        if (!is_writable(dirname($this->manifestPath))) {
167
+            throw new Exception('The ' . dirname($this->manifestPath) . ' directory must be present and writable.');
168 168
         }
169 169
 
170 170
         $this->files->put(
171
-            $this->manifestPath, '<?php return '.var_export($manifest, true).';'
171
+            $this->manifestPath, '<?php return ' . var_export($manifest, true) . ';'
172 172
         );
173 173
     }
174 174
 }
Please login to merge, or discard this patch.
src/System/Modules/ModuleJoint.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 			 */
25 25
 			$joint = new $class();
26 26
 
27
-			if (! $joint->access()) continue;
27
+			if (!$joint->access()) continue;
28 28
 			
29 29
 			$ret->add($joint);
30 30
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,9 @@
 block discarded – undo
29 29
 			 */
30 30
 			$joint = new $class();
31 31
 
32
-			if (! $joint->access()) continue;
32
+			if (! $joint->access()) {
33
+				continue;
34
+			}
33 35
 			
34 36
 			$ret->add($joint);
35 37
 		}
Please login to merge, or discard this patch.
src/System/Modules/Concerns/HasModule.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 	 */
15 15
 	final public static function view($alias = null)
16 16
 	{
17
-		$class = self::namespace() . '\\' . ($alias? Str::studly($alias): (static::name() . 'View'));
17
+		$class = self::namespace() . '\\' . ($alias ? Str::studly($alias) : (static::name() . 'View'));
18 18
 		
19 19
 		if ($alias) return $class;
20 20
 		
21
-		return static::$view?: $class;
21
+		return static::$view ?: $class;
22 22
 	}
23 23
 	
24 24
 	/**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	{
66 66
 		$names = array_slice(explode('\\', static::class), -2, -1);
67 67
 		
68
-		return $names? reset($names): '';
68
+		return $names ? reset($names) : '';
69 69
 	}
70 70
 	
71 71
 	/**
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,9 @@
 block discarded – undo
16 16
 	{
17 17
 		$class = self::namespace() . '\\' . ($alias? Str::studly($alias): (static::name() . 'View'));
18 18
 		
19
-		if ($alias) return $class;
19
+		if ($alias) {
20
+			return $class;
21
+		}
20 22
 		
21 23
 		return static::$view?: $class;
22 24
 	}
Please login to merge, or discard this patch.
src/System/Modules/Concerns/HasLaunchButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	{
34 34
 		$link = $this->link();
35 35
 		
36
-		$link = is_array($link)? ModuleView::moduleLink(...$link): $link;
36
+		$link = is_array($link) ? ModuleView::moduleLink(...$link) : $link;
37 37
 		
38 38
 		return (new LaunchButton([
39 39
 				'label' => $this->label(),
Please login to merge, or discard this patch.
src/System/Modules/Concerns/HasPackageManifest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 	
12 12
 	final public static function packageManifest()
13 13
 	{
14
-		return self::$packageManifest = self::$packageManifest?: new PackageManifest(new Filesystem(), app()->basePath(), self::getCachedManifestPath());
14
+		return self::$packageManifest = self::$packageManifest ?: new PackageManifest(new Filesystem(), app()->basePath(), self::getCachedManifestPath());
15 15
 	}
16 16
 	
17 17
 	final public static function getCachedManifestPath()
Please login to merge, or discard this patch.