Test Failed
Push — master ( e4d848...a788a1 )
by Php Easy Api
03:30
created
src/resta/Worker/SupervisorJob.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -85,15 +85,15 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $list = [];
87 87
 
88
-        $status = array_filter(explode("\n",$this->process->command(config('supervisor.commands.workers'))),'strlen');
88
+        $status = array_filter(explode("\n", $this->process->command(config('supervisor.commands.workers'))), 'strlen');
89 89
 
90
-        foreach ($status as $item){
91
-            if(preg_match('@'.$this->app->get('PROJECT_NAME').'.*@is',$item,$array)){
90
+        foreach ($status as $item) {
91
+            if (preg_match('@'.$this->app->get('PROJECT_NAME').'.*@is', $item, $array)) {
92 92
                 $list[] = $item;
93 93
             }
94 94
         }
95 95
 
96
-        return implode(PHP_EOL,$list).''.PHP_EOL;
96
+        return implode(PHP_EOL, $list).''.PHP_EOL;
97 97
     }
98 98
 
99 99
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $supervisorStatus = $this->process->command(config('supervisor.commands.status'));
107 107
 
108
-        if(false===$supervisorStatus){
108
+        if (false===$supervisorStatus) {
109 109
             $this->upSupervisor();
110 110
         }
111 111
         return $this->process->command(config('supervisor.commands.status'));
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
     {
161 161
         $path = config('supervisor.path').'/'.$this->app->get('WORKER').'.conf';
162 162
 
163
-        if(files()->exists($path)===false){
164
-            files()->put($path,'
163
+        if (files()->exists($path)===false) {
164
+            files()->put($path, '
165 165
 [group:'.$this->app->get('PROJECT_NAME').']
166 166
 [program:'.$this->app()->get('WORKER').']
167 167
 process_name=%(program_name)s_%(process_num)02d
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/GrammarStructure/Mysql/QueryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * @param $schema
29 29
      * @param $object
30 30
      */
31
-    public function __construct($schema,$table,$object)
31
+    public function __construct($schema, $table, $object)
32 32
     {
33 33
         $this->schema   = $schema;
34 34
         $this->table    = $table;
Please login to merge, or discard this patch.
Database/Migration/Src/GrammarStructure/Mysql/Wizard/IndexProperties.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param $index_name
22 22
      * @param $wizard
23 23
      */
24
-    public function __construct($index_name,$wizard)
24
+    public function __construct($index_name, $wizard)
25 25
     {
26 26
         $this->wizard       = $wizard;
27 27
         $this->index_name   = $index_name;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function fulltext()
34 34
     {
35
-        $this->wizard->updateIndexesForSpecialist($this->index_name,__FUNCTION__);
35
+        $this->wizard->updateIndexesForSpecialist($this->index_name, __FUNCTION__);
36 36
     }
37 37
 
38 38
     /**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function unique()
42 42
     {
43
-        $this->wizard->updateIndexesForSpecialist($this->index_name,__FUNCTION__);
43
+        $this->wizard->updateIndexesForSpecialist($this->index_name, __FUNCTION__);
44 44
     }
45 45
 
46 46
 }
Please login to merge, or discard this patch.
Database/Migration/Src/GrammarStructure/Mysql/Wizard/EngineProperties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function __construct($wizard)
18 18
     {
19
-        $this->wizard=$wizard;
19
+        $this->wizard = $wizard;
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/GrammarStructure/Mysql/Wizard/Types.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct($wizard)
19 19
     {
20
-       $this->wizard=$wizard;
20
+        $this->wizard=$wizard;
21 21
     }
22 22
 
23 23
     /**
Please login to merge, or discard this patch.
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function __construct($wizard)
19 19
     {
20
-       $this->wizard=$wizard;
20
+       $this->wizard = $wizard;
21 21
     }
22 22
 
23 23
     /**
24 24
      * @param null|string $value
25 25
      * @return WizardContract
26 26
      */
27
-    public function bigint($value=20)
27
+    public function bigint($value = 20)
28 28
     {
29
-        $this->wizard->setTypes(__FUNCTION__,$value);
29
+        $this->wizard->setTypes(__FUNCTION__, $value);
30 30
 
31 31
         return $this->wizard;
32 32
     }
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
      * @param null|string $value
36 36
      * @return WizardContract
37 37
      */
38
-    public function binary($value=null)
38
+    public function binary($value = null)
39 39
     {
40
-        $this->wizard->setTypes(__FUNCTION__,$value);
40
+        $this->wizard->setTypes(__FUNCTION__, $value);
41 41
 
42 42
         return $this->wizard;
43 43
     }
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
      * @param null|string $value
47 47
      * @return WizardContract
48 48
      */
49
-    public function bit($value=null)
49
+    public function bit($value = null)
50 50
     {
51
-        $this->wizard->setTypes(__FUNCTION__,$value);
51
+        $this->wizard->setTypes(__FUNCTION__, $value);
52 52
 
53 53
         return $this->wizard;
54 54
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function blob()
60 60
     {
61
-        $this->wizard->setTypes(__FUNCTION__,null);
61
+        $this->wizard->setTypes(__FUNCTION__, null);
62 62
 
63 63
         return $this->wizard;
64 64
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function char($value)
71 71
     {
72
-        $this->wizard->setTypes(__FUNCTION__,$value);
72
+        $this->wizard->setTypes(__FUNCTION__, $value);
73 73
 
74 74
         return $this->wizard;
75 75
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function date()
81 81
     {
82
-        $this->wizard->setTypes(__FUNCTION__,null);
82
+        $this->wizard->setTypes(__FUNCTION__, null);
83 83
 
84 84
         return $this->wizard;
85 85
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function dateTime()
91 91
     {
92
-        $this->wizard->setTypes(__FUNCTION__,null);
92
+        $this->wizard->setTypes(__FUNCTION__, null);
93 93
 
94 94
         return $this->wizard;
95 95
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function decimal()
101 101
     {
102
-        $this->wizard->setTypes(__FUNCTION__,null);
102
+        $this->wizard->setTypes(__FUNCTION__, null);
103 103
 
104 104
         return $this->wizard;
105 105
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function double()
111 111
     {
112
-        $this->wizard->setTypes(__FUNCTION__,null);
112
+        $this->wizard->setTypes(__FUNCTION__, null);
113 113
 
114 114
         return $this->wizard;
115 115
     }
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
      * @param $value
119 119
      * @return WizardContract
120 120
      */
121
-    public function enum($value=array())
121
+    public function enum($value = array())
122 122
     {
123
-        $this->wizard->setTypes(__FUNCTION__,$value,'enum');
123
+        $this->wizard->setTypes(__FUNCTION__, $value, 'enum');
124 124
 
125 125
         return $this->wizard;
126 126
     }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public function float()
132 132
     {
133
-        $this->wizard->setTypes(__FUNCTION__,null);
133
+        $this->wizard->setTypes(__FUNCTION__, null);
134 134
 
135 135
         return $this->wizard;
136 136
     }
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
      * @param int $value
140 140
      * @return WizardContract
141 141
      */
142
-    public function int($value=11)
142
+    public function int($value = 11)
143 143
     {
144
-        $this->wizard->setTypes(__FUNCTION__,$value);
144
+        $this->wizard->setTypes(__FUNCTION__, $value);
145 145
 
146 146
         return $this->wizard;
147 147
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function longtext()
153 153
     {
154
-        $this->wizard->setTypes(__FUNCTION__,null);
154
+        $this->wizard->setTypes(__FUNCTION__, null);
155 155
 
156 156
         return $this->wizard;
157 157
     }
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      */
162 162
     public function mediumtext()
163 163
     {
164
-        $this->wizard->setTypes(__FUNCTION__,null);
164
+        $this->wizard->setTypes(__FUNCTION__, null);
165 165
 
166 166
         return $this->wizard;
167 167
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function json()
174 174
     {
175
-        $this->wizard->setTypes(__FUNCTION__,null);
175
+        $this->wizard->setTypes(__FUNCTION__, null);
176 176
 
177 177
         return $this->wizard;
178 178
     }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function set($value)
185 185
     {
186
-        $this->wizard->setTypes(__FUNCTION__,$value);
186
+        $this->wizard->setTypes(__FUNCTION__, $value);
187 187
 
188 188
         return $this->wizard;
189 189
     }
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
      * @param null|string $value
193 193
      * @return WizardContract
194 194
      */
195
-    public function text($value=null)
195
+    public function text($value = null)
196 196
     {
197
-        $this->wizard->setTypes(__FUNCTION__,$value);
197
+        $this->wizard->setTypes(__FUNCTION__, $value);
198 198
 
199 199
         return $this->wizard;
200 200
     }
@@ -203,9 +203,9 @@  discard block
 block discarded – undo
203 203
      * @param null|string $value
204 204
      * @return WizardContract
205 205
      */
206
-    public function time($value=null)
206
+    public function time($value = null)
207 207
     {
208
-        $this->wizard->setTypes(__FUNCTION__,$value);
208
+        $this->wizard->setTypes(__FUNCTION__, $value);
209 209
 
210 210
         return $this->wizard;
211 211
     }
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
      * @param mixed $value
215 215
      * @return WizardContract
216 216
      */
217
-    public function mediumint($value=8)
217
+    public function mediumint($value = 8)
218 218
     {
219
-        $this->wizard->setTypes(__FUNCTION__,$value);
219
+        $this->wizard->setTypes(__FUNCTION__, $value);
220 220
 
221 221
         return $this->wizard;
222 222
     }
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
      * @param mixed $value
226 226
      * @return WizardContract
227 227
      */
228
-    public function mediumblob($value=null)
228
+    public function mediumblob($value = null)
229 229
     {
230
-        $this->wizard->setTypes(__FUNCTION__,$value);
230
+        $this->wizard->setTypes(__FUNCTION__, $value);
231 231
 
232 232
         return $this->wizard;
233 233
     }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function timestamp()
240 240
     {
241
-        $this->wizard->setTypes(__FUNCTION__,null);
241
+        $this->wizard->setTypes(__FUNCTION__, null);
242 242
 
243 243
         return $this->wizard;
244 244
     }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     public function real()
250 250
     {
251
-        $this->wizard->setTypes(__FUNCTION__,null);
251
+        $this->wizard->setTypes(__FUNCTION__, null);
252 252
 
253 253
         return $this->wizard;
254 254
     }
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
      * @param mixed $value
258 258
      * @return WizardContract
259 259
      */
260
-    public function smallint($value=5)
260
+    public function smallint($value = 5)
261 261
     {
262
-        $this->wizard->setTypes(__FUNCTION__,$value);
262
+        $this->wizard->setTypes(__FUNCTION__, $value);
263 263
 
264 264
         return $this->wizard;
265 265
     }
@@ -268,9 +268,9 @@  discard block
 block discarded – undo
268 268
      * @param mixed $value
269 269
      * @return WizardContract
270 270
      */
271
-    public function tinyint($value=3)
271
+    public function tinyint($value = 3)
272 272
     {
273
-        $this->wizard->setTypes(__FUNCTION__,$value);
273
+        $this->wizard->setTypes(__FUNCTION__, $value);
274 274
 
275 275
         return $this->wizard;
276 276
     }
@@ -279,9 +279,9 @@  discard block
 block discarded – undo
279 279
      * @param null|string $value
280 280
      * @return WizardContract
281 281
      */
282
-    public function tinytext($value=null)
282
+    public function tinytext($value = null)
283 283
     {
284
-        $this->wizard->setTypes(__FUNCTION__,$value);
284
+        $this->wizard->setTypes(__FUNCTION__, $value);
285 285
 
286 286
         return $this->wizard;
287 287
     }
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      */
293 293
     public function varchar($value)
294 294
     {
295
-        $this->wizard->setTypes(__FUNCTION__,$value);
295
+        $this->wizard->setTypes(__FUNCTION__, $value);
296 296
 
297 297
         return $this->wizard;
298 298
     }
@@ -301,9 +301,9 @@  discard block
 block discarded – undo
301 301
      * @param null|string $value
302 302
      * @return WizardContract
303 303
      */
304
-    public function year($value=null)
304
+    public function year($value = null)
305 305
     {
306
-        $this->wizard->setTypes(__FUNCTION__,$value);
306
+        $this->wizard->setTypes(__FUNCTION__, $value);
307 307
 
308 308
         return $this->wizard;
309 309
     }
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/GrammarStructure/Mysql/Wizard/Wizard.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,8 +161,7 @@
 block discarded – undo
161 161
         if($table===false)
162 162
         {
163 163
             $this->collation[$this->getLastName()]=$value;
164
-        }
165
-        else{
164
+        } else{
166 165
             $this->collation['table']=$value;
167 166
         }
168 167
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
     public function name($name)
132 132
     {
133 133
         if(in_array($name,$this->name)){
134
-           $this->setError('You have written the '.$name.' name more than 1.');
134
+            $this->setError('You have written the '.$name.' name more than 1.');
135 135
         }
136 136
 
137 137
         $this->name[] = $name;
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @var array
32 32
      */
33
-    protected $auto_increment=array();
33
+    protected $auto_increment = array();
34 34
 
35 35
     /**
36 36
      * @var $collation
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @var array $primaryKey
47 47
      */
48
-    protected $primaryKey=array();
48
+    protected $primaryKey = array();
49 49
 
50 50
     /**
51 51
      * @var array $references
52 52
      */
53
-    protected $references=array();
53
+    protected $references = array();
54 54
 
55 55
     /**
56 56
      * @var $schemaType
@@ -65,17 +65,17 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * @var $name array
67 67
      */
68
-    protected $name=array();
68
+    protected $name = array();
69 69
 
70 70
     /**
71 71
      * @var array $nullable
72 72
      */
73
-    protected $nullable=array();
73
+    protected $nullable = array();
74 74
 
75 75
     /**
76 76
      * @var array $types
77 77
      */
78
-    protected $types=array();
78
+    protected $types = array();
79 79
 
80 80
     /**
81 81
      * @var $engine
@@ -85,22 +85,22 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * @var $default array
87 87
      */
88
-    protected $default=array();
88
+    protected $default = array();
89 89
 
90 90
     /**
91 91
      * @var array $index
92 92
      */
93
-    protected $index=array();
93
+    protected $index = array();
94 94
 
95 95
     /**
96 96
      * @var array
97 97
      */
98
-    protected $key=array();
98
+    protected $key = array();
99 99
 
100 100
     /**
101 101
      * @var array $unique
102 102
      */
103
-    protected $unique=array();
103
+    protected $unique = array();
104 104
 
105 105
     /**
106 106
      * @var $table
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function auto_increment()
114 114
     {
115
-        if(count($this->auto_increment)==0){
115
+        if (count($this->auto_increment)==0) {
116 116
 
117
-            if($this->getLastName()===false){
118
-                $this->name[]='id';
119
-                $this->setTypes('int',14);
117
+            if ($this->getLastName()===false) {
118
+                $this->name[] = 'id';
119
+                $this->setTypes('int', 14);
120 120
             }
121
-            $this->auto_increment[$this->getLastName()]=true;
121
+            $this->auto_increment[$this->getLastName()] = true;
122 122
             $this->primaryKey();
123 123
         }
124 124
     }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function comment($value)
131 131
     {
132
-        $this->comment[$this->getLastName()]=$value;
132
+        $this->comment[$this->getLastName()] = $value;
133 133
 
134 134
         return $this;
135 135
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function name($name)
142 142
     {
143
-        if(in_array($name,$this->name)){
143
+        if (in_array($name, $this->name)) {
144 144
            $this->setError('You have written the '.$name.' name more than 1.');
145 145
         }
146 146
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function default($value)
158 158
     {
159
-        $this->default[$this->getLastName()]=$value;
159
+        $this->default[$this->getLastName()] = $value;
160 160
 
161 161
         return $this;
162 162
     }
@@ -166,14 +166,14 @@  discard block
 block discarded – undo
166 166
      * @param bool $table
167 167
      * @return $this
168 168
      */
169
-    public function collation($value,$table=false)
169
+    public function collation($value, $table = false)
170 170
     {
171
-        if($table===false)
171
+        if ($table===false)
172 172
         {
173
-            $this->collation[$this->getLastName()]=$value;
173
+            $this->collation[$this->getLastName()] = $value;
174 174
         }
175
-        else{
176
-            $this->collation['table']=$value;
175
+        else {
176
+            $this->collation['table'] = $value;
177 177
         }
178 178
 
179 179
         return $this;
@@ -185,17 +185,17 @@  discard block
 block discarded – undo
185 185
      * @param bool $key
186 186
      * @return $this|WizardContract
187 187
      */
188
-    public function index($name=null,$value=null,$key=false)
188
+    public function index($name = null, $value = null, $key = false)
189 189
     {
190 190
         $name   = ($name===null) ? $this->getLastName() : $name;
191 191
         $value  = ($value===null) ? $name : $value;
192 192
 
193
-        if($key===false){
194
-            $this->index[$this->getLastName()]=['name'=>$name,'value'=>$value];
193
+        if ($key===false) {
194
+            $this->index[$this->getLastName()] = ['name'=>$name, 'value'=>$value];
195 195
         }
196 196
 
197
-        if($key===true){
198
-            $this->index['indexes'][]=['name'=>$name,'value'=>$value];
197
+        if ($key===true) {
198
+            $this->index['indexes'][] = ['name'=>$name, 'value'=>$value];
199 199
         }
200 200
 
201 201
         return $this;
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * @param array $indexes
207 207
      * @return void
208 208
      */
209
-    public function indexes($index_name,$indexes=array())
209
+    public function indexes($index_name, $indexes = array())
210 210
     {
211 211
         $this->index[$index_name] = $indexes;
212 212
     }
@@ -223,9 +223,9 @@  discard block
 block discarded – undo
223 223
      * @param bool $null
224 224
      * @return $this
225 225
      */
226
-    public function nullable($null=true)
226
+    public function nullable($null = true)
227 227
     {
228
-        $this->nullable[$this->getLastName()]=$null;
228
+        $this->nullable[$this->getLastName()] = $null;
229 229
 
230 230
         return $this;
231 231
     }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      */
236 236
     public function primaryKey()
237 237
     {
238
-        $this->primaryKey[$this->getLastName()]=true;
238
+        $this->primaryKey[$this->getLastName()] = true;
239 239
 
240 240
         return $this;
241 241
     }
@@ -253,12 +253,12 @@  discard block
 block discarded – undo
253 253
      * @param null $value
254 254
      * @return $this|mixed
255 255
      */
256
-    public function unique($name=null,$value=null)
256
+    public function unique($name = null, $value = null)
257 257
     {
258 258
         $name   = ($name===null) ? $this->getLastName() : $name;
259 259
         $value  = ($value===null) ? $name : $value;
260 260
 
261
-        $this->unique[$this->getLastName()] = ['name'=>$name,'value'=>$value];
261
+        $this->unique[$this->getLastName()] = ['name'=>$name, 'value'=>$value];
262 262
 
263 263
         return $this;
264 264
     }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      * @param null $value
269 269
      * @return $this|mixed
270 270
      */
271
-    public function uniques($unique_name,$uniques=array())
271
+    public function uniques($unique_name, $uniques = array())
272 272
     {
273 273
         $this->unique[$unique_name] = $uniques;
274 274
     }
Please login to merge, or discard this patch.
Database/Migration/Src/GrammarStructure/Mysql/Wizard/Foreign/Foreign.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function __construct($wizard)
26 26
     {
27
-        $this->wizard=$wizard;
27
+        $this->wizard = $wizard;
28 28
     }
29 29
 
30 30
     /**
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function constraint($constraint)
35 35
     {
36
-        $this->constraint=$constraint;
36
+        $this->constraint = $constraint;
37 37
         return $this;
38 38
     }
39 39
 
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 
48 48
         $table = $this->wizard->getTable();
49 49
 
50
-        $this->wizard->setReferences($constraint,'key',$key);
50
+        $this->wizard->setReferences($constraint, 'key', $key);
51 51
 
52
-        return new References($this->wizard,$constraint);
52
+        return new References($this->wizard, $constraint);
53 53
     }
54 54
 
55 55
 
Please login to merge, or discard this patch.
Database/Migration/Src/GrammarStructure/Mysql/Wizard/Foreign/References.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
      * @param $wizard
22 22
      * @param $constraint
23 23
      */
24
-    public function __construct($wizard,$constraint)
24
+    public function __construct($wizard, $constraint)
25 25
     {
26
-        $this->wizard=$wizard;
27
-        $this->constraint=$constraint;
26
+        $this->wizard = $wizard;
27
+        $this->constraint = $constraint;
28 28
     }
29 29
 
30 30
     /**
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function references($table, $field = 'id')
36 36
     {
37
-        $this->wizard->setReferences($this->constraint,'references',
37
+        $this->wizard->setReferences($this->constraint, 'references',
38 38
             [
39 39
                 'table'=>$table,
40 40
                 'field'=>$field
41 41
             ]);
42 42
 
43
-        return new Options($this->wizard,$this->constraint);
43
+        return new Options($this->wizard, $this->constraint);
44 44
     }
45 45
 }
46 46
\ No newline at end of file
Please login to merge, or discard this patch.
Migration/Src/GrammarStructure/Mysql/Wizard/Foreign/OptionsProperties.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
      * @param $wizard
22 22
      * @param $constraint
23 23
      */
24
-    public function __construct($wizard,$constraint)
24
+    public function __construct($wizard, $constraint)
25 25
     {
26
-        $this->wizard=$wizard;
27
-        $this->constraint=$constraint;
26
+        $this->wizard = $wizard;
27
+        $this->constraint = $constraint;
28 28
     }
29 29
 
30 30
     /**
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function cascade()
34 34
     {
35
-        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
35
+        $this->wizard->setReferences($this->constraint, 'onOption', __FUNCTION__);
36 36
     }
37 37
 
38 38
     /**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function noAction()
42 42
     {
43
-        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
43
+        $this->wizard->setReferences($this->constraint, 'onOption', __FUNCTION__);
44 44
     }
45 45
 
46 46
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function restrict()
50 50
     {
51
-        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
51
+        $this->wizard->setReferences($this->constraint, 'onOption', __FUNCTION__);
52 52
     }
53 53
 
54 54
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function setDefault()
58 58
     {
59
-        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
59
+        $this->wizard->setReferences($this->constraint, 'onOption', __FUNCTION__);
60 60
     }
61 61
 
62 62
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function setNull()
66 66
     {
67
-        $this->wizard->setReferences($this->constraint,'onOption',__FUNCTION__);
67
+        $this->wizard->setReferences($this->constraint, 'onOption', __FUNCTION__);
68 68
     }
69 69
 
70 70
 
Please login to merge, or discard this patch.