Test Setup Failed
Push — master ( d6fde7...1e848b )
by Php Easy Api
04:20
created
src/resta/Database/Migration/Src/GrammarStructure/Mysql/QueryBase.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 class QueryBase implements QueryBaseContract
11 11
 {
12
-    use QueryStack,ColumnsProcess;
12
+    use QueryStack, ColumnsProcess;
13 13
 
14 14
     /**
15 15
      * @return mixed
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         $list = [];
30 30
 
31
-        foreach ($tables as $key=>$resource){
31
+        foreach ($tables as $key=>$resource) {
32 32
 
33 33
             $list[$key] = $resource[0];
34 34
         }
@@ -40,15 +40,15 @@  discard block
 block discarded – undo
40 40
      * @param array $tables
41 41
      * @return ColumnsProcessContract
42 42
      */
43
-    public function getColumns($tables=array())
43
+    public function getColumns($tables = array())
44 44
     {
45 45
         $tableList = (count($tables)) ? $tables : $this->getTables();
46 46
 
47 47
         $list = [];
48 48
 
49
-        foreach ($tableList as $table){
49
+        foreach ($tableList as $table) {
50 50
 
51
-            if(in_array($table,$this->getTables())){
51
+            if (in_array($table, $this->getTables())) {
52 52
                 $list[$table] = $this->showColumnsFrom($table);
53 53
             }
54 54
         }
Please login to merge, or discard this patch.
resta/Database/Migration/Src/GrammarStructure/Mysql/QuerySyntaxHelper.php 2 patches
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@  discard block
 block discarded – undo
10 10
      * @param $name
11 11
      * @return string
12 12
      */
13
-    protected function getNullableValue($nullable,$name)
13
+    protected function getNullableValue($nullable, $name)
14 14
     {
15
-        $nullableValue='';
15
+        $nullableValue = '';
16 16
 
17
-        if(isset($nullable[$name])){
18
-            if($nullable[$name]===false){
19
-                $nullableValue='NOT NULL';
17
+        if (isset($nullable[$name])) {
18
+            if ($nullable[$name]===false) {
19
+                $nullableValue = 'NOT NULL';
20 20
             }
21
-            else{
22
-                $nullableValue='NULL';
21
+            else {
22
+                $nullableValue = 'NULL';
23 23
             }
24 24
         }
25 25
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     protected function getValueWithIsset($name)
61 61
     {
62 62
         $list   = [];
63
-        $list[] = $this->getNullableValue($this->data['nullable'],$name);
63
+        $list[] = $this->getNullableValue($this->data['nullable'], $name);
64 64
         $list[] = (isset($this->data['autoIncrement'][$name])) ? 'AUTO_INCREMENT' : '';
65 65
         $list[] = (isset($this->data['primaryKey'][$name])) ? 'PRIMARY KEY' : '';
66 66
         $list[] = (isset($this->data['default'][$name])) ? ' DEFAULT "'.$this->data['default'][$name].'"' : '';
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     protected function getUniqueValueList($name)
78 78
     {
79 79
         //get unique
80
-        if(isset($this->data['unique'][$name])){
81
-            $this->data['uniqueValueList'][]      = 'UNIQUE INDEX '.$this->data['unique'][$name]['name'].' ('.$this->data['unique'][$name]['value'].' ASC)';
80
+        if (isset($this->data['unique'][$name])) {
81
+            $this->data['uniqueValueList'][] = 'UNIQUE INDEX '.$this->data['unique'][$name]['name'].' ('.$this->data['unique'][$name]['value'].' ASC)';
82 82
         }
83 83
     }
84 84
 
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
     protected function getIndexValueList($name)
89 89
     {
90 90
         //get index
91
-        if(isset($this->data['index'][$name])){
92
-            $this->data['indexValueList'][]  = 'INDEX '.$this->data['index'][$name]['name'].' ('.$this->data['index'][$name]['value'].')';
91
+        if (isset($this->data['index'][$name])) {
92
+            $this->data['indexValueList'][] = 'INDEX '.$this->data['index'][$name]['name'].' ('.$this->data['index'][$name]['value'].')';
93 93
         }
94 94
     }
95 95
 
@@ -110,19 +110,19 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function getCreateDefaultList()
112 112
     {
113
-        $list               = [];
113
+        $list = [];
114 114
 
115 115
         foreach ($this->data['names'] as $key=>$name)
116 116
         {
117 117
             list(
118
-                $nullableValue,$autoIncrementValue,
119
-                $primaryKeyValue,$defaultValue,$commentValue
118
+                $nullableValue, $autoIncrementValue,
119
+                $primaryKeyValue, $defaultValue, $commentValue
120 120
                 ) = $this->getValueWithIsset($name);
121 121
 
122 122
             //set index values
123 123
             $this->setIndex($name);
124 124
 
125
-            $list[]=''.$name.' '.$this->data['types'][$key].' '.$nullableValue.' '.$defaultValue.' '.$primaryKeyValue.' '.$autoIncrementValue.' '.$commentValue.'';
125
+            $list[] = ''.$name.' '.$this->data['types'][$key].' '.$nullableValue.' '.$defaultValue.' '.$primaryKeyValue.' '.$autoIncrementValue.' '.$commentValue.'';
126 126
         }
127 127
 
128 128
         return $list;
@@ -133,18 +133,18 @@  discard block
 block discarded – undo
133 133
      */
134 134
     protected function getKeyList()
135 135
     {
136
-        $keyList            = [];
136
+        $keyList = [];
137 137
 
138 138
         //multiple indexes
139
-        if(isset($this->data['index']['indexes'])){
139
+        if (isset($this->data['index']['indexes'])) {
140 140
 
141
-            foreach ($this->data['index']['indexes'] as $index_key=>$index_value){
141
+            foreach ($this->data['index']['indexes'] as $index_key=>$index_value) {
142 142
 
143 143
                 $indexesCommentValue = (isset($index_value['comment'])) ? 'COMMENT "'.$index_value['comment'].'"' : '';
144 144
 
145 145
                 $keyType    = (isset($index_value['type'])) ? ucfirst($index_value['type']) : 'KEY';
146 146
 
147
-                $keyList[]  = "".$keyType." ".$index_value['name']." (".implode(",",$index_value['value']).") ".$indexesCommentValue;
147
+                $keyList[]  = "".$keyType." ".$index_value['name']." (".implode(",", $index_value['value']).") ".$indexesCommentValue;
148 148
             }
149 149
         }
150 150
 
@@ -159,13 +159,13 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $list = [];
161 161
 
162
-        foreach ($reference as $constraint=>$values){
162
+        foreach ($reference as $constraint=>$values) {
163 163
 
164
-            $list[]=',CONSTRAINT '.$constraint.' FOREIGN KEY ('.$values['key'].') 
164
+            $list[] = ',CONSTRAINT '.$constraint.' FOREIGN KEY ('.$values['key'].') 
165 165
             REFERENCES '.$values['references']['table'].'('.$values['references']['field'].') '.$this->getOnProcess($values);
166 166
         }
167 167
 
168
-        return implode (" ",$list);
168
+        return implode(" ", $list);
169 169
     }
170 170
 
171 171
     /**
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     private function getOnProcess($referenceValue)
175 175
     {
176
-        if(isset($referenceValue['on']) && isset($referenceValue['onOption'])){
176
+        if (isset($referenceValue['on']) && isset($referenceValue['onOption'])) {
177 177
             return ''.$referenceValue['on'].' '.strtoupper($referenceValue['onOption']).'';
178 178
         }
179 179
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
         if(isset($nullable[$name])){
18 18
             if($nullable[$name]===false){
19 19
                 $nullableValue='NOT NULL';
20
-            }
21
-            else{
20
+            } else{
22 21
                 $nullableValue='NULL';
23 22
             }
24 23
         }
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/Resource/PullManager/Pulling.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,22 +15,22 @@
 block discarded – undo
15 15
      */
16 16
     public function get()
17 17
     {
18
-        BaseRequestProcess::$paths=$this->config['paths'];
18
+        BaseRequestProcess::$paths = $this->config['paths'];
19 19
 
20 20
         $allFiles = BaseRequestProcess::getAllFiles();
21 21
 
22
-        foreach ($allFiles as $table=>$files){
22
+        foreach ($allFiles as $table=>$files) {
23 23
 
24 24
             foreach ($files as $file) {
25 25
 
26
-                $className = str_replace(".php","",BaseRequestProcess::getFileName($file));
26
+                $className = str_replace(".php", "", BaseRequestProcess::getFileName($file));
27 27
                 $className = ucfirst($className);
28 28
 
29 29
                 $require = require_once ($file);
30 30
 
31 31
                 $up = new $className;
32 32
 
33
-                $capsule = new SchemaCapsule($this->config,$file);
33
+                $capsule = new SchemaCapsule($this->config, $file);
34 34
 
35 35
                 dd($up->up($capsule));
36 36
             }
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/Resource/PushManager/PushingProcess.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,19 +13,19 @@  discard block
 block discarded – undo
13 13
     {
14 14
         $results = [];
15 15
 
16
-        return $this->errorHandler(function(){
16
+        return $this->errorHandler(function() {
17 17
             
18
-            foreach ($this->list as $table =>$datas){
18
+            foreach ($this->list as $table =>$datas) {
19 19
 
20
-                foreach ($datas as $data){
20
+                foreach ($datas as $data) {
21 21
 
22 22
                     $queryBuilder = $this->schema->getGrammarPath().'\QueryBuilder';
23 23
 
24
-                    $query = (new $queryBuilder($this->schema,$table,$data))->handle();
24
+                    $query = (new $queryBuilder($this->schema, $table, $data))->handle();
25 25
 
26
-                    $status =($query['result']!==false) ? true : false;
26
+                    $status = ($query['result']!==false) ? true : false;
27 27
 
28
-                    $results[]= [
28
+                    $results[] = [
29 29
                         'success'=>$status,
30 30
                         'file'=>$data->getFile(),
31 31
                         'table'=>$table,
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         {
50 50
             foreach ($objects as $object)
51 51
             {
52
-                if(count($object->getError())){
52
+                if (count($object->getError())) {
53 53
                     return 'error : '.$object->getFile().' -> '.$object->getError()[0].'';
54 54
                 }
55 55
             }
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/Resource/PushManager/Pushing.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     protected function getAllFiles()
24 24
     {
25
-        BaseRequestProcess::$paths=$this->config['paths'];
25
+        BaseRequestProcess::$paths = $this->config['paths'];
26 26
 
27 27
         return BaseRequestProcess::getAllFiles();
28 28
     }
@@ -32,20 +32,20 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function handle()
34 34
     {
35
-        foreach ($this->tableFilters() as $table=>$files){
35
+        foreach ($this->tableFilters() as $table=>$files) {
36 36
 
37 37
             $table = strtolower($table);
38 38
 
39 39
             foreach ($files as $file) {
40 40
 
41
-                $getClassName = preg_replace('@(\d+)_@is','',$file);
41
+                $getClassName = preg_replace('@(\d+)_@is', '', $file);
42 42
                 $className = $this->getClassName($getClassName);
43 43
 
44 44
                 $require = require_once ($file);
45 45
 
46
-                $capsule = new SchemaCapsule($this->config,$file,$table);
46
+                $capsule = new SchemaCapsule($this->config, $file, $table);
47 47
 
48
-                $this->list[$table][]=(new $className)->up($capsule);
48
+                $this->list[$table][] = (new $className)->up($capsule);
49 49
             }
50 50
         }
51 51
 
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 
61 61
         foreach ($this->getAllFiles() as $table=>$allFile) {
62 62
 
63
-            if(count($tables)){
63
+            if (count($tables)) {
64 64
 
65
-                if(in_array($table,$tables)){
66
-                    $list[$table]=$allFile;
65
+                if (in_array($table, $tables)) {
66
+                    $list[$table] = $allFile;
67 67
                 }
68 68
             }
69 69
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     protected function getClassName($file)
79 79
     {
80
-        $className = str_replace(".php","",BaseRequestProcess::getFileName($file));
80
+        $className = str_replace(".php", "", BaseRequestProcess::getFileName($file));
81 81
 
82 82
         return $className;
83 83
     }
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/Resource/Request/BaseRequestProcess.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
                 //get path and set mkdir
94 94
                 $path = $mainPath.'/'.ucfirst($table);
95 95
                 if(!file_exists($path)){
96
-                   $mkdirResults[] = mkdir($path, 0777);
96
+                    $mkdirResults[] = mkdir($path, 0777);
97 97
                 }
98 98
             }
99 99
         }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
 
36 36
         $paths = self::$paths;
37 37
 
38
-        foreach ($paths as $path){
38
+        foreach ($paths as $path) {
39 39
             $globPaths = array_filter(glob($path.'/*'), 'is_dir');
40
-            foreach ($globPaths as $reelPath){
41
-                $list[]=$reelPath;
40
+            foreach ($globPaths as $reelPath) {
41
+                $list[] = $reelPath;
42 42
             }
43 43
         }
44 44
 
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
 
55 55
         $list = [];
56 56
 
57
-        foreach ($directories as $directory){
57
+        foreach ($directories as $directory) {
58 58
 
59 59
             foreach (glob($directory."/*.php") as $file) {
60 60
 
61
-                $list[self::getFileName($directory)][]=$file;
61
+                $list[self::getFileName($directory)][] = $file;
62 62
             }
63 63
         }
64 64
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public static function getFileName($path)
73 73
     {
74
-        $pathParse = explode ("/",$path);
74
+        $pathParse = explode("/", $path);
75 75
 
76 76
         return end($pathParse);
77 77
     }
@@ -87,18 +87,18 @@  discard block
 block discarded – undo
87 87
 
88 88
         $mkdirResults = [];
89 89
 
90
-        foreach ($tables as $table){
91
-            if(!isset($directories[$table])){
90
+        foreach ($tables as $table) {
91
+            if (!isset($directories[$table])) {
92 92
 
93 93
                 //get path and set mkdir
94 94
                 $path = $mainPath.'/'.ucfirst($table);
95
-                if(!file_exists($path)){
95
+                if (!file_exists($path)) {
96 96
                    $mkdirResults[] = mkdir($path, 0777);
97 97
                 }
98 98
             }
99 99
         }
100 100
 
101
-        dd(self::getAllDirectories(),$tables,$mkdirResults);
101
+        dd(self::getAllDirectories(), $tables, $mkdirResults);
102 102
     }
103 103
 }
104 104
 
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/Resource/StubManager/Stubber.php 2 patches
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     private function getPaths($params)
44 44
     {
45
-        if(!isset($params[3])){
45
+        if (!isset($params[3])) {
46 46
             return [$this->config['paths'][0]];
47 47
         }
48 48
     }
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
      * @param $params
54 54
      * @return bool
55 55
      */
56
-    private function fopenprocess($executionPath,$path,$params)
56
+    private function fopenprocess($executionPath, $path, $params)
57 57
     {
58 58
         $dt = fopen($executionPath, "r");
59 59
         $content = fread($dt, filesize($executionPath));
60 60
         fclose($dt);
61 61
 
62
-        foreach ($params as $key=>$value){
62
+        foreach ($params as $key=>$value) {
63 63
 
64
-            $content=str_replace("__".$key."__",$value,$content);
64
+            $content = str_replace("__".$key."__", $value, $content);
65 65
         }
66 66
 
67 67
 
@@ -79,28 +79,28 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function get($params)
81 81
     {
82
-        list($table,$name,$type) = $params;
82
+        list($table, $name, $type) = $params;
83 83
 
84 84
         $results = [];
85 85
 
86 86
         $paths = $this->getPaths($params);
87 87
 
88
-        foreach ($paths as $pathKey=>$path){
88
+        foreach ($paths as $pathKey=>$path) {
89 89
 
90 90
             $tableDirectory = $path.'/'.ucfirst($table);
91 91
 
92 92
 
93
-            if(!file_exists($tableDirectory)){
94
-                $results['directory'][$pathKey]= $this->fileProcess($tableDirectory,'makeDirectory');
93
+            if (!file_exists($tableDirectory)) {
94
+                $results['directory'][$pathKey] = $this->fileProcess($tableDirectory, 'makeDirectory');
95 95
             }
96
-            else{
97
-                $results['directory'][$pathKey]= $this->getResult(false,
96
+            else {
97
+                $results['directory'][$pathKey] = $this->getResult(false,
98 98
                     'Already exist the specified directory');
99 99
             }
100 100
 
101
-            $results['directory'][$pathKey]['table']= $table;
102
-            $results['directory'][$pathKey]['directory']= $table;
103
-            $results['directory'][$pathKey]['type']= $type;
101
+            $results['directory'][$pathKey]['table'] = $table;
102
+            $results['directory'][$pathKey]['directory'] = $table;
103
+            $results['directory'][$pathKey]['type'] = $type;
104 104
 
105 105
             $fileName = ucfirst($name);
106 106
 
@@ -108,23 +108,23 @@  discard block
 block discarded – undo
108 108
 
109 109
             $filePath = $tableDirectory.'/'.$fileNameWithTime.'.php';
110 110
 
111
-            if(!file_exists($filePath)){
112
-                $results['file'][$pathKey]=$this->fileProcess($filePath,'makeFile');
111
+            if (!file_exists($filePath)) {
112
+                $results['file'][$pathKey] = $this->fileProcess($filePath, 'makeFile');
113 113
             }
114
-            else{
115
-                $results['file'][$pathKey]= $this->getResult(false,
114
+            else {
115
+                $results['file'][$pathKey] = $this->getResult(false,
116 116
                     'Already exist the specified file');
117 117
             }
118 118
 
119
-            $results['file'][$pathKey]['table']=$table;
120
-            $results['file'][$pathKey]['file']=$fileName;
121
-            $results['file'][$pathKey]['type']=$type;
119
+            $results['file'][$pathKey]['table'] = $table;
120
+            $results['file'][$pathKey]['file'] = $fileName;
121
+            $results['file'][$pathKey]['type'] = $type;
122 122
 
123 123
             $stubber = $this->stubber.'/'.$type.'.stub';
124 124
 
125
-            $this->fopenprocess($stubber,$filePath,['className'=>$fileName]);
125
+            $this->fopenprocess($stubber, $filePath, ['className'=>$fileName]);
126 126
 
127
-            $this->file->chmod($tableDirectory,0777,000,true);
127
+            $this->file->chmod($tableDirectory, 0777, 000, true);
128 128
         }
129 129
 
130 130
         return $results;
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
      * @param $process
136 136
      * @return array
137 137
      */
138
-    private function fileProcess($path,$process)
138
+    private function fileProcess($path, $process)
139 139
     {
140 140
         try {
141 141
             $this->{$process}($path);
142
-            return $this->getResult(true,null);
142
+            return $this->getResult(true, null);
143 143
         } catch (IOExceptionInterface $exception) {
144 144
             return $this->getResult(false,
145 145
                 "An error occurred while creating your directory at ".$exception->getPath()."");
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
      * @param $path
151 151
      * @param string $mode
152 152
      */
153
-    private function  makeDirectory($path,$mode='0777')
153
+    private function  makeDirectory($path, $mode = '0777')
154 154
     {
155
-        return $this->file->mkdir($path,$mode);
155
+        return $this->file->mkdir($path, $mode);
156 156
     }
157 157
 
158 158
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * @param $message
169 169
      * @return array
170 170
      */
171
-    private function getResult($success,$message)
171
+    private function getResult($success, $message)
172 172
     {
173 173
         return [
174 174
             'success'=>$success,
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
             if(!file_exists($tableDirectory)){
94 94
                 $results['directory'][$pathKey]= $this->fileProcess($tableDirectory,'makeDirectory');
95
-            }
96
-            else{
95
+            } else{
97 96
                 $results['directory'][$pathKey]= $this->getResult(false,
98 97
                     'Already exist the specified directory');
99 98
             }
@@ -110,8 +109,7 @@  discard block
 block discarded – undo
110 109
 
111 110
             if(!file_exists($filePath)){
112 111
                 $results['file'][$pathKey]=$this->fileProcess($filePath,'makeFile');
113
-            }
114
-            else{
112
+            } else{
115 113
                 $results['file'][$pathKey]= $this->getResult(false,
116 114
                     'Already exist the specified file');
117 115
             }
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/Contract/QueryBaseContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
      * @param array $tables
14 14
      * @return mixed
15 15
      */
16
-    public function getColumns($tables=array());
16
+    public function getColumns($tables = array());
17 17
 
18 18
 }
19 19
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Database/Migration/Src/Contract/WizardContract.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * @param bool $table
17 17
      * @return TablePropertiesContract
18 18
      */
19
-    public function collation($value,$table=false);
19
+    public function collation($value, $table = false);
20 20
 
21 21
     /**
22 22
      * @param $value
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param bool $key
37 37
      * @return $this
38 38
      */
39
-    public function index($name=null,$value=null,$key=false);
39
+    public function index($name = null, $value = null, $key = false);
40 40
 
41 41
     /**
42 42
      * @param $value
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param bool $null
49 49
      * @return $this
50 50
      */
51
-    public function nullable($null=true);
51
+    public function nullable($null = true);
52 52
 
53 53
     /**
54 54
      * @return $this
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * @param null $value
66 66
      * @return mixed
67 67
      */
68
-    public function unique($name=null,$value=null);
68
+    public function unique($name = null, $value = null);
69 69
 
70 70
 }
71 71
 
Please login to merge, or discard this patch.