Passed
Push — master ( 2b87fc...57a705 )
by Tõnis
02:14
created
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/DActiveRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public static function primaryKeySingle()
25 25
     {
26 26
         if (count(static::primaryKey()) === 1) {
27
-            return static::tableName() . "_id";
27
+            return static::tableName()."_id";
28 28
         }
29 29
         throw new NotSupportedException('Not supported for multi-column primary keys');
30 30
     }
Please login to merge, or discard this patch.
src/TypeModel.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 
6 6
 /**
7 7
  * Class StaticModel
8
-
9 8
  * @package dameter\abstracts
10 9
  * @author Tõnis Ormisson <[email protected]>
11 10
  */
Please login to merge, or discard this patch.
src/messages/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     // string, required, root directory of all source files
5
-    'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..',
5
+    'sourcePath' => __DIR__.DIRECTORY_SEPARATOR.'..',
6 6
     'languages' => ['et'],
7 7
     'translator' => 'Yii::t',
8 8
     'sort' => false,
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
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 return "integer";
112 112
                 break;
113 113
             case self::SYSFIELD_TOKEN:
114
-                return "string(36) " . $this->tokenFieldCollation;
114
+                return "string(36) ".$this->tokenFieldCollation;
115 115
                 break;
116 116
             case self::SYSFIELD_REFURL:
117 117
                 return "text";
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         if ($driverName == 'sqlsrv' || $driverName == 'dblib' || $driverName == 'mssql') {
154 154
             return " COLLATE 'SQL_Latin1_General_CP1_CS_AS'";
155 155
         }
156
-        throw new \Exception('Unsupported database engine ' . $driverName);
156
+        throw new \Exception('Unsupported database engine '.$driverName);
157 157
     }
158 158
 
159 159
     /**
Please login to merge, or discard this patch.