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
Push — master ( fec112...b980e4 )
by Pedro
05:54 queued 03:08
created
build/Classes/AdaptersDriver/Mssql.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,6 @@
 block discarded – undo
54 54
 
55 55
     /**
56 56
      * @inheritDoc
57
-     * @param string $databaseName
58 57
      * @return \Classes\Db\DbTable[]
59 58
      */
60 59
     public function getTables($schema = 0)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return array[]
72 72
      */
73
-    public function getListColumns ()
73
+    public function getListColumns()
74 74
     {
75 75
         // TODO: Implement getListColumns() method.
76 76
     }
@@ -80,17 +80,17 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @return int
82 82
      */
83
-    public function getTotalTables ()
83
+    public function getTotalTables()
84 84
     {
85 85
         // TODO: Implement totalTables() method.
86 86
     }
87 87
 
88
-    public function getSequence ( $table , $column, $schema=0 )
88
+    public function getSequence($table, $column, $schema = 0)
89 89
     {
90 90
         // TODO: Implement getSequence() method.
91 91
     }
92 92
 
93
-    public function getListConstrant ()
93
+    public function getListConstrant()
94 94
     {
95 95
         // TODO: Implement getListConstrant() method.
96 96
     }
Please login to merge, or discard this patch.
build/Classes/Db/DbTable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
     }
221 221
 
222 222
     /**
223
-     * @param string $Namespace
223
+     * @param string $namespace
224 224
      */
225 225
     public function setNamespace ( $namespace )
226 226
     {
Please login to merge, or discard this 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/MakerConfigFile.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@
 block discarded – undo
44 44
     /**
45 45
      * Analisa e estrutura a Configuracao do generate
46 46
      *
47
-     * @param string $_path
48 47
      * @param array  $argv
49 48
      *
50 49
      * @return array
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -24,21 +24,21 @@  discard block
 block discarded – undo
24 24
 
25 25
     private $msg = "\033[0mPlease enter the value for %index% \033[1;33m[%config%]:\033[0m ";
26 26
 
27
-    private $configs = array (
28
-        'config-env'  => 'config' ,
29
-        'framework'   => 'none' ,
30
-        'driver'      => 'pgsql' ,
31
-        'environment' => 'dev' ,
32
-        'host'        => 'localhost' ,
33
-        'database'    => null ,
34
-        'schema'      => null ,
35
-        'username'    => null ,
27
+    private $configs = array(
28
+        'config-env'  => 'config',
29
+        'framework'   => 'none',
30
+        'driver'      => 'pgsql',
31
+        'environment' => 'dev',
32
+        'host'        => 'localhost',
33
+        'database'    => null,
34
+        'schema'      => null,
35
+        'username'    => null,
36 36
         'password'    => null
37 37
     );
38 38
 
39
-    public function __construct ( $argv , $basePath )
39
+    public function __construct($argv, $basePath)
40 40
     {
41
-        $this->argv = $this->parseConfig ( $basePath , $argv );
41
+        $this->argv = $this->parseConfig($basePath, $argv);
42 42
     }
43 43
 
44 44
     /**
@@ -50,32 +50,32 @@  discard block
 block discarded – undo
50 50
      * @return array
51 51
      * @throws \Exception
52 52
      */
53
-    private function parseConfig ( $basePath , $argv )
53
+    private function parseConfig($basePath, $argv)
54 54
     {
55
-        $this->baseLocation = dirname ( $basePath );
55
+        $this->baseLocation = dirname($basePath);
56 56
 
57
-        $arrayIO = array_diff_key ( $this->configs , $argv );
58
-        foreach ( $arrayIO as $index => $config )
57
+        $arrayIO = array_diff_key($this->configs, $argv);
58
+        foreach ($arrayIO as $index => $config)
59 59
         {
60
-            $attribs = array ( "%index%" => $index , "%config%" => $config );
61
-            echo strtr ( $this->msg , $attribs );
62
-            $line = trim ( fgets ( STDIN ) );
63
-            if ( ! empty( $line ) )
60
+            $attribs = array("%index%" => $index, "%config%" => $config);
61
+            echo strtr($this->msg, $attribs);
62
+            $line = trim(fgets(STDIN));
63
+            if ( ! empty($line))
64 64
             {
65
-                $this->configs[ $index ] = strtolower ( $line );
65
+                $this->configs[$index] = strtolower($line);
66 66
             }
67 67
         }
68
-        $this->configs ['version']     = Config::$version;
69
-        return $argv + array_filter ( $this->configs );
68
+        $this->configs ['version'] = Config::$version;
69
+        return $argv + array_filter($this->configs);
70 70
     }
71 71
 
72
-    public function run ()
72
+    public function run()
73 73
     {
74 74
         $path = $this->baseLocation . DIRECTORY_SEPARATOR . "configs";
75
-        self::makeDir ( $path );
76
-        self::makeSourcer (
77
-            $path . DIRECTORY_SEPARATOR . $this->argv[ 'config-env' ] . '.ini' ,
78
-            $this->getParsedTplContents ( $this->template , $this->argv )
75
+        self::makeDir($path);
76
+        self::makeSourcer(
77
+            $path . DIRECTORY_SEPARATOR . $this->argv['config-env'] . '.ini',
78
+            $this->getParsedTplContents($this->template, $this->argv)
79 79
         );
80 80
         echo "\n\033[1;32mSuccessfully process finished!\n\033[0m";
81 81
     }
Please login to merge, or discard this patch.
build/phar-generate.php 2 patches
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if ( ! ini_get ( 'short_open_tag' ) )
3
+if ( ! ini_get('short_open_tag'))
4 4
 {
5
-    die( "please enable short_open_tag directive in php.ini\n" );
5
+    die("please enable short_open_tag directive in php.ini\n");
6 6
 }
7 7
 
8
-if ( ! ini_get ( 'register_argc_argv' ) )
8
+if ( ! ini_get('register_argc_argv'))
9 9
 {
10
-    die( "please enable register_argc_argv directive in php.ini\n" );
10
+    die("please enable register_argc_argv directive in php.ini\n");
11 11
 }
12 12
 
13 13
 if (function_exists('ini_set')) {
14 14
     @ini_set('display_errors', 1);
15 15
 
16
-    $memoryInBytes = function ($value) {
16
+    $memoryInBytes = function($value) {
17 17
         $unit = strtolower(substr($value, -1, 1));
18 18
         $value = (int) $value;
19
-        switch($unit) {
19
+        switch ($unit) {
20 20
             case 'g':
21 21
                 $value *= 1024;
22 22
             // no break (cumulative multiplier)
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
     unset($memoryInBytes, $memoryLimit);
39 39
 }
40 40
 
41
-\Phar::interceptFileFuncs ();
41
+\Phar::interceptFileFuncs();
42 42
 
43
-set_include_path (
44
-    implode (
45
-        PATH_SEPARATOR ,
46
-        array (
47
-            realpath ( __DIR__ ) ,
48
-            get_include_path () ,
43
+set_include_path(
44
+    implode(
45
+        PATH_SEPARATOR,
46
+        array(
47
+            realpath(__DIR__),
48
+            get_include_path(),
49 49
         )
50 50
     )
51 51
 );
@@ -56,43 +56,43 @@  discard block
 block discarded – undo
56 56
 
57 57
 try
58 58
 {
59
-    $_path = realpath (
60
-        str_replace (
59
+    $_path = realpath(
60
+        str_replace(
61 61
             'phar://'
62
-            , '' , __DIR__
62
+            , '', __DIR__
63 63
         )
64 64
     );
65 65
 
66
-    $arrValid = array (
67
-        'version' ,
68
-        'help' ,
69
-        'status' ,
70
-        'init' ,
71
-        'config-env:' ,
72
-        'config-ini:' ,
73
-        'database:' ,
74
-        'schema:' ,
75
-        'driver:' ,
76
-        'framework:' ,
66
+    $arrValid = array(
67
+        'version',
68
+        'help',
69
+        'status',
70
+        'init',
71
+        'config-env:',
72
+        'config-ini:',
73
+        'database:',
74
+        'schema:',
75
+        'driver:',
76
+        'framework:',
77 77
         'path:'
78 78
     );
79 79
 
80
-    $argv = getopt ( null, $arrValid );
80
+    $argv = getopt(null, $arrValid);
81 81
 
82
-    if ( array_key_exists ( 'init', $argv ) )
82
+    if (array_key_exists('init', $argv))
83 83
     {
84
-        $maker = new \Classes\MakerConfigFile( $argv, $_path );
84
+        $maker = new \Classes\MakerConfigFile($argv, $_path);
85 85
     }
86 86
     else
87 87
     {
88
-        $maker = new \Classes\MakerFile( new \Classes\Config( $argv, $_path ) );
88
+        $maker = new \Classes\MakerFile(new \Classes\Config($argv, $_path));
89 89
     }
90 90
 
91
-    $maker->run ();
91
+    $maker->run();
92 92
 
93
-} catch ( \Exception $e )
93
+} catch (\Exception $e)
94 94
 {
95
-    die( $e->getMessage () );
95
+    die($e->getMessage());
96 96
 }
97 97
 
98 98
 __halt_compiler();
99 99
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,7 @@
 block discarded – undo
82 82
     if ( array_key_exists ( 'init', $argv ) )
83 83
     {
84 84
         $maker = new \Classes\MakerConfigFile( $argv, $_path );
85
-    }
86
-    else
85
+    } else
87 86
     {
88 87
         $maker = new \Classes\MakerFile( new \Classes\Config( $argv, $_path ) );
89 88
     }
Please login to merge, or discard this patch.
build/Classes/AdapterMakerFile/ZendFrameworkOne/Model.php 2 patches
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.
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/AdapterMakerFile/AbstractAdapter.php 2 patches
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.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -11,27 +11,27 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @type AbstractAdapter[]
13 13
      */
14
-    private static $_instance = array ();
14
+    private static $_instance = array();
15 15
 
16 16
     /**
17 17
      *
18 18
      */
19
-    final private function __construct ()
19
+    final private function __construct()
20 20
     {
21 21
     }
22 22
 
23 23
     /**
24 24
      * @return \Classes\AdapterMakerFile\AbstractAdapter
25 25
      */
26
-    public static function getInstance ()
26
+    public static function getInstance()
27 27
     {
28
-        $class = get_called_class ();
29
-        if ( !isset( self::$_instance[ $class ] ) )
28
+        $class = get_called_class();
29
+        if ( ! isset(self::$_instance[$class]))
30 30
         {
31
-            self::$_instance[ $class ] = new $class();
31
+            self::$_instance[$class] = new $class();
32 32
         }
33 33
 
34
-        return self::$_instance[ $class ];
34
+        return self::$_instance[$class];
35 35
     }
36 36
 
37 37
     /**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return array
42 42
      */
43
-    abstract public function parseRelation ( \Classes\MakerFile $makerFile, \Classes\Db\DbTable $dbTable );
43
+    abstract public function parseRelation(\Classes\MakerFile $makerFile, \Classes\Db\DbTable $dbTable);
44 44
 
45 45
     /**
46 46
      * @type string
@@ -72,15 +72,15 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @return bool
74 74
      */
75
-    public function hasDiretory ()
75
+    public function hasDiretory()
76 76
     {
77
-        return !empty( $this->pastName );
77
+        return ! empty($this->pastName);
78 78
     }
79 79
 
80 80
     /**
81 81
      * @return string
82 82
      */
83
-    public function getParentClass ()
83
+    public function getParentClass()
84 84
     {
85 85
         return $this->parentClass;
86 86
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * @return string
91 91
      */
92
-    public function getFileTpl ()
92
+    public function getFileTpl()
93 93
     {
94 94
         return $this->fileTpl;
95 95
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * @return string
99 99
      */
100
-    public function getParentFileTpl ()
100
+    public function getParentFileTpl()
101 101
     {
102 102
         return $this->parentFileTpl;
103 103
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * @return string
107 107
      */
108
-    public function getPastName ()
108
+    public function getPastName()
109 109
     {
110 110
         return $this->pastName;
111 111
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * @return bool
115 115
      */
116
-    public function isOverwrite ()
116
+    public function isOverwrite()
117 117
     {
118 118
        return $this->overwrite;
119 119
     }
Please login to merge, or discard this patch.
build/Classes/AdapterConfig/Exception.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 {
17 17
     private $msg = "As configuracoes a seguir sao obrigatorias: \033[0;31m%value%\033[0m";
18 18
 
19
-    public function __construct ( $array , $code = 0 )
19
+    public function __construct($array, $code = 0)
20 20
     {
21
-        $attribs = implode ( ', ' , array_keys ( $array ) );
22
-        parent::__construct ( str_replace ( "%value%" , $attribs , $this->msg ) , (int) $code );
21
+        $attribs = implode(', ', array_keys($array));
22
+        parent::__construct(str_replace("%value%", $attribs, $this->msg), (int) $code);
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.