Test Failed
Push — master ( d78f35...b9bd45 )
by Php Easy Api
04:33
created
src/resta/Worker/WorkerManagerAbstract.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,8 +112,7 @@
 block discarded – undo
112 112
     {
113 113
         if(is_null($pause)){
114 114
             sleep($this->getPauseValue());
115
-        }
116
-        else{
115
+        } else{
117 116
             sleep($pause);
118 117
         }
119 118
     }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
      * @param ApplicationContracts $app
26 26
      * @param array $args
27 27
      */
28
-    public function __construct(ApplicationContracts $app, $args=array())
28
+    public function __construct(ApplicationContracts $app, $args = array())
29 29
     {
30 30
         parent::__construct($app);
31 31
 
32
-        if($this->app->runningInConsole()===false){
32
+        if ($this->app->runningInConsole()===false) {
33 33
             exception()->runtime('The worker can only be run as cli..');
34 34
         }
35 35
 
36
-        if($this->app->has('WORKER')===false){
36
+        if ($this->app->has('WORKER')===false) {
37 37
             exception()->runtime('The worker console manipulation for WORKER container value');
38 38
         }
39 39
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function getApply()
51 51
     {
52
-        if(isset($this->args['apply'])){
52
+        if (isset($this->args['apply'])) {
53 53
             return $this->args['apply'];
54 54
         }
55 55
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function getData()
65 65
     {
66
-        if(isset($this->args['data'])){
66
+        if (isset($this->args['data'])) {
67 67
             return $this->args['data'];
68 68
         }
69 69
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function getPauseValue()
79 79
     {
80
-        if(isset($this->args['pause'])){
80
+        if (isset($this->args['pause'])) {
81 81
             return $this->args['pause'];
82 82
         }
83 83
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function getWorker()
93 93
     {
94
-        if(isset($this->args['worker'],$this->worker[$worker = strtolower($this->args['worker'])])){
94
+        if (isset($this->args['worker'], $this->worker[$worker = strtolower($this->args['worker'])])) {
95 95
             return $worker;
96 96
         }
97 97
 
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
      *
114 114
      * @param null|\int $pause
115 115
      */
116
-    public function pause($pause=null)
116
+    public function pause($pause = null)
117 117
     {
118
-        if(is_null($pause)){
118
+        if (is_null($pause)) {
119 119
             sleep($this->getPauseValue());
120 120
         }
121
-        else{
121
+        else {
122 122
             sleep($pause);
123 123
         }
124 124
     }
@@ -132,16 +132,16 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function __call($name, $arguments)
134 134
     {
135
-        $job = $this->app->get('macro')->call(strtolower($this->getApply()).'Job',function() use($name){
135
+        $job = $this->app->get('macro')->call(strtolower($this->getApply()).'Job', function() use($name){
136 136
             return __NAMESPACE__.'\\'.ucfirst($name).'Job';
137 137
         });
138 138
 
139
-        if(Utils::isNamespaceExists($job)){
139
+        if (Utils::isNamespaceExists($job)) {
140 140
 
141 141
             /** @var JobContracts $resolve */
142
-            $resolve = $this->app->resolve($job,['worker'=>$this]);
142
+            $resolve = $this->app->resolve($job, ['worker'=>$this]);
143 143
 
144
-            if($resolve instanceof JobContracts){
144
+            if ($resolve instanceof JobContracts) {
145 145
                 return $resolve->execute();
146 146
             }
147 147
         }
Please login to merge, or discard this patch.
src/resta/Console/Source/Worker/Worker.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,9 @@
 block discarded – undo
38 38
             $this->argument[$key] = ucfirst($key);
39 39
             $this->{$method}();
40 40
 
41
-            if($break) break;
41
+            if($break) {
42
+                break;
43
+            }
42 44
         }
43 45
         exit();
44 46
     }
Please login to merge, or discard this patch.
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
      * @param string $method
32 32
      * @param bool $break
33 33
      */
34
-    private function allWorkers($method='start',$break=false)
34
+    private function allWorkers($method = 'start', $break = false)
35 35
     {
36
-        foreach(app()->get('worker') as $key=>$item){
36
+        foreach (app()->get('worker') as $key=>$item) {
37 37
             $this->argument['worker'] = ucfirst($key);
38 38
             $this->argument[$key] = ucfirst($key);
39 39
             $this->{$method}();
40 40
 
41
-            if($break) break;
41
+            if ($break) break;
42 42
         }
43 43
         exit();
44 44
     }
@@ -48,22 +48,22 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function start()
50 50
     {
51
-        if(is_null($this->argument['worker'])){
51
+        if (is_null($this->argument['worker'])) {
52 52
             $this->allWorkers();
53 53
             exit();
54 54
         }
55 55
 
56 56
         $workerName = $this->projectName().'-'.$this->argument['worker'];
57 57
         app()->terminate('WORKER');
58
-        app()->register('WORKER',$workerName);
58
+        app()->register('WORKER', $workerName);
59 59
         app()->terminate('PROJECT_NAME');
60
-        app()->register('PROJECT_NAME',strtolower($this->projectName()));
61
-        app()->register('WORKER_START',true);
62
-        app()->register('WORKER_STOP',false);
63
-        app()->register('WORKER_STATUS',false);
64
-        app()->register('WORKER_CLEAR',false);
60
+        app()->register('PROJECT_NAME', strtolower($this->projectName()));
61
+        app()->register('WORKER_START', true);
62
+        app()->register('WORKER_STOP', false);
63
+        app()->register('WORKER_STATUS', false);
64
+        app()->register('WORKER_CLEAR', false);
65 65
 
66
-        app()->resolve(WorkerManager::class,['args'=>$this->argument])->execute();
66
+        app()->resolve(WorkerManager::class, ['args'=>$this->argument])->execute();
67 67
     }
68 68
 
69 69
     /**
@@ -71,22 +71,22 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function stop()
73 73
     {
74
-        if(is_null($this->argument['worker'])){
74
+        if (is_null($this->argument['worker'])) {
75 75
             $this->allWorkers('stop');
76 76
             exit();
77 77
         }
78 78
 
79 79
         $workerName = $this->projectName().'-'.$this->argument['worker'];
80 80
         app()->terminate('WORKER');
81
-        app()->register('WORKER',$workerName);
81
+        app()->register('WORKER', $workerName);
82 82
         app()->terminate('PROJECT_NAME');
83
-        app()->register('PROJECT_NAME',strtolower($this->projectName()));
84
-        app()->register('WORKER_START',false);
85
-        app()->register('WORKER_STOP',true);
86
-        app()->register('WORKER_STATUS',false);
87
-        app()->register('WORKER_CLEAR',false);
83
+        app()->register('PROJECT_NAME', strtolower($this->projectName()));
84
+        app()->register('WORKER_START', false);
85
+        app()->register('WORKER_STOP', true);
86
+        app()->register('WORKER_STATUS', false);
87
+        app()->register('WORKER_CLEAR', false);
88 88
 
89
-        app()->resolve(WorkerManager::class,['args'=>$this->argument])->execute();
89
+        app()->resolve(WorkerManager::class, ['args'=>$this->argument])->execute();
90 90
     }
91 91
 
92 92
     /**
@@ -94,20 +94,20 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function status()
96 96
     {
97
-        if(!isset($this->argument['worker'])){
98
-            $this->allWorkers('status',true);
97
+        if (!isset($this->argument['worker'])) {
98
+            $this->allWorkers('status', true);
99 99
             exit();
100 100
         }
101 101
 
102 102
         $workerName = $this->projectName().'-'.$this->argument['worker'];
103
-        app()->register('WORKER',$workerName);
104
-        app()->register('PROJECT_NAME',strtolower($this->projectName()));
105
-        app()->register('WORKER_START',false);
106
-        app()->register('WORKER_STOP',false);
107
-        app()->register('WORKER_STATUS',true);
108
-        app()->register('WORKER_CLEAR',false);
109
-
110
-        app()->resolve(WorkerManager::class,['args'=>$this->argument])->execute();
103
+        app()->register('WORKER', $workerName);
104
+        app()->register('PROJECT_NAME', strtolower($this->projectName()));
105
+        app()->register('WORKER_START', false);
106
+        app()->register('WORKER_STOP', false);
107
+        app()->register('WORKER_STATUS', true);
108
+        app()->register('WORKER_CLEAR', false);
109
+
110
+        app()->resolve(WorkerManager::class, ['args'=>$this->argument])->execute();
111 111
     }
112 112
 
113 113
     /**
@@ -115,22 +115,22 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function clear()
117 117
     {
118
-        if(is_null($this->argument['worker'])){
118
+        if (is_null($this->argument['worker'])) {
119 119
             $this->allWorkers('clear');
120 120
             exit();
121 121
         }
122 122
 
123 123
         $workerName = $this->projectName().'-'.$this->argument['worker'];
124 124
         app()->terminate('WORKER');
125
-        app()->register('WORKER',$workerName);
125
+        app()->register('WORKER', $workerName);
126 126
         app()->terminate('PROJECT_NAME');
127
-        app()->register('PROJECT_NAME',strtolower($this->projectName()));
128
-        app()->register('WORKER_START',false);
129
-        app()->register('WORKER_STOP',false);
130
-        app()->register('WORKER_STATUS',false);
131
-        app()->register('WORKER_CLEAR',true);
127
+        app()->register('PROJECT_NAME', strtolower($this->projectName()));
128
+        app()->register('WORKER_START', false);
129
+        app()->register('WORKER_STOP', false);
130
+        app()->register('WORKER_STATUS', false);
131
+        app()->register('WORKER_CLEAR', true);
132 132
 
133
-        app()->resolve(WorkerManager::class,['args'=>$this->argument])->execute();
133
+        app()->resolve(WorkerManager::class, ['args'=>$this->argument])->execute();
134 134
     }
135 135
 
136 136
     /**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function create()
140 140
     {
141
-        if(!file_exists(app()->path()->workers())){
141
+        if (!file_exists(app()->path()->workers())) {
142 142
             $this->directory['worker'] = app()->path()->workers();
143 143
             $this->file->makeDirectory($this);
144 144
         }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $this->argument['workerClass'] = ucfirst($this->argument['worker']).'';
148 148
         $this->argument['projectName'] = strtolower($this->projectName());
149 149
 
150
-        $this->touch['worker/worker']= app()->path()->workers().'/'.$this->argument['worker'].'.php';
150
+        $this->touch['worker/worker'] = app()->path()->workers().'/'.$this->argument['worker'].'.php';
151 151
 
152 152
 
153 153
         $this->file->touch($this);
Please login to merge, or discard this patch.
src/resta/Worker/JobAbstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param ApplicationContracts $app
26 26
      * @param WorkerManagerContracts $worker
27 27
      */
28
-    public function __construct(ApplicationContracts $app,WorkerManagerContracts $worker)
28
+    public function __construct(ApplicationContracts $app, WorkerManagerContracts $worker)
29 29
     {
30 30
         parent::__construct($app);
31 31
 
@@ -41,19 +41,19 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function jobProcessor()
43 43
     {
44
-        if($this->app->get('WORKER_START')===true){
44
+        if ($this->app->get('WORKER_START')===true) {
45 45
             return 'start';
46 46
         }
47 47
 
48
-        if($this->app->get('WORKER_STOP')===true){
48
+        if ($this->app->get('WORKER_STOP')===true) {
49 49
             return 'stop';
50 50
         }
51 51
 
52
-        if($this->app->get('WORKER_STATUS')===true){
52
+        if ($this->app->get('WORKER_STATUS')===true) {
53 53
             return 'status';
54 54
         }
55 55
 
56
-        if($this->app->get('WORKER_CLEAR')===true){
56
+        if ($this->app->get('WORKER_CLEAR')===true) {
57 57
             return 'clear';
58 58
         }
59 59
     }
Please login to merge, or discard this patch.
src/resta/Support/Process.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
      * @param null|string $command
14 14
      * @return mixed|void
15 15
      */
16
-    public function command($command=null)
16
+    public function command($command = null)
17 17
     {
18
-        $process = new ProcessHandler($command,root.'');
18
+        $process = new ProcessHandler($command, root.'');
19 19
         $process->run();
20 20
 
21 21
         // executes after the command finishes
Please login to merge, or discard this patch.
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.