GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Setup Failed
Push — master ( 0a3234...a5f468 )
by Albert
02:18
created
src/DbExporter/DbMigrations.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $schema = $this->compile();
46 46
         $filename = date('Y_m_d_His') . "_create_" . $this->database . "_database.php";
47
-        static::$filePath = Config::get('db-exporter.export_path.migrations')."{$filename}";
47
+        static::$filePath = Config::get('db-exporter.export_path.migrations') . "{$filename}";
48 48
 
49 49
         file_put_contents(static::$filePath, $schema);
50 50
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 $numbers = "";
87 87
                 $nullable = $values->Null == "NO" ? "" : "->nullable()";
88 88
                 $default = empty($values->Default) ? "" : "->default(\"{$values->Default}\")";
89
-                $unsigned = strpos($values->Type, "unsigned") === false ? '': '->unsigned()';
89
+                $unsigned = strpos($values->Type, "unsigned") === false ? '' : '->unsigned()';
90 90
 
91 91
                 switch ($type) {
92 92
                     case 'int':
@@ -158,9 +158,9 @@  discard block
 block discarded – undo
158 158
             }
159 159
 
160 160
             $tableIndexes = $this->getTableIndexes($value['table_name']);
161
-            if (!is_null($tableIndexes) && count($tableIndexes)){
161
+            if (!is_null($tableIndexes) && count($tableIndexes)) {
162 162
             	foreach ($tableIndexes as $index) {
163
-                    if(Str::endsWith($index['Key_name'], '_index'))
163
+                    if (Str::endsWith($index['Key_name'], '_index'))
164 164
                 	   $up .= '                $' . "table->index('" . $index['Key_name'] . "');\n";
165 165
                     }
166 166
             	}
@@ -171,14 +171,14 @@  discard block
 block discarded – undo
171 171
             * @var array $tableConstraints 
172 172
             */
173 173
             $tableConstraints = $this->getTableConstraints($value['table_name']);
174
-            if (!is_null($tableConstraints) && count($tableConstraints)){
174
+            if (!is_null($tableConstraints) && count($tableConstraints)) {
175 175
             $Constraint = $ConstraintDown = "
176 176
             Schema::table('{$value['table_name']}', function(Blueprint $" . "table) {\n";
177 177
             $tables = [];
178 178
                 foreach ($tableConstraints as $foreign) {
179
-                    if(!in_array($foreign->Field, $tables)){
180
-                        $ConstraintDown .= '                $' . "table->dropForeign('" . $foreign->Field. "');\n";
181
-                        $Constraint .= '                $' . "table->foreign('" . $foreign->Field. "')->references('" . $foreign->References . "')->on('" . $foreign->ON. "')->onDelete('" . $foreign->onDelete. "');\n";
179
+                    if (!in_array($foreign->Field, $tables)) {
180
+                        $ConstraintDown .= '                $' . "table->dropForeign('" . $foreign->Field . "');\n";
181
+                        $Constraint .= '                $' . "table->foreign('" . $foreign->Field . "')->references('" . $foreign->References . "')->on('" . $foreign->ON . "')->onDelete('" . $foreign->onDelete . "');\n";
182 182
                         $tables[$foreign->Field] = $foreign->Field;
183 183
                     }
184 184
                 }
@@ -220,9 +220,9 @@  discard block
 block discarded – undo
220 220
 	     * Table: {$name}
221 221
 	     */
222 222
 	    {$values['up']}";
223
-                $upConstraint.="
223
+                $upConstraint .= "
224 224
                 {$values['constraint']}";
225
-                 $downConstraint.="
225
+                 $downConstraint .= "
226 226
                 {$values['constraint_down']}";
227 227
 
228 228
 	            $downSchema .= "
Please login to merge, or discard this patch.