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 (#13)
by Pedro
04:05
created
build/Classes/AdapterMakerFile/ZendFrameworkOne/Model.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     public function parseRelation ( \Classes\MakerFile $makerFile, \Classes\Db\DbTable $dbTable )
21 21
     {
22
-       return array();
22
+        return array();
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
build/Classes/AdapterMakerFile/AbstractAdapter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
      */
118 118
     public function isOverwrite ()
119 119
     {
120
-       return $this->overwrite;
120
+        return $this->overwrite;
121 121
     }
122 122
 
123 123
 }
Please login to merge, or discard this patch.
build/Classes/AdapterMakerFile/Phalcon/Model.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     public function parseRelation ( \Classes\MakerFile $makerFile, \Classes\Db\DbTable $dbTable )
21 21
     {
22
-       return array();
22
+        return array();
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
build/Classes/AdapterMakerFile/Phalcon/Entity.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 '$this->belongsTo(\'%s\', \'%s\', \'%s\', array(\'alias\' => \'%s\'))',
55 55
                 $objColumn->getName (),
56 56
                 $makerFile->getConfig ()
57
-                          ->createClassNamespace ( $constrant ) . Phalcon::SEPARETOR . AbstractMaker::getClassName (
57
+                            ->createClassNamespace ( $constrant ) . Phalcon::SEPARETOR . AbstractMaker::getClassName (
58 58
                     $constrant->getTable ()
59 59
                 ),
60 60
                 $constrant->getColumn (),
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                     '$this->hasMany(\'%s\', \'%s\', \'%s\', array(\'alias\' => \'%s\'))',
87 87
                     $objColumn->getName (),
88 88
                     $makerFile->getConfig ()
89
-                              ->createClassNamespace ( $dependence )
89
+                                ->createClassNamespace ( $dependence )
90 90
                     . Phalcon::SEPARETOR
91 91
                     . AbstractMaker::getClassName ( $dependence->getTable () ),
92 92
                     $dependence->getColumn (),
Please login to merge, or discard this patch.
build/Classes/AdaptersDriver/Pgsql.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
         $pdo     = $this->getPDO ();
173 173
         $return1 = $pdo->query ( "SELECT pg_get_serial_sequence('$tableTemp', '$column');" )
174
-                       ->fetchColumn ();
174
+                        ->fetchColumn ();
175 175
 
176 176
         if ( !is_null ( $return1 ) ) {
177 177
             return $return1;
@@ -247,14 +247,14 @@  discard block
 block discarded – undo
247 247
             $strSchema = implode ( "', '", $this->schema );
248 248
 
249 249
             $this->totalTables = $this->getPDO ()
250
-                                      ->query (
251
-                                          "SELECT COUNT(table_name)  AS total
250
+                                        ->query (
251
+                                            "SELECT COUNT(table_name)  AS total
252 252
              FROM information_schema.tables
253 253
              WHERE
254 254
               table_type = 'BASE TABLE'
255 255
               AND table_schema IN ( '" . $strSchema . "' )"
256
-                                      )
257
-                                      ->fetchColumn ();
256
+                                        )
257
+                                        ->fetchColumn ();
258 258
         }
259 259
 
260 260
         return (int) $this->totalTables;
Please login to merge, or discard this patch.
build/Classes/AdaptersDriver/AbsractAdapter.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -103,31 +103,31 @@  discard block
 block discarded – undo
103 103
             $table = $this->getTable ( $table_name, $schema );
104 104
             if ( $table->hasColumn ( $constrant[ "column_name" ] ) ) {
105 105
                 $objConstrant = Constrant::getInstance ()
106
-                                         ->populate (
107
-                                             array (
108
-                                                 'constrant' => $constrant[ 'constraint_name' ],
109
-                                                 'schema'    => $constrant[ 'foreign_schema' ],
110
-                                                 'table'     => $constrant[ 'foreign_table' ],
111
-                                                 'column'    => $constrant[ 'foreign_column' ],
112
-                                                 'database'  => $this->database
113
-                                             )
114
-                                         );
106
+                                            ->populate (
107
+                                                array (
108
+                                                    'constrant' => $constrant[ 'constraint_name' ],
109
+                                                    'schema'    => $constrant[ 'foreign_schema' ],
110
+                                                    'table'     => $constrant[ 'foreign_table' ],
111
+                                                    'column'    => $constrant[ 'foreign_column' ],
112
+                                                    'database'  => $this->database
113
+                                                )
114
+                                            );
115 115
 
116 116
                 switch ( $constrant[ 'constraint_type' ] ) {
117 117
                     case "FOREIGN KEY":
118 118
                         $table->getColumn ( $constrant[ "column_name" ] )
119
-                              ->addRefFk ( $objConstrant );
119
+                                ->addRefFk ( $objConstrant );
120 120
                         break;
121 121
                     case"PRIMARY KEY":
122 122
                         $table->getColumn ( $constrant[ "column_name" ] )
123
-                              ->setPrimaryKey ( $objConstrant )
124
-                              ->setSequence (
125
-                                  $this->getSequence (
126
-                                      $table_name,
127
-                                      $constrant[ "column_name" ],
128
-                                      $schema
129
-                                  )
130
-                              );
123
+                                ->setPrimaryKey ( $objConstrant )
124
+                                ->setSequence (
125
+                                    $this->getSequence (
126
+                                        $table_name,
127
+                                        $constrant[ "column_name" ],
128
+                                        $schema
129
+                                    )
130
+                                );
131 131
                         break;
132 132
                 }
133 133
             }
@@ -145,13 +145,13 @@  discard block
 block discarded – undo
145 145
             $table = $this->getTable ( $table_name, $schema );
146 146
             if ( $table->hasColumn ( $constrant[ "foreign_column" ] ) ) {
147 147
                 $table->getColumn ( $constrant[ "foreign_column" ] )
148
-                      ->createDependece (
149
-                          $constrant[ 'constraint_name' ],
150
-                          $constrant[ 'table_name' ],
151
-                          $constrant[ 'column_name' ],
152
-                          $this->database,
153
-                          $constrant[ 'table_schema' ]
154
-                      );
148
+                        ->createDependece (
149
+                            $constrant[ 'constraint_name' ],
150
+                            $constrant[ 'table_name' ],
151
+                            $constrant[ 'column_name' ],
152
+                            $this->database,
153
+                            $constrant[ 'table_schema' ]
154
+                        );
155 155
             }
156 156
         }
157 157
     }
@@ -183,10 +183,10 @@  discard block
 block discarded – undo
183 183
                             );
184 184
 
185 185
             $this->getTable ( $key, $schema )
186
-                 ->addColumn ( $column )
187
-                 ->setNamespace (
188
-                     $this->config->createClassNamespace ( $this->getTable ( $key, $schema ) )
189
-                 );
186
+                    ->addColumn ( $column )
187
+                    ->setNamespace (
188
+                        $this->config->createClassNamespace ( $this->getTable ( $key, $schema ) )
189
+                    );
190 190
         }
191 191
     }
192 192
 
@@ -254,13 +254,13 @@  discard block
 block discarded – undo
254 254
     public function createTable ( $nameTable, $schema = 0 )
255 255
     {
256 256
         $this->objDbTables[ $schema ][ trim ( $nameTable ) ] = DbTable::getInstance ()
257
-                                                                      ->populate (
258
-                                                                          array (
259
-                                                                              'table'    => $nameTable,
260
-                                                                              'schema'   => $schema,
261
-                                                                              'database' => $this->database
262
-                                                                          )
263
-                                                                      );
257
+                                                                        ->populate (
258
+                                                                            array (
259
+                                                                                'table'    => $nameTable,
260
+                                                                                'schema'   => $schema,
261
+                                                                                'database' => $this->database
262
+                                                                            )
263
+                                                                        );
264 264
 
265 265
         return $this;
266 266
     }
Please login to merge, or discard this patch.
build/Classes/MakerFile.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         foreach ( $arrFoldersName as $index => $folderName ) {
90 90
             $arrFoldersName[ $index ] = $this->getConfig ()
91
-                                             ->replaceReservedWord ( $folderName );
91
+                                                ->replaceReservedWord ( $folderName );
92 92
         }
93 93
 
94 94
         return implode ( DIRECTORY_SEPARATOR, array_filter ( $arrFoldersName ) );
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 $folderName,
142 142
                 $this->getClassName (
143 143
                     $this->getConfig ()
144
-                         ->getDatabase ()
144
+                            ->getDatabase ()
145 145
                 )
146 146
             );
147 147
             $this->location = array ( $this->filterLocation ( $url ) );
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      * @return String
274 274
      */
275 275
     protected function getParsedTplContents ( $tplFile, $vars = array (), \Classes\Db\DbTable $objTables = null,
276
-                                              $objMakeFile = null )
276
+                                                $objMakeFile = null )
277 277
     {
278 278
 
279 279
         $arrUrl = array (
Please login to merge, or discard this patch.
build/Classes/Db/Column.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -205,15 +205,15 @@
 block discarded – undo
205 205
     public function createDependece ( $constraint_name, $table_name, $column_name, $database, $schema = null )
206 206
     {
207 207
         $objConstrantDependence = Constrant::getInstance ()
208
-                                           ->populate (
209
-                                               array (
210
-                                                   'constrant' => $constraint_name,
211
-                                                   'schema'    => $schema,
212
-                                                   'table'     => $table_name,
213
-                                                   'column'    => $column_name,
214
-                                                   'database'  => $database
215
-                                               )
216
-                                           );
208
+                                            ->populate (
209
+                                                array (
210
+                                                    'constrant' => $constraint_name,
211
+                                                    'schema'    => $schema,
212
+                                                    'table'     => $table_name,
213
+                                                    'column'    => $column_name,
214
+                                                    'database'  => $database
215
+                                                )
216
+                                            );
217 217
 
218 218
         $this->addDependece ( $objConstrantDependence );
219 219
 
Please login to merge, or discard this patch.
build/Classes/AdapterConfig/AbstractAdapter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@
 block discarded – undo
391 391
         $matches = preg_grep ( '*\.*' , $this->getTablesName () );
392 392
         if ( count ( $matches ) )
393 393
         {
394
-           die("error: Table name must not contain the schema\n");
394
+            die("error: Table name must not contain the schema\n");
395 395
         }
396 396
     }
397 397
 
Please login to merge, or discard this patch.