Completed
Branch master (bc737b)
by Nur
08:42
created
src/Middleware/CanUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
                 // if the application has not been installed,
29 29
                 // redirect to the installer
30
-                if (! $canInstall->alreadyInstalled()) {
30
+                if (!$canInstall->alreadyInstalled()) {
31 31
                     return redirect()->route('LaravelInstaller::welcome');
32 32
                 }
33 33
 
Please login to merge, or discard this patch.
src/Middleware/CanInstall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
                     $routeName = config('installer.installed.redirectOptions.route.name');
27 27
                     $data = config('installer.installed.redirectOptions.route.message');
28 28
 
29
-                    return redirect()->route($routeName)->with(['data' => $data]);
29
+                    return redirect()->route($routeName)->with([ 'data' => $data ]);
30 30
                     break;
31 31
 
32 32
                 case 'abort':
Please login to merge, or discard this patch.
src/Helpers/EnvironmentManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function getEnvContent()
36 36
     {
37
-        if (! file_exists($this->envPath)) {
37
+        if (!file_exists($this->envPath)) {
38 38
             if (file_exists($this->envExamplePath)) {
39 39
                 copy($this->envExamplePath, $this->envPath);
40 40
             } else {
Please login to merge, or discard this patch.
src/Helpers/FinalInstallManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         try {
35 35
             if (config('installer.final.key')) {
36
-                Artisan::call('key:generate', ['--force'=> true], $outputLog);
36
+                Artisan::call('key:generate', [ '--force'=> true ], $outputLog);
37 37
             }
38 38
         } catch (Exception $e) {
39 39
             return static::response($e->getMessage(), $outputLog);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         try {
54 54
             if (config('installer.final.publish')) {
55
-                Artisan::call('vendor:publish', ['--all' => true], $outputLog);
55
+                Artisan::call('vendor:publish', [ '--all' => true ], $outputLog);
56 56
             }
57 57
         } catch (Exception $e) {
58 58
             return static::response($e->getMessage(), $outputLog);
Please login to merge, or discard this patch.
src/Helpers/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use Illuminate\Support\Facades\URL;
4 4
 use Illuminate\Support\Facades\Route;
5 5
 
6
-if (! function_exists('isActive')) {
6
+if (!function_exists('isActive')) {
7 7
     /**
8 8
      * Set the active class to the current opened menu.
9 9
      *
Please login to merge, or discard this patch.
src/Helpers/InstalledFileManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
         $dateStamp = date('Y/m/d h:i:sa');
17 17
 
18
-        if (! file_exists($installedLogFile)) {
18
+        if (!file_exists($installedLogFile)) {
19 19
             $message = trans('installer_messages.installed.success_log_message').$dateStamp."\n";
20 20
 
21 21
             file_put_contents($installedLogFile, $message);
Please login to merge, or discard this patch.
src/Helpers/RequirementsChecker.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -19,33 +19,33 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function check(array $requirements): array
21 21
     {
22
-        $results = [];
22
+        $results = [ ];
23 23
 
24 24
         foreach ($requirements as $type => $requirement) {
25 25
             switch ($type) {
26 26
                 // check php requirements
27 27
                 case 'php':
28
-                    foreach ($requirements[$type] as $requirement) {
29
-                        $results['requirements'][$type][$requirement] = true;
28
+                    foreach ($requirements[ $type ] as $requirement) {
29
+                        $results[ 'requirements' ][ $type ][ $requirement ] = true;
30 30
 
31
-                        if (! extension_loaded($requirement)) {
32
-                            $results['requirements'][$type][$requirement] = false;
31
+                        if (!extension_loaded($requirement)) {
32
+                            $results[ 'requirements' ][ $type ][ $requirement ] = false;
33 33
 
34
-                            $results['errors'] = true;
34
+                            $results[ 'errors' ] = true;
35 35
                         }
36 36
                     }
37 37
                     break;
38 38
                 // check apache requirements
39 39
                 case 'apache':
40
-                    foreach ($requirements[$type] as $requirement) {
40
+                    foreach ($requirements[ $type ] as $requirement) {
41 41
                         // if function doesn't exist we can't check apache modules
42 42
                         if (function_exists('apache_get_modules')) {
43
-                            $results['requirements'][$type][$requirement] = true;
43
+                            $results[ 'requirements' ][ $type ][ $requirement ] = true;
44 44
 
45
-                            if (! in_array($requirement, apache_get_modules())) {
46
-                                $results['requirements'][$type][$requirement] = false;
45
+                            if (!in_array($requirement, apache_get_modules())) {
46
+                                $results[ 'requirements' ][ $type ][ $requirement ] = false;
47 47
 
48
-                                $results['errors'] = true;
48
+                                $results[ 'errors' ] = true;
49 49
                             }
50 50
                         }
51 51
                     }
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
             $minVersionPhp = $this->getMinPhpVersion();
75 75
         }
76 76
 
77
-        if (version_compare($currentPhpVersion['version'], $minVersionPhp) >= 0) {
77
+        if (version_compare($currentPhpVersion[ 'version' ], $minVersionPhp) >= 0) {
78 78
             $supported = true;
79 79
         }
80 80
 
81 81
         $phpStatus = [
82
-            'full' => $currentPhpVersion['full'],
83
-            'current' => $currentPhpVersion['version'],
82
+            'full' => $currentPhpVersion[ 'full' ],
83
+            'current' => $currentPhpVersion[ 'version' ],
84 84
             'minimum' => $minVersionPhp,
85 85
             'supported' => $supported,
86 86
         ];
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         $currentVersionFull = PHP_VERSION;
99 99
         preg_match("#^\d+(\.\d+)*#", $currentVersionFull, $filtered);
100
-        $currentVersion = $filtered[0];
100
+        $currentVersion = $filtered[ 0 ];
101 101
 
102 102
         return [
103 103
             'full' => $currentVersionFull,
Please login to merge, or discard this patch.
src/Helpers/DatabaseManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     private function migrate(BufferedOutput $outputLog)
35 35
     {
36 36
         try {
37
-            Artisan::call('migrate', ['--force'=> true], $outputLog);
37
+            Artisan::call('migrate', [ '--force'=> true ], $outputLog);
38 38
         } catch (Exception $e) {
39 39
             return $this->response($e->getMessage(), 'error', $outputLog);
40 40
         }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     private function seed(BufferedOutput $outputLog)
52 52
     {
53 53
         try {
54
-            Artisan::call('db:seed', ['--force' => true], $outputLog);
54
+            Artisan::call('db:seed', [ '--force' => true ], $outputLog);
55 55
         } catch (Exception $e) {
56 56
             return $this->response($e->getMessage(), 'error', $outputLog);
57 57
         }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         if (DB::connection() instanceof SQLiteConnection) {
87 87
             $database = DB::connection()->getDatabaseName();
88
-            if (! file_exists($database)) {
88
+            if (!file_exists($database)) {
89 89
                 touch($database);
90 90
                 DB::reconnect(Config::get('database.default'));
91 91
             }
Please login to merge, or discard this patch.
src/Helpers/PermissionsChecker.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
     /**
8 8
      * @var array
9 9
      */
10
-    protected array $results = [];
10
+    protected array $results = [ ];
11 11
 
12 12
     /**
13 13
      * Set the result array permissions and errors.
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function __construct()
18 18
     {
19
-        $this->results['permissions'] = [];
19
+        $this->results[ 'permissions' ] = [ ];
20 20
 
21
-        $this->results['errors'] = null;
21
+        $this->results[ 'errors' ] = null;
22 22
     }
23 23
 
24 24
     /**
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public function check(array $folders): array
31 31
     {
32 32
         foreach ($folders as $folder => $permission) {
33
-            if (! ($this->getPermission($folder) >= $permission)) {
33
+            if (!($this->getPermission($folder) >= $permission)) {
34 34
                 $this->addFileAndSetErrors($folder, $permission, false);
35 35
             } else {
36 36
                 $this->addFile($folder, $permission, true);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     private function addFile($folder, $permission, $isSet)
62 62
     {
63
-        array_push($this->results['permissions'], [
63
+        array_push($this->results[ 'permissions' ], [
64 64
             'folder' => $folder,
65 65
             'permission' => $permission,
66 66
             'isSet' => $isSet,
@@ -78,6 +78,6 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $this->addFile($folder, $permission, $isSet);
80 80
 
81
-        $this->results['errors'] = true;
81
+        $this->results[ 'errors' ] = true;
82 82
     }
83 83
 }
Please login to merge, or discard this patch.