@@ -90,7 +90,7 @@ |
||
| 90 | 90 | break; |
| 91 | 91 | default: |
| 92 | 92 | throw new EntityException( |
| 93 | - "Undefined field format '" . static::FIELD_FORMAT . "'" |
|
| 93 | + "Undefined field format '".static::FIELD_FORMAT."'" |
|
| 94 | 94 | ); |
| 95 | 95 | } |
| 96 | 96 | |
@@ -61,14 +61,14 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public function getSchema($database, $table) |
| 63 | 63 | { |
| 64 | - if (!isset($this->schemas[$database . '.' . $table])) { |
|
| 64 | + if (!isset($this->schemas[$database.'.'.$table])) { |
|
| 65 | 65 | $schema = $this->getTable($database, $table)->getSchema(); |
| 66 | 66 | |
| 67 | 67 | //We have to declare existed to prevent dropping existed schema |
| 68 | - $this->schemas[$database . '.' . $table] = $schema->declareExisted(); |
|
| 68 | + $this->schemas[$database.'.'.$table] = $schema->declareExisted(); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - return $this->schemas[$database . '.' . $table]; |
|
| 71 | + return $this->schemas[$database.'.'.$table]; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | ]); |
| 188 | 188 | |
| 189 | 189 | return $this->files->normalizePath( |
| 190 | - $this->config->getDirectory() . FilesInterface::SEPARATOR . $filename |
|
| 190 | + $this->config->getDirectory().FilesInterface::SEPARATOR.$filename |
|
| 191 | 191 | ); |
| 192 | 192 | } |
| 193 | 193 | } |
| 194 | 194 | \ No newline at end of file |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | ); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - if ($this->foreignTable != $this->table && !$outerSchema->hasColumn($this->foreignKey)) { |
|
| 87 | + if ($this->foreignTable != $this->table && !$outerSchema->hasColumn($this->foreignKey)) { |
|
| 88 | 88 | throw new ReferenceException( |
| 89 | 89 | "Unable to alter foreign key '{$schema->getName()}'.'{$this->column}'," |
| 90 | 90 | . " foreign column '{$this->foreignTable}'.'{$this->foreignKey}' does not exists" |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | //Executing migration inside global transaction |
| 125 | - $this->execute(function () use ($migration) { |
|
| 125 | + $this->execute(function() use ($migration) { |
|
| 126 | 126 | $migration->up(); |
| 127 | 127 | }); |
| 128 | 128 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | //Executing migration inside global transaction |
| 155 | - $this->execute(function () use ($migration) { |
|
| 155 | + $this->execute(function() use ($migration) { |
|
| 156 | 156 | $migration->down(); |
| 157 | 157 | }); |
| 158 | 158 | |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | */ |
| 104 | 104 | public function localeDirectory($locale) |
| 105 | 105 | { |
| 106 | - return $this->config['localesDirectory'] . $locale . '/'; |
|
| 106 | + return $this->config['localesDirectory'].$locale.'/'; |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
@@ -47,8 +47,8 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | //Delimiters between rows and sub-arrays. |
| 50 | - $subIndent = "\n" . str_repeat(self::INDENT, $level + 2); |
|
| 51 | - $keyIndent = "\n" . str_repeat(self::INDENT, $level + 1); |
|
| 50 | + $subIndent = "\n".str_repeat(self::INDENT, $level + 2); |
|
| 51 | + $keyIndent = "\n".str_repeat(self::INDENT, $level + 1); |
|
| 52 | 52 | |
| 53 | 53 | //No keys for associated array |
| 54 | 54 | $associated = array_diff_key($array, array_keys(array_keys($array))); |
@@ -70,28 +70,28 @@ discard block |
||
| 70 | 70 | var_export($key, true), |
| 71 | 71 | $innerIndent, ' ', |
| 72 | 72 | STR_PAD_RIGHT |
| 73 | - ) . " => "; |
|
| 73 | + )." => "; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | if (!is_array($value)) { |
| 77 | - $result[] = $prefix . $this->packValue($value); |
|
| 77 | + $result[] = $prefix.$this->packValue($value); |
|
| 78 | 78 | continue; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | if ($value === []) { |
| 82 | - $result[] = $prefix . "[]"; |
|
| 82 | + $result[] = $prefix."[]"; |
|
| 83 | 83 | continue; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | $subArray = $this->packArray($value, $level + 1); |
| 87 | - $result[] = $prefix . "[{$subIndent}" . $subArray . "{$keyIndent}]"; |
|
| 87 | + $result[] = $prefix."[{$subIndent}".$subArray."{$keyIndent}]"; |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | if ($level !== 0) { |
| 91 | 91 | return $result ? join(",{$keyIndent}", $result) : ""; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - return "[{$keyIndent}" . join(",{$keyIndent}", $result) . "\n]"; |
|
| 94 | + return "[{$keyIndent}".join(",{$keyIndent}", $result)."\n]"; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | if (is_string($value) && class_exists($value)) { |
| 124 | 124 | $reflection = new \ReflectionClass($value); |
| 125 | 125 | |
| 126 | - return '\\' . $reflection->getName() . '::class'; |
|
| 126 | + return '\\'.$reflection->getName().'::class'; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | return var_export($value, true); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function indent($string, $indent = 0) |
| 31 | 31 | { |
| 32 | - return str_repeat(self::INDENT, max($indent, 0)) . $string; |
|
| 32 | + return str_repeat(self::INDENT, max($indent, 0)).$string; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | $result = ''; |
| 203 | 203 | |
| 204 | 204 | foreach ($this->elements as $element) { |
| 205 | - $result .= $element->render($indentLevel) . "\n\n"; |
|
| 205 | + $result .= $element->render($indentLevel)."\n\n"; |
|
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | return rtrim($result, "\n"); |