Completed
Push — master ( dc5510...4d2223 )
by CodexShaper
06:27
created
src/Commands/InstallDatabaseManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @var string
28 28
      */
29
-    protected $seedersPath = __DIR__ . '/../../database/seeds/';
29
+    protected $seedersPath = __DIR__.'/../../database/seeds/';
30 30
 
31 31
     /**
32 32
      * Get Option
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
      */
48 48
     protected function findComposer()
49 49
     {
50
-        if (file_exists(getcwd() . '/composer.phar')) {
51
-            return '"' . PHP_BINARY . '" ' . getcwd() . '/composer.phar';
50
+        if (file_exists(getcwd().'/composer.phar')) {
51
+            return '"'.PHP_BINARY.'" '.getcwd().'/composer.phar';
52 52
         }
53 53
         return 'composer';
54 54
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $this->info('Dumping the autoloaded files and reloading all new files');
76 76
         $composer = $this->findComposer();
77
-        $process  = new Process($composer . ' dump-autoload');
77
+        $process  = new Process($composer.' dump-autoload');
78 78
         $process->setTimeout(null); // Setting timeout to null to prevent installation from stopping at a certain point in time
79 79
         $process->setWorkingDirectory(base_path())->run();
80 80
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $this->info('Seeding...');
99 99
         // Seeding Dummy Data
100 100
         $class = 'DatabaseManagerSeeder';
101
-        $file  = $this->seedersPath . $class . '.php';
101
+        $file  = $this->seedersPath.$class.'.php';
102 102
         if (file_exists($file) && !class_exists($class)) {
103 103
             require_once $file;
104 104
         }
Please login to merge, or discard this patch.
src/Database/Types/Postgresql/SmallIntType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
 
22 22
         $type = $fieldDeclaration['autoincrement'] ? 'smallserial' : 'smallint';
23 23
 
24
-        return $type . $commonIntegerTypeDeclaration;
24
+        return $type.$commonIntegerTypeDeclaration;
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Database/Types/Mysql/SetType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
         $pdo = DB::connection()->getPdo();
25 25
 
26 26
         // trim the values
27
-        $fieldDeclaration['allowed'] = array_map(function ($value) use ($pdo) {
27
+        $fieldDeclaration['allowed'] = array_map(function($value) use ($pdo) {
28 28
             return $pdo->quote(trim($value));
29 29
         }, $allowed);
30 30
 
31
-        return 'set(' . implode(', ', $fieldDeclaration['allowed']) . ')';
31
+        return 'set('.implode(', ', $fieldDeclaration['allowed']).')';
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Database/Types/Type.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@
 block discarded – undo
54 54
      */
55 55
     protected static function getCustomTypes($platformName)
56 56
     {
57
-        $customPlatformDir = __DIR__ . DIRECTORY_SEPARATOR . $platformName . DIRECTORY_SEPARATOR;
57
+        $customPlatformDir = __DIR__.DIRECTORY_SEPARATOR.$platformName.DIRECTORY_SEPARATOR;
58 58
 
59 59
         $customTypes = [];
60 60
 
61
-        foreach (glob($customPlatformDir . '*.php') as $file) {
61
+        foreach (glob($customPlatformDir.'*.php') as $file) {
62 62
             $className     = basename($file, ".php");
63
-            $customTypes[] = __NAMESPACE__ . '\\' . $platformName . '\\' . $className;
63
+            $customTypes[] = __NAMESPACE__.'\\'.$platformName.'\\'.$className;
64 64
         }
65 65
 
66 66
         return $customTypes;
Please login to merge, or discard this patch.
src/Database/Drivers/MongoDB.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getNamespace($databaseName, $collectionName)
73 73
     {
74
-        return $databaseName . '.' . $collectionName;
74
+        return $databaseName.'.'.$collectionName;
75 75
     }
76 76
     /**
77 77
      * Get the all collections.
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         $oldName        = $collection['oldName'];
153 153
         $collectionName = $oldName;
154 154
         $connection     = config('database.default');
155
-        $database       = config('database.connections.' . $connection . ".database");
155
+        $database       = config('database.connections.'.$connection.".database");
156 156
         $fromNs         = $this->getNamespace($database, $oldName);
157 157
         $toNs           = $this->getNamespace($database, $newName);
158 158
 
Please login to merge, or discard this patch.
src/Database/Schema/Table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -151,10 +151,10 @@  discard block
 block discarded – undo
151 151
 
152 152
         Type::registerCustomTypes();
153 153
 
154
-        $conn = 'database.connections.' . config('database.default');
154
+        $conn = 'database.connections.'.config('database.default');
155 155
 
156
-        $table['options']['collate'] = config($conn . '.collation', 'utf8mb4_unicode_ci');
157
-        $table['options']['charset'] = config($conn . '.charset', 'utf8mb4');
156
+        $table['options']['collate'] = config($conn.'.collation', 'utf8mb4_unicode_ci');
157
+        $table['options']['charset'] = config($conn.'.charset', 'utf8mb4');
158 158
 
159 159
         $tableName   = $table['name'];
160 160
         $columns     = $table['columns'];
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         $items           = static::all();
278 278
         $collection      = $items instanceof Collection ? $items : Collection::make($items);
279 279
         if (!empty($query)) {
280
-            $collection = $collection->filter(function ($value, $key) use ($query) {
280
+            $collection = $collection->filter(function($value, $key) use ($query) {
281 281
                 return false !== stristr($value, $query);
282 282
             });
283 283
         }
Please login to merge, or discard this patch.
src/Database/Schema/Index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@
 block discarded – undo
68 68
      */
69 69
     public static function createName($columns, $type, $table = null)
70 70
     {
71
-        $table = isset($table) ? trim($table) . '_' : '';
71
+        $table = isset($table) ? trim($table).'_' : '';
72 72
         $type  = trim($type);
73
-        $name  = strtolower($table . implode('_', $columns) . '_' . $type);
73
+        $name  = strtolower($table.implode('_', $columns).'_'.$type);
74 74
 
75 75
         return str_replace(['-', '.'], '_', $name);
76 76
     }
Please login to merge, or discard this patch.
src/Database/Platforms/Platform.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public static function getPlatform($platformName)
19 19
     {
20
-        $platform = __NAMESPACE__ . '\\' . ucfirst($platformName);
20
+        $platform = __NAMESPACE__.'\\'.ucfirst($platformName);
21 21
 
22 22
         if (!class_exists($platform)) {
23 23
             throw new \Exception("Platform {$platformName} doesn't exist");
Please login to merge, or discard this patch.
src/ManagerServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function boot()
31 31
     {
32
-        $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
33
-        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'dbm');
32
+        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
33
+        $this->loadViewsFrom(__DIR__.'/../resources/views', 'dbm');
34 34
     }
35 35
 
36 36
     /**
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $database = $this->app->config['database'];
44 44
         // Bind Dumper to backup and and restore
45
-        $this->app->bind(Dumper::class, function ($app) use ($database) {
45
+        $this->app->bind(Dumper::class, function($app) use ($database) {
46 46
             $connection = $database['default'];
47 47
             $options    = [
48 48
                 "host"     => $database["connections"][$connection]["host"] ?? '',
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         }
88 88
 
89 89
         $this->mergeConfigFrom(
90
-            __DIR__ . '/../config/dbm.php', 'config'
90
+            __DIR__.'/../config/dbm.php', 'config'
91 91
         );
92 92
         $this->loadHelpers();
93 93
         $this->registerPublish();
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     protected function loadHelpers()
103 103
     {
104
-        foreach (glob(__DIR__ . '/Helpers/*.php') as $filename) {
104
+        foreach (glob(__DIR__.'/Helpers/*.php') as $filename) {
105 105
             require_once $filename;
106 106
         }
107 107
     }
@@ -115,16 +115,16 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $publishable = [
117 117
             'dbm.config'    => [
118
-                __DIR__ . '/../config/dbm.php' => config_path('dbm.php'),
118
+                __DIR__.'/../config/dbm.php' => config_path('dbm.php'),
119 119
             ],
120 120
             'dbm.seeds'     => [
121
-                __DIR__ . "/../database/seeds/" => database_path('seeds'),
121
+                __DIR__."/../database/seeds/" => database_path('seeds'),
122 122
             ],
123 123
             'dbm.views'     => [
124
-                __DIR__ . '/../resources/views' => resource_path('views/vendor/dbm/views'),
124
+                __DIR__.'/../resources/views' => resource_path('views/vendor/dbm/views'),
125 125
             ],
126 126
             'dbm.resources' => [
127
-                __DIR__ . '/../resources' => resource_path('views/vendor/dbm'),
127
+                __DIR__.'/../resources' => resource_path('views/vendor/dbm'),
128 128
             ],
129 129
         ];
130 130
 
Please login to merge, or discard this patch.