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.
Completed
Pull Request — master (#29)
by Pedro
06:35
created
create-phar.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@
 block discarded – undo
1 1
 <?php
2
-define ( 'PREFIX', 'orm-generator' );
3
-define ( 'PHAR_FILE', PREFIX . '.phar' );
4
-define ( 'PHAR_OUTPUT', 'bin' . DIRECTORY_SEPARATOR . PHAR_FILE );
5
-define ( 'DEFAULT_STUB', 'phar-generate.php' );
6
-define ( 'BUILD_DIR', realpath ( __DIR__ . '/build' ) );
7
-define ( 'INCLUDE_EXTENSION', '/\.php$/' );
2
+define('PREFIX', 'orm-generator');
3
+define('PHAR_FILE', PREFIX . '.phar');
4
+define('PHAR_OUTPUT', 'bin' . DIRECTORY_SEPARATOR . PHAR_FILE);
5
+define('DEFAULT_STUB', 'phar-generate.php');
6
+define('BUILD_DIR', realpath(__DIR__ . '/build'));
7
+define('INCLUDE_EXTENSION', '/\.php$/');
8 8
 
9 9
 try
10 10
 {
11
-    if ( file_exists ( PHAR_OUTPUT ) )
11
+    if (file_exists(PHAR_OUTPUT))
12 12
     {
13
-        unlink ( PHAR_OUTPUT );
13
+        unlink(PHAR_OUTPUT);
14 14
     }
15 15
 
16 16
     /****************************************
17 17
      * phar file creation
18 18
      ****************************************/
19
-    $tarphar = new Phar( PHAR_OUTPUT );
20
-    $phar = $tarphar->convertToExecutable ( Phar::PHAR );
21
-    $phar->startBuffering ();
22
-    $phar->buildFromDirectory ( BUILD_DIR, INCLUDE_EXTENSION );
23
-    $stub = $phar->createDefaultStub ( DEFAULT_STUB );
24
-    $phar->setStub ( "#!/usr/bin/php\n" . $stub );
25
-    $phar->stopBuffering ();
19
+    $tarphar = new Phar(PHAR_OUTPUT);
20
+    $phar = $tarphar->convertToExecutable(Phar::PHAR);
21
+    $phar->startBuffering();
22
+    $phar->buildFromDirectory(BUILD_DIR, INCLUDE_EXTENSION);
23
+    $stub = $phar->createDefaultStub(DEFAULT_STUB);
24
+    $phar->setStub("#!/usr/bin/php\n" . $stub);
25
+    $phar->stopBuffering();
26 26
 
27 27
 
28 28
 }
29
-catch ( Exception $e )
29
+catch (Exception $e)
30 30
 {
31 31
     echo $e;
32 32
 }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
build/Classes/Db/DbTable.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @author Pedro Alarcao <[email protected]>
13 13
      */
14
-    final private function __construct ()
14
+    final private function __construct()
15 15
     {
16 16
     }
17 17
 
18 18
     /**
19 19
      * @return \Classes\Db\DbTable
20 20
      */
21
-    public static function getInstance(){
21
+    public static function getInstance() {
22 22
         return new self();
23 23
     }
24 24
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @var \Classes\Db\Column[]
42 42
      */
43
-    private $columns = array ();
43
+    private $columns = array();
44 44
 
45 45
     /**
46 46
      * @var string
@@ -50,25 +50,25 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @type \Classes\Db\Column[]
52 52
      */
53
-    private $primarykeys = array ();
53
+    private $primarykeys = array();
54 54
 
55 55
     /**
56 56
      * @type \Classes\Db\Column[]
57 57
      */
58
-    private $foreingkeys = array ();
58
+    private $foreingkeys = array();
59 59
 
60
-    private $dependence = array ();
60
+    private $dependence = array();
61 61
 
62 62
     /**
63 63
      * @type string[]
64 64
      */
65
-    private $sequence = array ();
65
+    private $sequence = array();
66 66
 
67
-    public function populate ( $array )
67
+    public function populate($array)
68 68
     {
69
-        $this->name = $array[ 'table' ];
70
-        $this->schema = isset( $array[ 'schema' ] ) ? $array[ 'schema' ] : null;
71
-        $this->database = $array[ 'database' ];
69
+        $this->name = $array['table'];
70
+        $this->schema = isset($array['schema']) ? $array['schema'] : null;
71
+        $this->database = $array['database'];
72 72
 
73 73
         return $this;
74 74
     }
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @param \Classes\Db\Column $column
80 80
      */
81
-    public function addColumn ( Column $column )
81
+    public function addColumn(Column $column)
82 82
     {
83
-        $this->columns[ $column->getName () ] = $column;
83
+        $this->columns[$column->getName()] = $column;
84 84
 
85 85
         return $this;
86 86
     }
@@ -90,24 +90,24 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return \Classes\Db\Column
92 92
      */
93
-    public function getColumn ( $columnName )
93
+    public function getColumn($columnName)
94 94
     {
95
-        return $this->columns[ $columnName ];
95
+        return $this->columns[$columnName];
96 96
     }
97 97
 
98
-    public function hasColumn ( $columnName )
98
+    public function hasColumn($columnName)
99 99
     {
100
-        return isset( $this->columns[ $columnName ] );
100
+        return isset($this->columns[$columnName]);
101 101
     }
102 102
 
103 103
     /**
104 104
      * @return \Classes\Db\Column[]
105 105
      */
106
-    public function getPrimaryKeys ()
106
+    public function getPrimaryKeys()
107 107
     {
108
-        if ( empty ( $this->primarykeys ) )
108
+        if (empty ($this->primarykeys))
109 109
         {
110
-            $this->primarykeys = array_filter ( $this->columns , function ( $column ){ return $column->isPrimaryKey (); } );
110
+            $this->primarykeys = array_filter($this->columns, function($column) { return $column->isPrimaryKey(); } );
111 111
         }
112 112
 
113 113
         return $this->primarykeys;
@@ -116,25 +116,25 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * @return bool
118 118
      */
119
-    public function hasPrimaryKey ()
119
+    public function hasPrimaryKey()
120 120
     {
121
-        if ( empty ( $this->sequence ) )
121
+        if (empty ($this->sequence))
122 122
         {
123
-            $this->getPrimaryKeys ();
123
+            $this->getPrimaryKeys();
124 124
         }
125 125
 
126
-        return ! empty ( $this->sequence );
126
+        return ! empty ($this->sequence);
127 127
     }
128 128
 
129 129
     /**
130 130
      * @return \Classes\Db\Column[]
131 131
      */
132
-    public function getForeingkeys ()
132
+    public function getForeingkeys()
133 133
     {
134 134
 
135
-        if ( empty ( $this->foreingkeys ) )
135
+        if (empty ($this->foreingkeys))
136 136
         {
137
-            $this->foreingkeys = array_filter ( $this->columns , function ( $column ){ return $column->isForeingkey (); } );
137
+            $this->foreingkeys = array_filter($this->columns, function($column) { return $column->isForeingkey(); } );
138 138
         }
139 139
 
140 140
         return $this->foreingkeys;
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
     /**
145 145
      * @return \Classes\Db\Column[]
146 146
      */
147
-    public function getDependences ()
147
+    public function getDependences()
148 148
     {
149
-        if ( empty ( $this->dependence ) )
149
+        if (empty ($this->dependence))
150 150
         {
151
-            $this->dependence = array_filter ( $this->columns , function ( $column ){ return $column->hasDependence (); } );
151
+            $this->dependence = array_filter($this->columns, function($column) { return $column->hasDependence(); } );
152 152
         }
153 153
 
154 154
         return $this->dependence;
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * @return string[]
159 159
      */
160
-    public function getSequences ()
160
+    public function getSequences()
161 161
     {
162
-        if ( empty ( $this->sequence ) )
162
+        if (empty ($this->sequence))
163 163
         {
164
-            $this->sequence = array_filter ( $this->columns , function ( $column ){ return $column->hasSequence (); } );
164
+            $this->sequence = array_filter($this->columns, function($column) { return $column->hasSequence(); } );
165 165
         }
166 166
 
167 167
         return $this->sequence;
@@ -170,20 +170,20 @@  discard block
 block discarded – undo
170 170
     /**
171 171
      * @return bool
172 172
      */
173
-    public function hasSequences ()
173
+    public function hasSequences()
174 174
     {
175
-        if ( empty ( $this->sequence ) )
175
+        if (empty ($this->sequence))
176 176
         {
177
-            $this->getSequences ();
177
+            $this->getSequences();
178 178
         }
179 179
 
180
-        return ! empty ( $this->sequence );
180
+        return ! empty ($this->sequence);
181 181
     }
182 182
 
183 183
     /**
184 184
      * @return \Classes\Db\Column[]
185 185
      */
186
-    public function getColumns ()
186
+    public function getColumns()
187 187
     {
188 188
         return $this->columns;
189 189
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     /**
192 192
      * @return string
193 193
      */
194
-    public function getName ()
194
+    public function getName()
195 195
     {
196 196
         return $this->name;
197 197
     }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     /**
200 200
      * @return string
201 201
      */
202
-    public function getSchema ()
202
+    public function getSchema()
203 203
     {
204 204
         return $this->schema;
205 205
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     /**
208 208
      * @return bool
209 209
      */
210
-    public function hasSchema ()
210
+    public function hasSchema()
211 211
     {
212 212
         return (bool) $this->schema;
213 213
     }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     /**
216 216
      * @return string
217 217
      */
218
-    public function getDatabase ()
218
+    public function getDatabase()
219 219
     {
220 220
         return $this->database;
221 221
     }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * @return string
225 225
      */
226
-    public function getNamespace ()
226
+    public function getNamespace()
227 227
     {
228 228
         return $this->namespace;
229 229
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     /**
232 232
      * @param string $Namespace
233 233
      */
234
-    public function setNamespace ( $namespace )
234
+    public function setNamespace($namespace)
235 235
     {
236 236
         $this->namespace = $namespace;
237 237
     }
Please login to merge, or discard this patch.
build/Classes/AdapterConfig/None.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     const SEPARETOR = "_";
24 24
 
25
-    protected function init ()
25
+    protected function init()
26 26
     {
27 27
     }
28 28
 
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return array
33 33
      */
34
-    protected function getParams ()
34
+    protected function getParams()
35 35
     {
36 36
 
37 37
     }
38 38
 
39
-    protected function parseFrameworkConfig ()
39
+    protected function parseFrameworkConfig()
40 40
     {
41 41
         // TODO: Implement parseFrameworkConfig() method.
42 42
     }
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return \Classes\AdapterMakerFile\AbstractAdapter[]
48 48
      */
49
-    public function getMakeFileInstances ()
49
+    public function getMakeFileInstances()
50 50
     {
51
-        return array (
52
-            DbTable::getInstance (),
53
-            Entity::getInstance (),
54
-            Model::getInstance ()
51
+        return array(
52
+            DbTable::getInstance(),
53
+            Entity::getInstance(),
54
+            Model::getInstance()
55 55
         );
56 56
     }
57 57
 
Please login to merge, or discard this patch.
build/Classes/AdapterMakerFile/Phalcon/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
     /**
13 13
      * @var void
14 14
      */
15
-    protected $fileTpl       = "model.php";
15
+    protected $fileTpl = "model.php";
16 16
 
17
-    public function parseRelation ( \Classes\MakerFile $makerFile, \Classes\Db\DbTable $dbTable )
17
+    public function parseRelation(\Classes\MakerFile $makerFile, \Classes\Db\DbTable $dbTable)
18 18
     {
19 19
        return array();
20 20
     }
Please login to merge, or discard this patch.
build/Classes/Db/Constrant.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @author Pedro Alarcao <[email protected]>
23 23
      */
24
-    final private function __construct ()
24
+    final private function __construct()
25 25
     {
26 26
     }
27 27
 
28
-    public static function getInstance ()
28
+    public static function getInstance()
29 29
     {
30 30
         return new self();
31 31
     }
@@ -55,34 +55,34 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @return Constrant
57 57
      */
58
-    public function populate ( $array )
58
+    public function populate($array)
59 59
     {
60
-        if ( isset( $array[ 'schema' ] ) )
60
+        if (isset($array['schema']))
61 61
         {
62
-            $this->schema = $array[ 'schema' ];
62
+            $this->schema = $array['schema'];
63 63
         }
64 64
 
65
-        $this->database = $array[ 'database' ];
66
-        $this->constrant = $array[ 'constrant' ];
67
-        $this->table = $array[ 'table' ];
68
-        $this->column = $array[ 'column' ];
65
+        $this->database = $array['database'];
66
+        $this->constrant = $array['constrant'];
67
+        $this->table = $array['table'];
68
+        $this->column = $array['column'];
69 69
 
70 70
         return $this;
71 71
     }
72 72
 
73
-    public function getDatabase (){
73
+    public function getDatabase() {
74 74
         return $this->database;
75 75
     }
76 76
 
77 77
     /**
78 78
      * @return string
79 79
      */
80
-    public function getNameConstrant ()
80
+    public function getNameConstrant()
81 81
     {
82 82
         return $this->constrant;
83 83
     }
84 84
 
85
-    public function hasSchema ()
85
+    public function hasSchema()
86 86
     {
87 87
         return (bool) $this->schema;
88 88
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     /**
91 91
      * @return string
92 92
      */
93
-    public function getSchema ()
93
+    public function getSchema()
94 94
     {
95 95
         return $this->schema;
96 96
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     /**
99 99
      * @return string
100 100
      */
101
-    public function getTable ()
101
+    public function getTable()
102 102
     {
103 103
         return $this->table;
104 104
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * @return string
108 108
      */
109
-    public function getColumn ()
109
+    public function getColumn()
110 110
     {
111 111
         return $this->column;
112 112
     }
Please login to merge, or discard this patch.
build/Classes/templates/phalcon/model.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,22 +3,22 @@
 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
- * @see  <?=$objTables->getNamespace()?>\<?=$this->getClassName ( $objTables->getName () ). "\n"?>
8
+ * @see  <?=$objTables->getNamespace()?>\<?=$this->getClassName($objTables->getName()) . "\n"?>
9 9
  *
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"?>
15
- * @version   <?=$this->config->version."\n"?>
12
+ * @copyright <?=$this->config->copyright . "\n"?>
13
+ * @license   <?=$this->config->license . "\n"?>
14
+ * @link      <?=$this->config->link . "\n"?>
15
+ * @version   <?=$this->config->version . "\n"?>
16 16
  */
17 17
 
18 18
 
19 19
 namespace <?=$objTables->getNamespace()?>;
20 20
 
21
-class <?=$this->getClassName ( $objTables->getName () )?> extends \<?=$objTables->getNamespace()?>\Entity\<?=$this->getClassName ( $objTables->getName () ). "\n"?>
21
+class <?=$this->getClassName($objTables->getName())?> extends \<?=$objTables->getNamespace()?>\Entity\<?=$this->getClassName($objTables->getName()) . "\n"?>
22 22
 {
23 23
        /* @TODO Codifique aqui */
24 24
 }
Please login to merge, or discard this patch.
build/Classes/templates/zf1/dbtable_abstract.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -3,18 +3,18 @@  discard block
 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"?>
17
- * @version   <?=$this->config->version."\n"?>
14
+ * @copyright <?=$this->config->copyright . "\n"?>
15
+ * @license   <?=$this->config->license . "\n"?>
16
+ * @link      <?=$this->config->link . "\n"?>
17
+ * @version   <?=$this->config->version . "\n"?>
18 18
  *
19 19
  * @abstract
20 20
  */
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
  * Zend DB Table Abstract class
24 24
  */
25 25
 
26
-abstract class <?=$this->config->namespace?$this->config->namespace."_":""?>Model_TableAbstract extends Zend_Db_Table_Abstract
26
+abstract class <?=$this->config->namespace ? $this->config->namespace . "_" : ""?>Model_TableAbstract extends Zend_Db_Table_Abstract
27 27
 {
28 28
     /**
29 29
      * Nome da tabela do banco de dados
Please login to merge, or discard this patch.
build/Classes/Db/Column.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @author Pedro Alarcao <[email protected]>
20 20
      */
21
-    final private function __construct ()
21
+    final private function __construct()
22 22
     {
23 23
     }
24 24
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @return \Classes\Db\Column
29 29
      */
30
-    public static function getInstance ()
30
+    public static function getInstance()
31 31
     {
32 32
         return new Column();
33 33
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * @return string
82 82
      */
83
-    public function getName ()
83
+    public function getName()
84 84
     {
85 85
         return $this->name;
86 86
     }
@@ -90,12 +90,12 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @param $array
92 92
      */
93
-    public function populate ( $array )
93
+    public function populate($array)
94 94
     {
95
-        $this->name       = $array[ 'name' ];
96
-        $this->type       = $array[ 'type' ];
97
-        $this->nullable   = $array[ 'nullable' ];
98
-        $this->max_length = $array[ 'max_length' ];
95
+        $this->name       = $array['name'];
96
+        $this->type       = $array['type'];
97
+        $this->nullable   = $array['nullable'];
98
+        $this->max_length = $array['max_length'];
99 99
 
100 100
         return $this;
101 101
     }
@@ -103,37 +103,37 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @return boolean
105 105
      */
106
-    public function isPrimaryKey ()
106
+    public function isPrimaryKey()
107 107
     {
108
-        return !empty( $this->primarykey );
108
+        return ! empty($this->primarykey);
109 109
     }
110 110
 
111 111
     /**
112 112
      * @return boolean
113 113
      */
114
-    public function isForeingkey ()
114
+    public function isForeingkey()
115 115
     {
116
-        return !empty( $this->refForeingkey );
116
+        return ! empty($this->refForeingkey);
117 117
     }
118 118
 
119 119
     /**
120 120
      * @return boolean
121 121
      */
122
-    public function hasDependence ()
122
+    public function hasDependence()
123 123
     {
124
-        return !empty( $this->dependences );
124
+        return ! empty($this->dependences);
125 125
     }
126 126
 
127 127
     /**
128 128
      * @return string
129 129
      */
130
-    public function getType ( $inPHP = true )
130
+    public function getType($inPHP = true)
131 131
     {
132
-        if ( !$inPHP ) {
132
+        if ( ! $inPHP) {
133 133
             return $this->type;
134 134
         }
135 135
 
136
-        return AbstractAdapter::convertTypeToPHP ( $this->type );
136
+        return AbstractAdapter::convertTypeToPHP($this->type);
137 137
     }
138 138
 
139 139
     /**
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
      *
143 143
      * @return bool
144 144
      */
145
-    public function equalType ( $type, $inPHP = true )
145
+    public function equalType($type, $inPHP = true)
146 146
     {
147
-        return $this->getType ( $inPHP ) === $type;
147
+        return $this->getType($inPHP) === $type;
148 148
     }
149 149
 
150 150
     /**
@@ -152,15 +152,15 @@  discard block
 block discarded – undo
152 152
      *
153 153
      * @return mixed
154 154
      */
155
-    public function getTypeByConfig ( AbstractAdapter $type )
155
+    public function getTypeByConfig(AbstractAdapter $type)
156 156
     {
157
-        return $type->convertTypeToTypeFramework ( $this->getType ( false ) );
157
+        return $type->convertTypeToTypeFramework($this->getType(false));
158 158
     }
159 159
 
160 160
     /**
161 161
      * @return string
162 162
      */
163
-    public function getComment ()
163
+    public function getComment()
164 164
     {
165 165
         return $this->comment;
166 166
     }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     /**
169 169
      * @param string $comment
170 170
      */
171
-    public function setComment ( $comment )
171
+    public function setComment($comment)
172 172
     {
173 173
         $this->comment = $comment;
174 174
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * @param \Classes\Db\Constrant $primarykey
180 180
      */
181
-    public function setPrimaryKey ( Constrant $primarykey )
181
+    public function setPrimaryKey(Constrant $primarykey)
182 182
     {
183 183
         $this->primarykey = $primarykey;
184 184
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     /**
189 189
      * @param \Classes\Db\Constrant $dependece
190 190
      */
191
-    public function addDependece ( Constrant $dependece )
191
+    public function addDependece(Constrant $dependece)
192 192
     {
193 193
         $this->dependences[] = $dependece;
194 194
 
@@ -202,11 +202,11 @@  discard block
 block discarded – undo
202 202
      *
203 203
      * @return $this
204 204
      */
205
-    public function createDependece ( $constraint_name, $table_name, $column_name, $database, $schema = null )
205
+    public function createDependece($constraint_name, $table_name, $column_name, $database, $schema = null)
206 206
     {
207
-        $objConstrantDependence = Constrant::getInstance ()
208
-                                           ->populate (
209
-                                               array (
207
+        $objConstrantDependence = Constrant::getInstance()
208
+                                           ->populate(
209
+                                               array(
210 210
                                                    'constrant' => $constraint_name,
211 211
                                                    'schema'    => $schema,
212 212
                                                    'table'     => $table_name,
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                                                )
216 216
                                            );
217 217
 
218
-        $this->addDependece ( $objConstrantDependence );
218
+        $this->addDependece($objConstrantDependence);
219 219
 
220 220
         return $this;
221 221
     }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * @param \Classes\Db\Constrant $reference
225 225
      */
226
-    public function addRefFk ( Constrant $reference )
226
+    public function addRefFk(Constrant $reference)
227 227
     {
228 228
         $this->refForeingkey = $reference;
229 229
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      *
236 236
      * @return \Classes\Db\Constrant
237 237
      */
238
-    public function getFks ()
238
+    public function getFks()
239 239
     {
240 240
         return $this->refForeingkey;
241 241
     }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      *
246 246
      * @return \Classes\Db\Constrant[]
247 247
      */
248
-    public function getDependences ()
248
+    public function getDependences()
249 249
     {
250 250
         return $this->dependences;
251 251
     }
@@ -253,9 +253,9 @@  discard block
 block discarded – undo
253 253
     /**
254 254
      * @return bool
255 255
      */
256
-    public function hasDependences ()
256
+    public function hasDependences()
257 257
     {
258
-        return (bool) count ( $this->dependences );
258
+        return (bool) count($this->dependences);
259 259
     }
260 260
 
261 261
     /**
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      *
264 264
      * @return \Classes\Db\Constrant[]
265 265
      */
266
-    public function getPrimaryKey ()
266
+    public function getPrimaryKey()
267 267
     {
268 268
         return $this->primarykey;
269 269
     }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     /**
272 272
      *
273 273
      */
274
-    public function getMaxLength ()
274
+    public function getMaxLength()
275 275
     {
276 276
         return $this->max_length;
277 277
     }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     /**
280 280
      * @return bool
281 281
      */
282
-    public function hasSequence ()
282
+    public function hasSequence()
283 283
     {
284 284
         return (bool) $this->sequence;
285 285
     }
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     /**
288 288
      * @return string
289 289
      */
290
-    public function getSequence ()
290
+    public function getSequence()
291 291
     {
292 292
         return $this->sequence;
293 293
     }
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     /**
296 296
      * @param string $sequence
297 297
      */
298
-    public function setSequence ( $sequence )
298
+    public function setSequence($sequence)
299 299
     {
300 300
         $this->sequence = $sequence;
301 301
     }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     /**
304 304
      * @return boolean
305 305
      */
306
-    public function isNullable ()
306
+    public function isNullable()
307 307
     {
308 308
         return $this->nullable;
309 309
     }
Please login to merge, or discard this patch.
build/Classes/AdapterConfig/Phalcon.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@  discard block
 block discarded – undo
22 22
      * @var string
23 23
      */
24 24
     protected $framework    = "phalcon";
25
-    public    $reservedWord = array ( 'public' => 'Main' );
25
+    public    $reservedWord = array('public' => 'Main');
26 26
 
27
-    protected $dataTypes = array (
27
+    protected $dataTypes = array(
28 28
         'int'    => 'integer',
29 29
         'float'  => 'decimal'
30 30
     );
31 31
 
32 32
     const SEPARETOR = "\\";
33 33
 
34
-    protected function init ()
34
+    protected function init()
35 35
     {
36 36
     }
37 37
 
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return array
42 42
      */
43
-    protected function getParams ()
43
+    protected function getParams()
44 44
     {
45 45
 
46 46
     }
47 47
 
48
-    protected function parseFrameworkConfig ()
48
+    protected function parseFrameworkConfig()
49 49
     {
50 50
         // TODO: Implement parseFrameworkConfig() method.
51 51
     }
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * @inheritdoc
55 55
      */
56
-    protected function getBaseNamespace ()
56
+    protected function getBaseNamespace()
57 57
     {
58
-        return array (
59
-            $this->arrConfig[ 'namespace' ],
58
+        return array(
59
+            $this->arrConfig['namespace'],
60 60
             'Models'
61 61
         );
62 62
     }
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @return \Classes\AdapterMakerFile\AbstractAdapter[]
68 68
      */
69
-    public function getMakeFileInstances ()
69
+    public function getMakeFileInstances()
70 70
     {
71
-        return array (
72
-            Entity::getInstance (),
73
-            Model::getInstance (),
74
-            Peer::getInstance ()
71
+        return array(
72
+            Entity::getInstance(),
73
+            Model::getInstance(),
74
+            Peer::getInstance()
75 75
         );
76 76
     }
77 77
 
Please login to merge, or discard this patch.