Completed
Push — master ( 3fa4d0...3f005a )
by Tõnis
02:22
created
src/DActiveRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public static function primaryKeySingle()
19 19
     {
20 20
         if (count(self::primaryKey()) === 1) {
21
-            return static::tableName() . "_id";
21
+            return static::tableName()."_id";
22 22
         }
23 23
         throw new NotSupportedException('Not supported for multi-column primary keys');
24 24
     }
Please login to merge, or discard this patch.
src/ManyToManyModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $parent = static::$parentClass;
40 40
         /** @var DActiveRecord $child */
41 41
         $child = static::$childClass;
42
-        return $parent::tableName() . '_' . $child::tableName() . "_id";
42
+        return $parent::tableName().'_'.$child::tableName()."_id";
43 43
     }
44 44
 
45 45
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
         parent::init();
52 52
         if (is_null($this->parentModel) or is_null($this->childModel)) {
53
-            throw new InvalidConfigException('Parent & Child class name must be defined for ' . static::class);
53
+            throw new InvalidConfigException('Parent & Child class name must be defined for '.static::class);
54 54
         }
55 55
     }
56 56
 
Please login to merge, or discard this patch.
src/models/QuestionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     public function getFieldType()
68 68
     {
69 69
         if ($this->isDouble) {
70
-            return "decimal(" . Field::DEFAULT_DOUBLE_LENGTH . "," . Field::DEFAULT_DOUBLE_DECIMALS . ")";
70
+            return "decimal(".Field::DEFAULT_DOUBLE_LENGTH.",".Field::DEFAULT_DOUBLE_DECIMALS.")";
71 71
         }
72 72
 
73 73
         if ($this->isText) {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         }
87 87
 
88 88
 
89
-        return "string(" . Field::DEFAULT_STRING_LENGTH . ")";
89
+        return "string(".Field::DEFAULT_STRING_LENGTH.")";
90 90
     }
91 91
 
92 92
 
Please login to merge, or discard this patch.
src/models/Field.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 return "integer";
122 122
                 break;
123 123
             case self::SYSFIELD_TOKEN:
124
-                return "string(36) " . $this->tokenFieldCollation;
124
+                return "string(36) ".$this->tokenFieldCollation;
125 125
                 break;
126 126
             case self::SYSFIELD_REFURL:
127 127
                 return "text";
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         if ($driverName == 'sqlsrv' || $driverName == 'dblib' || $driverName == 'mssql') {
164 164
             return " COLLATE SQL_Latin1_General_CP1_CS_AS";
165 165
         }
166
-        throw new \Exception('Unsupported database engine ' . $driverName);
166
+        throw new \Exception('Unsupported database engine '.$driverName);
167 167
     }
168 168
 
169 169
 
Please login to merge, or discard this patch.