GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (0e0419)
by Pedro
04:31
created
build/Classes/templates/zend_framework/dbtable_abstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,17 +3,17 @@
 block discarded – undo
3 3
 /**
4 4
  * Application Model DbTables
5 5
  *
6
- * <?=$this->config->last_modify."\n"?>
6
+ * <?=$this->config->last_modify . "\n"?>
7 7
  *
8 8
  * Classe Abstract pai de todas as tabelas
9 9
  *
10 10
  * @package   <?=$this->config->namespace?>Model
11 11
  * @subpackage DbTable
12
- * @author    <?=$this->config->author."\n"?>
12
+ * @author    <?=$this->config->author . "\n"?>
13 13
  *
14
- * @copyright <?=$this->config->copyright."\n"?>
15
- * @license   <?=$this->config->license."\n"?>
16
- * @link      <?=$this->config->link."\n"?>
14
+ * @copyright <?=$this->config->copyright . "\n"?>
15
+ * @license   <?=$this->config->license . "\n"?>
16
+ * @link      <?=$this->config->link . "\n"?>
17 17
  *
18 18
  * @abstract
19 19
  */
Please login to merge, or discard this patch.
build/Classes/templates/zend_framework/entity_abstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,15 +3,15 @@
 block discarded – undo
3 3
 /**
4 4
  * Application Entity
5 5
  *
6
- * <?=$this->config->last_modify."\n"?>
6
+ * <?=$this->config->last_modify . "\n"?>
7 7
  *
8 8
  * @package   <?=$this->config->namespace?>Model
9 9
  * @subpackage Model
10
- * @author    <?=$this->config->author."\n"?>
10
+ * @author    <?=$this->config->author . "\n"?>
11 11
  *
12
- * @copyright <?=$this->config->copyright."\n"?>
13
- * @license   <?=$this->config->license."\n"?>
14
- * @link      <?=$this->config->link."\n"?>
12
+ * @copyright <?=$this->config->copyright . "\n"?>
13
+ * @license   <?=$this->config->license . "\n"?>
14
+ * @link      <?=$this->config->link . "\n"?>
15 15
  */
16 16
 
17 17
 abstract class <?=$this->config->namespace?>Model_EntityAbstract extends Zend_Db_Table_Row_Abstract
Please login to merge, or discard this patch.
build/Classes/templates/phalcon/model.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@
 block discarded – undo
3 3
 /**
4 4
  * Data Model implementation for this class
5 5
  *
6
- * <?=$this->config->last_modify."\n"?>
6
+ * <?=$this->config->last_modify . "\n"?>
7 7
  *
8 8
  * @package <?=$objTables->getNamespace()?>
9
- * @see  <?=$objTables->getNamespace()?>/Model/<?=$this->getClassName ( $objTables->getName () )?>. "\n"?>
9
+ * @see  <?=$objTables->getNamespace()?>/Model/<?=$this->getClassName($objTables->getName())?>. "\n"?>
10 10
  *
11
- * @author    <?=$this->config->author."\n"?>
11
+ * @author    <?=$this->config->author . "\n"?>
12 12
  *
13
- * @copyright <?=$this->config->copyright."\n"?>
14
- * @license   <?=$this->config->license."\n"?>
15
- * @link      <?=$this->config->link."\n"?>
13
+ * @copyright <?=$this->config->copyright . "\n"?>
14
+ * @license   <?=$this->config->license . "\n"?>
15
+ * @link      <?=$this->config->link . "\n"?>
16 16
  */
17 17
 
18
-class <?=$this->getClassName ( $objTables->getName () )?> extends <?=$objTables->getNamespace()?>/Model/<?=$this->getClassName ( $objTables->getName () ). "\n"?>
18
+class <?=$this->getClassName($objTables->getName())?> extends <?=$objTables->getNamespace()?>/Model/<?=$this->getClassName($objTables->getName()) . "\n"?>
19 19
 {
20 20
     /* Codifique aqui */
21 21
 }
Please login to merge, or discard this patch.
build/Classes/templates/phalcon/model_abstract.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,22 +3,22 @@
 block discarded – undo
3 3
 /**
4 4
  * Mvc Model
5 5
  *
6
- * <?=$this->config->last_modify."\n"?>
6
+ * <?=$this->config->last_modify . "\n"?>
7 7
  *
8 8
  * @package   <?=$this->config->namespace?>Model
9 9
  * @subpackage Model
10
- * @author    <?=$this->config->author."\n"?>
10
+ * @author    <?=$this->config->author . "\n"?>
11 11
  *
12
- * @copyright <?=$this->config->copyright."\n"?>
13
- * @license   <?=$this->config->license."\n"?>
14
- * @link      <?=$this->config->link."\n"?>
12
+ * @copyright <?=$this->config->copyright . "\n"?>
13
+ * @license   <?=$this->config->license . "\n"?>
14
+ * @link      <?=$this->config->link . "\n"?>
15 15
  */
16 16
 
17 17
 namespace  <?=$objTables->getNamespace()?>;
18 18
 
19 19
 use Phalcon\Mvc\Model;
20 20
 
21
-abstract class <?=\Classes\Maker\AbstractMaker::getClassName ( $objTables->getName () )?> extends Model
21
+abstract class <?=\Classes\Maker\AbstractMaker::getClassName($objTables->getName())?> extends Model
22 22
 {
23 23
 
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
build/Classes/templates/file_configs/ini.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
 ; database host
21 21
 host = <?= $host ?><?= "\n" ?>
22 22
 ; database name
23
-database = "<?= isset( $database ) ? $database : '' ?>"<?= "\n" ?>
23
+database = "<?= isset($database) ? $database : '' ?>"<?= "\n" ?>
24 24
 ; database schema name (one or more than one)
25
-<?= isset( $schema ) ? 'schema = ' . $schema : ';schema = public' ?><?= "\n" ?>
25
+<?= isset($schema) ? 'schema = ' . $schema : ';schema = public' ?><?= "\n" ?>
26 26
 ; database user
27
-username = <?= isset( $username ) ? $username : '' ?><?= "\n" ?>
27
+username = <?= isset($username) ? $username : '' ?><?= "\n" ?>
28 28
 ; database password
29
-password = <?= isset( $password ) ? $password : '' ?><?= "\n" ?>
29
+password = <?= isset($password) ? $password : '' ?><?= "\n" ?>
30 30
 ; show status of implementation carried out after completing the process
31 31
 status = false
32 32
 ; specify where to create the files (default is current directory)
Please login to merge, or discard this patch.
build/Classes/Maker/AbstractMaker.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
      *
11 11
      * @param $dir
12 12
      */
13
-    public static function makeDir ( $dir )
13
+    public static function makeDir($dir)
14 14
     {
15
-        if ( !is_dir ( $dir ) )
15
+        if ( ! is_dir($dir))
16 16
         {
17
-            if ( !@mkdir ( $dir, 0755, true ) )
17
+            if ( ! @mkdir($dir, 0755, true))
18 18
             {
19
-                die( "error: could not create directory $dir\n" );
19
+                die("error: could not create directory $dir\n");
20 20
             }
21 21
         }
22 22
     }
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
      * @param string $tplContent Conteudo do Template
27 27
      * @param bool $overwrite Sobrescreve o arquivo ja existente
28 28
      */
29
-    public static function makeSourcer ( $nameFile, $tplContent, $overwrite = false )
29
+    public static function makeSourcer($nameFile, $tplContent, $overwrite = false)
30 30
     {
31
-        if ( !$overwrite && is_file ( $nameFile ) )
31
+        if ( ! $overwrite && is_file($nameFile))
32 32
         {
33 33
             return;
34 34
         }
35 35
 
36
-        if ( !file_put_contents ( $nameFile, $tplContent ) )
36
+        if ( ! file_put_contents($nameFile, $tplContent))
37 37
         {
38
-            die( "Error: could not write model file $nameFile." );
38
+            die("Error: could not write model file $nameFile.");
39 39
         }
40 40
 
41 41
 
@@ -46,24 +46,24 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return string
48 48
      */
49
-    public static function getClassName ( $str )
49
+    public static function getClassName($str)
50 50
     {
51 51
         $temp = '';
52
-        foreach ( explode ( self::SEPARETOR, $str ) as $part )
52
+        foreach (explode(self::SEPARETOR, $str) as $part)
53 53
         {
54
-            $temp .= ucfirst ( $part );
54
+            $temp .= ucfirst($part);
55 55
         }
56 56
 
57 57
         return $temp;
58 58
     }
59 59
 
60
-    protected function getParsedTplContents ( $filePath, $vars = array () )
60
+    protected function getParsedTplContents($filePath, $vars = array())
61 61
     {
62
-        extract ( $vars );
63
-        ob_start ();
62
+        extract($vars);
63
+        ob_start();
64 64
         require $filePath;
65
-        $data = ob_get_contents ();
66
-        ob_end_clean ();
65
+        $data = ob_get_contents();
66
+        ob_end_clean();
67 67
 
68 68
         return $data;
69 69
     }
Please login to merge, or discard this patch.
build/Classes/Config.php 1 patch
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @var array
51 51
      */
52
-    private $argv = array ();
52
+    private $argv = array();
53 53
 
54 54
     /**
55 55
      * @var \Classes\AdapterConfig\AbstractAdapter
@@ -61,18 +61,18 @@  discard block
 block discarded – undo
61 61
      */
62 62
     private $adapterDriver;
63 63
 
64
-    public function __construct ( $argv , $basePath )
64
+    public function __construct($argv, $basePath)
65 65
     {
66
-        if ( array_key_exists ( 'help' , $argv ) )
66
+        if (array_key_exists('help', $argv))
67 67
         {
68
-            die ( $this->getUsage () );
68
+            die ($this->getUsage());
69 69
         }
70
-        if ( array_key_exists ( 'status' , $argv ) )
70
+        if (array_key_exists('status', $argv))
71 71
         {
72
-            $argv[ 'status' ] = true;
72
+            $argv['status'] = true;
73 73
         }
74 74
 
75
-        $this->argv = $this->parseConfig ( $basePath , $argv );
75
+        $this->argv = $this->parseConfig($basePath, $argv);
76 76
     }
77 77
 
78 78
     /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @return string
82 82
      */
83
-    public function getUsage ()
83
+    public function getUsage()
84 84
     {
85 85
         $version = static::$version;
86 86
         return <<<EOF
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 EOF;
105 105
     }
106 106
 
107
-    public function getVersion ()
107
+    public function getVersion()
108 108
     {
109 109
         $version = static::$version;
110 110
         return "ORM-Generator By: Pedro Alarcao Version: $version";
@@ -119,22 +119,22 @@  discard block
 block discarded – undo
119 119
      * @return array
120 120
      * @throws \Exception
121 121
      */
122
-    private function parseConfig ( $basePath , $argv )
122
+    private function parseConfig($basePath, $argv)
123 123
     {
124
-        $this->_basePath = dirname ( $basePath );
124
+        $this->_basePath = dirname($basePath);
125 125
 
126
-        $configIni = isset( $argv[ 'config-ini' ] ) ? $argv[ 'config-ini' ]
126
+        $configIni = isset($argv['config-ini']) ? $argv['config-ini']
127 127
             : $this->_basePath . $this->configIniDefault;
128 128
 
129
-        $configTemp = $this->loadIniFile ( realpath ( $configIni ) );
130
-        $configCurrent = $this->parseConfigEnv ( $configTemp , $argv );
129
+        $configTemp = $this->loadIniFile(realpath($configIni));
130
+        $configCurrent = $this->parseConfigEnv($configTemp, $argv);
131 131
 
132
-        if ( ! isset( $configCurrent[ 'framework' ] ) )
132
+        if ( ! isset($configCurrent['framework']))
133 133
         {
134
-            throw new \Exception( "configure which framework you want to use! \n" );
134
+            throw new \Exception("configure which framework you want to use! \n");
135 135
         }
136 136
 
137
-        return $argv + array_filter ( $configCurrent );
137
+        return $argv + array_filter($configCurrent);
138 138
     }
139 139
 
140 140
     /**
@@ -144,27 +144,27 @@  discard block
 block discarded – undo
144 144
      *
145 145
      * @return string
146 146
      */
147
-    public function parseConfigEnv ( $configTemp , $argv )
147
+    public function parseConfigEnv($configTemp, $argv)
148 148
     {
149
-        if ( isset( $configTemp[ key ( $configTemp ) ][ 'config-env' ] )
150
-             or isset( $argv[ 'config-env' ] )
149
+        if (isset($configTemp[key($configTemp)]['config-env'])
150
+             or isset($argv['config-env'])
151 151
         )
152 152
         {
153
-            $thisSection = isset( $argv[ 'config-env' ] )
153
+            $thisSection = isset($argv['config-env'])
154 154
                 ?
155
-                $argv[ 'config-env' ]
155
+                $argv['config-env']
156 156
                 :
157
-                $configTemp[ key ( $configTemp ) ][ 'config-env' ];
157
+                $configTemp[key($configTemp)]['config-env'];
158 158
 
159 159
 
160
-            if ( isset( $configTemp[ $thisSection ][ 'extends' ] ) )
160
+            if (isset($configTemp[$thisSection]['extends']))
161 161
             {
162
-                return $configTemp[ $thisSection ]
163
-                       + $configTemp[ $configTemp[ $thisSection ][ 'extends' ] ];
162
+                return $configTemp[$thisSection]
163
+                       + $configTemp[$configTemp[$thisSection]['extends']];
164 164
             }
165 165
         }
166 166
 
167
-        return $configTemp[ key ( $configTemp ) ];
167
+        return $configTemp[key($configTemp)];
168 168
     }
169 169
 
170 170
     /**
@@ -178,32 +178,32 @@  discard block
 block discarded – undo
178 178
      * @throws \Exception
179 179
      * @return array
180 180
      */
181
-    protected function loadIniFile ( $filename )
181
+    protected function loadIniFile($filename)
182 182
     {
183
-        if ( ! is_file ( $filename ) )
183
+        if ( ! is_file($filename))
184 184
         {
185
-            throw new \Exception( "configuration file does not exist! \n" );
185
+            throw new \Exception("configuration file does not exist! \n");
186 186
         }
187 187
 
188
-        $loaded = parse_ini_file ( $filename , true );
189
-        $iniArray = array ();
190
-        foreach ( $loaded as $key => $data )
188
+        $loaded = parse_ini_file($filename, true);
189
+        $iniArray = array();
190
+        foreach ($loaded as $key => $data)
191 191
         {
192
-            $pieces = explode ( $this->sectionSeparator , $key );
193
-            $thisSection = trim ( $pieces[ 0 ] );
194
-            switch ( count ( $pieces ) )
192
+            $pieces = explode($this->sectionSeparator, $key);
193
+            $thisSection = trim($pieces[0]);
194
+            switch (count($pieces))
195 195
             {
196 196
                 case 1:
197
-                    $iniArray[ $thisSection ] = $data;
197
+                    $iniArray[$thisSection] = $data;
198 198
                     break;
199 199
 
200 200
                 case 2:
201
-                    $extendedSection = trim ( $pieces[ 1 ] );
202
-                    $iniArray[ $thisSection ] = array_merge ( array ( 'extends' => $extendedSection ) , $data );
201
+                    $extendedSection = trim($pieces[1]);
202
+                    $iniArray[$thisSection] = array_merge(array('extends' => $extendedSection), $data);
203 203
                     break;
204 204
 
205 205
                 default:
206
-                    throw new \Exception( "Section '$thisSection' may not extend multiple sections in $filename" );
206
+                    throw new \Exception("Section '$thisSection' may not extend multiple sections in $filename");
207 207
             }
208 208
         }
209 209
 
@@ -214,15 +214,15 @@  discard block
 block discarded – undo
214 214
      * analisa a opção e cria a instancia do Atapter do determinado framework
215 215
      *
216 216
      */
217
-    private function factoryConfig ()
217
+    private function factoryConfig()
218 218
     {
219
-        switch ( strtolower ( $this->argv[ 'framework' ] ) )
219
+        switch (strtolower($this->argv['framework']))
220 220
         {
221 221
             case 'none':
222
-                $this->adapterConfig = new None( $this->argv );
222
+                $this->adapterConfig = new None($this->argv);
223 223
                 break;
224 224
             case 'zend_framework':
225
-                $this->adapterConfig = new ZendFrameworkOne( $this->argv );
225
+                $this->adapterConfig = new ZendFrameworkOne($this->argv);
226 226
                 break;
227 227
         }
228 228
 
@@ -232,26 +232,26 @@  discard block
 block discarded – undo
232 232
      * Analisa a opção e instancia o determinado banco de dados
233 233
      *
234 234
      */
235
-    private function factoryDriver ()
235
+    private function factoryDriver()
236 236
     {
237
-        switch ( $this->argv[ 'driver' ] )
237
+        switch ($this->argv['driver'])
238 238
         {
239 239
             case 'pgsql':
240 240
             case 'pdo_pgsql':
241
-                $this->adapterDriver = new Pgsql( $this->getAdapterConfig () );
241
+                $this->adapterDriver = new Pgsql($this->getAdapterConfig());
242 242
                 break;
243 243
             case 'mysql':
244 244
             case 'pdo_mysql':
245
-                $this->adapterDriver = new Mysql( $this->getAdapterConfig () );
245
+                $this->adapterDriver = new Mysql($this->getAdapterConfig());
246 246
                 break;
247 247
             case 'mssql':
248
-                $this->adapterDriver = new Mssql( $this->getAdapterConfig () );
248
+                $this->adapterDriver = new Mssql($this->getAdapterConfig());
249 249
                 break;
250 250
             case 'dblib':
251
-                $this->adapterDriver = new Dblib( $this->getAdapterConfig () );
251
+                $this->adapterDriver = new Dblib($this->getAdapterConfig());
252 252
                 break;
253 253
             case 'sqlsrv':
254
-                $this->adapterDriver = new Sqlsrv( $this->getAdapterConfig () );
254
+                $this->adapterDriver = new Sqlsrv($this->getAdapterConfig());
255 255
                 break;
256 256
         }
257 257
 
@@ -260,11 +260,11 @@  discard block
 block discarded – undo
260 260
     /**
261 261
      * @return AdapterConfig\AbstractAdapter
262 262
      */
263
-    public function getAdapterConfig ()
263
+    public function getAdapterConfig()
264 264
     {
265
-        if ( ! $this->adapterConfig )
265
+        if ( ! $this->adapterConfig)
266 266
         {
267
-            $this->factoryConfig ();
267
+            $this->factoryConfig();
268 268
         }
269 269
 
270 270
         return $this->adapterConfig;
@@ -273,11 +273,11 @@  discard block
 block discarded – undo
273 273
     /**
274 274
      * @return AdaptersDriver\AbsractAdapter
275 275
      */
276
-    public function getAdapterDriver ()
276
+    public function getAdapterDriver()
277 277
     {
278
-        if ( ! $this->adapterDriver )
278
+        if ( ! $this->adapterDriver)
279 279
         {
280
-            $this->factoryDriver ();
280
+            $this->factoryDriver();
281 281
         }
282 282
 
283 283
         return $this->adapterDriver;
Please login to merge, or discard this patch.
build/Classes/Db/Column.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      *
17 17
      * @author Pedro Alarcao <[email protected]>
18 18
      */
19
-    public function __construct ()
19
+    public function __construct()
20 20
     {
21 21
     }
22 22
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @return string
70 70
      */
71
-    public function getName ()
71
+    public function getName()
72 72
     {
73 73
         return $this->name;
74 74
     }
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @param $array
80 80
      */
81
-    public function populate ( $array )
81
+    public function populate($array)
82 82
     {
83
-        $this->name = $array[ 'name' ];
84
-        $this->type = $array[ 'type' ];
85
-        $this->nullable = $array[ 'nullable' ];
86
-        $this->max_length = $array[ 'max_length' ];
83
+        $this->name = $array['name'];
84
+        $this->type = $array['type'];
85
+        $this->nullable = $array['nullable'];
86
+        $this->max_length = $array['max_length'];
87 87
 
88 88
         return $this;
89 89
     }
@@ -91,31 +91,31 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * @return boolean
93 93
      */
94
-    public function isPrimaryKey ()
94
+    public function isPrimaryKey()
95 95
     {
96
-        return ! empty( $this->primarykey );
96
+        return ! empty($this->primarykey);
97 97
     }
98 98
 
99 99
     /**
100 100
      * @return boolean
101 101
      */
102
-    public function isForeingkey ()
102
+    public function isForeingkey()
103 103
     {
104
-        return ! empty( $this->refForeingkey );
104
+        return ! empty($this->refForeingkey);
105 105
     }
106 106
 
107 107
     /**
108 108
      * @return boolean
109 109
      */
110
-    public function hasDependence ()
110
+    public function hasDependence()
111 111
     {
112
-        return ! empty( $this->dependences );
112
+        return ! empty($this->dependences);
113 113
     }
114 114
 
115 115
     /**
116 116
      * @return string
117 117
      */
118
-    public function getType ()
118
+    public function getType()
119 119
     {
120 120
         return $this->type;
121 121
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     /**
124 124
      * @return string
125 125
      */
126
-    public function getComment ()
126
+    public function getComment()
127 127
     {
128 128
         return $this->comment;
129 129
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * @param string $comment
133 133
      */
134
-    public function setComment ( $comment )
134
+    public function setComment($comment)
135 135
     {
136 136
         $this->comment = $comment;
137 137
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * @param \Classes\Db\Constrant $primarykey
143 143
      */
144
-    public function setPrimaryKey ( Constrant $primarykey )
144
+    public function setPrimaryKey(Constrant $primarykey)
145 145
     {
146 146
         $this->primarykey = $primarykey;
147 147
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * @param \Classes\Db\Constrant $dependece
153 153
      */
154
-    public function addDependece ( Constrant $dependece )
154
+    public function addDependece(Constrant $dependece)
155 155
     {
156 156
         $this->dependences[] = $dependece;
157 157
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     /**
162 162
      * @param \Classes\Db\Constrant $reference
163 163
      */
164
-    public function addRefFk ( Constrant $reference )
164
+    public function addRefFk(Constrant $reference)
165 165
     {
166 166
         $this->refForeingkey = $reference;
167 167
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      *
174 174
      * @return \Classes\Db\Constrant
175 175
      */
176
-    public function getFks ()
176
+    public function getFks()
177 177
     {
178 178
         return $this->refForeingkey;
179 179
     }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      *
184 184
      * @return \Classes\Db\Constrant[]
185 185
      */
186
-    public function getDependences ()
186
+    public function getDependences()
187 187
     {
188 188
         return $this->dependences;
189 189
     }
@@ -191,9 +191,9 @@  discard block
 block discarded – undo
191 191
     /**
192 192
      * @return bool
193 193
      */
194
-    public function hasDependences ()
194
+    public function hasDependences()
195 195
     {
196
-        return (bool) count ( $this->dependences );
196
+        return (bool) count($this->dependences);
197 197
     }
198 198
 
199 199
     /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      *
202 202
      * @return \Classes\Db\Constrant[]
203 203
      */
204
-    public function getPrimaryKey ()
204
+    public function getPrimaryKey()
205 205
     {
206 206
         return $this->primarykey;
207 207
     }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     /**
210 210
      *
211 211
      */
212
-    public function getMaxLength ()
212
+    public function getMaxLength()
213 213
     {
214 214
         return $this->max_length;
215 215
     }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     /**
218 218
      * @return bool
219 219
      */
220
-    public function hasSequence ()
220
+    public function hasSequence()
221 221
     {
222 222
         return (bool) $this->sequence;
223 223
     }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     /**
226 226
      * @return string
227 227
      */
228
-    public function getSequence ()
228
+    public function getSequence()
229 229
     {
230 230
         return $this->sequence;
231 231
     }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
     /**
234 234
      * @param string $sequence
235 235
      */
236
-    public function setSequence ( $sequence )
236
+    public function setSequence($sequence)
237 237
     {
238 238
         $this->sequence = $sequence;
239 239
     }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     /**
242 242
      * @return boolean
243 243
      */
244
-    public function isNullable ()
244
+    public function isNullable()
245 245
     {
246 246
         return $this->nullable;
247 247
     }
Please login to merge, or discard this patch.
build/Classes/Db/Constrant.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @author Pedro Alarcao <[email protected]>
23 23
      */
24
-    public function __construct ()
24
+    public function __construct()
25 25
     {
26 26
     }
27 27
 
@@ -45,28 +45,28 @@  discard block
 block discarded – undo
45 45
      */
46 46
     protected $column;
47 47
 
48
-    public function populate ( $array )
48
+    public function populate($array)
49 49
     {
50
-        if(isset($array[ 'schema' ])){
51
-            $this->schema = $array[ 'schema' ];
50
+        if (isset($array['schema'])) {
51
+            $this->schema = $array['schema'];
52 52
         }
53 53
 
54
-        $this->constrant = $array[ 'constrant' ];
55
-        $this->table = $array[ 'table' ];
56
-        $this->column = $array[ 'column' ];
54
+        $this->constrant = $array['constrant'];
55
+        $this->table = $array['table'];
56
+        $this->column = $array['column'];
57 57
     }
58 58
 
59
-    public function getDatabase(){}
59
+    public function getDatabase() {}
60 60
 
61 61
     /**
62 62
      * @return string
63 63
      */
64
-    public function getNameConstrant ()
64
+    public function getNameConstrant()
65 65
     {
66 66
         return $this->constrant;
67 67
     }
68 68
 
69
-    public function hasSchema ()
69
+    public function hasSchema()
70 70
     {
71 71
         return (bool) $this->schema;
72 72
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * @return string
76 76
      */
77
-    public function getSchema ()
77
+    public function getSchema()
78 78
     {
79 79
         return $this->schema;
80 80
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * @return string
84 84
      */
85
-    public function getTable ()
85
+    public function getTable()
86 86
     {
87 87
         return $this->table;
88 88
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     /**
91 91
      * @return string
92 92
      */
93
-    public function getColumn ()
93
+    public function getColumn()
94 94
     {
95 95
         return $this->column;
96 96
     }
Please login to merge, or discard this patch.