@@ -13,67 +13,67 @@ |
||
13 | 13 | parent::__construct(); |
14 | 14 | } |
15 | 15 | |
16 | - public function insertarDatos($id_blog, $nombre, $email, $comentario){ |
|
16 | + public function insertarDatos($id_blog, $nombre, $email, $comentario) { |
|
17 | 17 | |
18 | - $post=$this->_bd->consulta('INSERT INTO comentarios (id_blog, nombre, email, comentario) VALUES (:id_blog, :nombre, :email, :comentario)'); |
|
19 | - $post=$this->_bd->enlace(':id_blog', $id_blog); |
|
20 | - $post=$this->_bd->enlace(':nombre',$nombre); |
|
21 | - $post=$this->_bd->enlace(':email', $email); |
|
22 | - $post=$this->_bd->enlace(':comentario', $comentario); |
|
23 | - $post=$this->_bd->ejecucion(); |
|
24 | - return $post=$this->_bd->resultset(); |
|
18 | + $post = $this->_bd->consulta('INSERT INTO comentarios (id_blog, nombre, email, comentario) VALUES (:id_blog, :nombre, :email, :comentario)'); |
|
19 | + $post = $this->_bd->enlace(':id_blog', $id_blog); |
|
20 | + $post = $this->_bd->enlace(':nombre', $nombre); |
|
21 | + $post = $this->_bd->enlace(':email', $email); |
|
22 | + $post = $this->_bd->enlace(':comentario', $comentario); |
|
23 | + $post = $this->_bd->ejecucion(); |
|
24 | + return $post = $this->_bd->resultset(); |
|
25 | 25 | |
26 | 26 | } |
27 | 27 | |
28 | - public function llamarDatosCategoria(){ |
|
28 | + public function llamarDatosCategoria() { |
|
29 | 29 | //echo DB_HOST; |
30 | - $cate=$this->_bd->consulta('select * from categoria '); |
|
31 | - return $cate=$this->_bd->resultset();//=$this->_bd->resultset();$post->fetchall(); |
|
30 | + $cate = $this->_bd->consulta('select * from categoria '); |
|
31 | + return $cate = $this->_bd->resultset(); //=$this->_bd->resultset();$post->fetchall(); |
|
32 | 32 | |
33 | 33 | |
34 | 34 | } |
35 | 35 | |
36 | - public function llamarDatosTags(){ |
|
36 | + public function llamarDatosTags() { |
|
37 | 37 | //echo DB_HOST; |
38 | - $post=$this->_bd->consulta('select * from tags '); |
|
39 | - return $post=$this->_bd->resultset();//=$this->_bd->resultset();$post->fetchall(); |
|
38 | + $post = $this->_bd->consulta('select * from tags '); |
|
39 | + return $post = $this->_bd->resultset(); //=$this->_bd->resultset();$post->fetchall(); |
|
40 | 40 | |
41 | 41 | |
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | - public function llamarDatosBlog(){ |
|
45 | + public function llamarDatosBlog() { |
|
46 | 46 | //echo DB_HOST; |
47 | - $post=$this->_bd->consulta('select * from blog '); |
|
48 | - return $post=$this->_bd->resultset();//=$this->_bd->resultset();$post->fetchall(); |
|
47 | + $post = $this->_bd->consulta('select * from blog '); |
|
48 | + return $post = $this->_bd->resultset(); //=$this->_bd->resultset();$post->fetchall(); |
|
49 | 49 | |
50 | 50 | |
51 | 51 | } |
52 | 52 | |
53 | - public function llamarDatosBlogId($id){ |
|
53 | + public function llamarDatosBlogId($id) { |
|
54 | 54 | //echo DB_HOST; |
55 | - $idvideo=$id; |
|
56 | - $datosQuery="select idvideo from blog where id = :idvideo"; |
|
57 | - $gsent=$this->_bd->consulta('SELECT idvideo FROM blog WHERE id = :idvideo'); |
|
58 | - $gsent=$this->_bd->enlace(':idvideo', $idvideo); |
|
55 | + $idvideo = $id; |
|
56 | + $datosQuery = "select idvideo from blog where id = :idvideo"; |
|
57 | + $gsent = $this->_bd->consulta('SELECT idvideo FROM blog WHERE id = :idvideo'); |
|
58 | + $gsent = $this->_bd->enlace(':idvideo', $idvideo); |
|
59 | 59 | //$gsent=$this->_bd->ejecucion(); |
60 | - $row = $gsent=$this->_bd->single(); |
|
60 | + $row = $gsent = $this->_bd->single(); |
|
61 | 61 | return $row; |
62 | 62 | |
63 | 63 | } |
64 | 64 | |
65 | - public function llamarComentarios(){ |
|
65 | + public function llamarComentarios() { |
|
66 | 66 | //echo DB_HOST; |
67 | - $post=$this->_bd->consulta('select * from comentarios '); |
|
68 | - return $post=$this->_bd->resultset();//=$this->_bd->resultset();$post->fetchall(); |
|
67 | + $post = $this->_bd->consulta('select * from comentarios '); |
|
68 | + return $post = $this->_bd->resultset(); //=$this->_bd->resultset();$post->fetchall(); |
|
69 | 69 | |
70 | 70 | |
71 | 71 | } |
72 | 72 | |
73 | - public function contarComentarios($id){ |
|
73 | + public function contarComentarios($id) { |
|
74 | 74 | //echo DB_HOST; |
75 | - $post=$this->_bd->consulta('SELECT COUNT(*) FROM comentarios'); |
|
76 | - return $post=$this->_bd->resultset();//=$this->_bd->resultset();$post->fetchall(); |
|
75 | + $post = $this->_bd->consulta('SELECT COUNT(*) FROM comentarios'); |
|
76 | + return $post = $this->_bd->resultset(); //=$this->_bd->resultset();$post->fetchall(); |
|
77 | 77 | |
78 | 78 | |
79 | 79 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | } |
16 | 16 | |
17 | 17 | public function verificarBdM($bd,$usuario,$contraseña){ |
18 | - try { |
|
18 | + try { |
|
19 | 19 | $gbd = new PDO("mysql:host=localhost;dbname=".$bd, $usuario, $contraseña); |
20 | 20 | $gbd = null; |
21 | 21 | return true; |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | `clave` varchar(60) NOT NULL, |
53 | 53 | PRIMARY KEY (`id_usuario`) |
54 | 54 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;'); |
55 | - $this->_bd->ejecucion(); |
|
55 | + $this->_bd->ejecucion(); |
|
56 | 56 | |
57 | - $this->_bd->consulta('CREATE TABLE IF NOT EXISTS `sesion_usuario` ( |
|
57 | + $this->_bd->consulta('CREATE TABLE IF NOT EXISTS `sesion_usuario` ( |
|
58 | 58 | `id_usuario` int(10) NOT NULL, |
59 | 59 | `fecha_sesion` varchar(20) NOT NULL |
60 | 60 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;'); |
61 | - $this->_bd->ejecucion(); |
|
61 | + $this->_bd->ejecucion(); |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 | \ No newline at end of file |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | parent::__construct(); |
15 | 15 | } |
16 | 16 | |
17 | - public function verificarBdM($bd,$usuario,$contraseña){ |
|
17 | + public function verificarBdM($bd, $usuario, $contraseña) { |
|
18 | 18 | try { |
19 | - $gbd = new PDO("mysql:host=localhost;dbname=".$bd, $usuario, $contraseña); |
|
19 | + $gbd = new PDO("mysql:host=localhost;dbname=" . $bd, $usuario, $contraseña); |
|
20 | 20 | $gbd = null; |
21 | 21 | return true; |
22 | 22 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | } |
28 | 28 | |
29 | - public function crearTablas(){ |
|
29 | + public function crearTablas() { |
|
30 | 30 | |
31 | 31 | $this->_bd->consulta('CREATE TABLE IF NOT EXISTS `menu` ( |
32 | 32 | `id` int(5) NOT NULL, |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | } |
23 | 23 | |
24 | - public function seleccionUsuario($email, $clave){ |
|
24 | + public function seleccionUsuario($email, $clave){ |
|
25 | 25 | //echo DB_HOST; |
26 | 26 | |
27 | 27 | //$datosQuery="select usuario, email, nivel from usuarios where usuario = :usuario"; |
@@ -2,47 +2,47 @@ |
||
2 | 2 | class usuarioModelo extends Sistema\Nucleo\CFModelo |
3 | 3 | { |
4 | 4 | |
5 | - function ValidarUsuario($email,$password){ // Consulta Mysql para buscar en la tabla Usuario aquellos usuarios que coincidan con el mail y password ingresados en pantalla de login |
|
6 | - $query = $this->db->where('Usuario',$email); // La consulta se efectúa mediante Active Record. Una manera alternativa, y en lenguaje más sencillo, de generar las consultas Sql. |
|
7 | - $query = $this->db->where('Password',$password); |
|
5 | + function ValidarUsuario($email, $password) { // Consulta Mysql para buscar en la tabla Usuario aquellos usuarios que coincidan con el mail y password ingresados en pantalla de login |
|
6 | + $query = $this->db->where('Usuario', $email); // La consulta se efectúa mediante Active Record. Una manera alternativa, y en lenguaje más sencillo, de generar las consultas Sql. |
|
7 | + $query = $this->db->where('Password', $password); |
|
8 | 8 | $query = $this->db->get('Usuarios'); |
9 | - return $query->row(); // Devolvemos al controlador la fila que coincide con la búsqueda. (FALSE en caso que no existir coincidencias) |
|
9 | + return $query->row(); // Devolvemos al controlador la fila que coincide con la búsqueda. (FALSE en caso que no existir coincidencias) |
|
10 | 10 | } |
11 | 11 | |
12 | - public function insertarUsuario($id_usuario, $nombre, $email, $clave){ |
|
12 | + public function insertarUsuario($id_usuario, $nombre, $email, $clave) { |
|
13 | 13 | |
14 | - $post=$this->_bd->consulta('INSERT INTO comentarios (id_usuario, nombre, email, clave) VALUES (:id_usuario, :nombre, :email, :clave)'); |
|
15 | - $post=$this->_bd->enlace(':id_usuario', $id_usuariio); |
|
16 | - $post=$this->_bd->enlace(':nombre',$nombre); |
|
17 | - $post=$this->_bd->enlace(':email', $email); |
|
18 | - $post=$this->_bd->enlace(':clave', $clave); |
|
19 | - $post=$this->_bd->ejecucion(); |
|
20 | - return $post=$this->_bd->resultset(); |
|
14 | + $post = $this->_bd->consulta('INSERT INTO comentarios (id_usuario, nombre, email, clave) VALUES (:id_usuario, :nombre, :email, :clave)'); |
|
15 | + $post = $this->_bd->enlace(':id_usuario', $id_usuariio); |
|
16 | + $post = $this->_bd->enlace(':nombre', $nombre); |
|
17 | + $post = $this->_bd->enlace(':email', $email); |
|
18 | + $post = $this->_bd->enlace(':clave', $clave); |
|
19 | + $post = $this->_bd->ejecucion(); |
|
20 | + return $post = $this->_bd->resultset(); |
|
21 | 21 | |
22 | 22 | } |
23 | 23 | |
24 | - public function seleccionUsuario($email, $clave){ |
|
24 | + public function seleccionUsuario($email, $clave) { |
|
25 | 25 | //echo DB_HOST; |
26 | 26 | |
27 | 27 | //$datosQuery="select usuario, email, nivel from usuarios where usuario = :usuario"; |
28 | - $gsent=$this->_bd->consulta('select nombre, email, nivel from usuarios where email = :email and clave = :clave'); |
|
29 | - $gsent=$this->_bd->enlace(':email', $email); |
|
30 | - $gsent=$this->_bd->enlace(':clave', $clave); |
|
28 | + $gsent = $this->_bd->consulta('select nombre, email, nivel from usuarios where email = :email and clave = :clave'); |
|
29 | + $gsent = $this->_bd->enlace(':email', $email); |
|
30 | + $gsent = $this->_bd->enlace(':clave', $clave); |
|
31 | 31 | //$gsent=$this->_bd->ejecucion(); |
32 | - $row = $gsent=$this->_bd->single(); |
|
32 | + $row = $gsent = $this->_bd->single(); |
|
33 | 33 | return $row; |
34 | 34 | |
35 | 35 | } |
36 | 36 | |
37 | - public function insertarRegistro($nombre, $email, $nivel, $clave){ |
|
37 | + public function insertarRegistro($nombre, $email, $nivel, $clave) { |
|
38 | 38 | |
39 | - $post=$this->_bd->consulta('INSERT INTO usuarios (nombre, email, nivel, clave) VALUES (:nombre, :email, :nivel, :clave)'); |
|
39 | + $post = $this->_bd->consulta('INSERT INTO usuarios (nombre, email, nivel, clave) VALUES (:nombre, :email, :nivel, :clave)'); |
|
40 | 40 | |
41 | - $post=$this->_bd->enlace(':nombre',$nombre); |
|
42 | - $post=$this->_bd->enlace(':email', $email); |
|
43 | - $post=$this->_bd->enlace(':nivel', $nivel); |
|
44 | - $post=$this->_bd->enlace(':clave', $clave); |
|
45 | - $post=$this->_bd->ejecucion(); |
|
41 | + $post = $this->_bd->enlace(':nombre', $nombre); |
|
42 | + $post = $this->_bd->enlace(':email', $email); |
|
43 | + $post = $this->_bd->enlace(':nivel', $nivel); |
|
44 | + $post = $this->_bd->enlace(':clave', $clave); |
|
45 | + $post = $this->_bd->ejecucion(); |
|
46 | 46 | //return $post=$this->_bd->contarFilas(); |
47 | 47 | |
48 | 48 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | </script> |
21 | 21 | <!-- End Google Analytics --> |
22 | 22 | |
23 | - <title><?php if(isset($this->titulo)) echo $this->titulo; ?></title> |
|
23 | + <title><?php if (isset($this->titulo)) echo $this->titulo; ?></title> |
|
24 | 24 | |
25 | 25 | |
26 | 26 |
@@ -20,7 +20,10 @@ |
||
20 | 20 | </script> |
21 | 21 | <!-- End Google Analytics --> |
22 | 22 | |
23 | - <title><?php if(isset($this->titulo)) echo $this->titulo; ?></title> |
|
23 | + <title><?php if(isset($this->titulo)) { |
|
24 | + echo $this->titulo; |
|
25 | +} |
|
26 | +?></title> |
|
24 | 27 | |
25 | 28 | |
26 | 29 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <!-- Site footer --> |
2 | 2 | |
3 | 3 | |
4 | - <div class="footer fixedCf"> <?php echo CF_AP_CREDITOS; ?> --- Theme Inspinia </div> |
|
4 | + <div class="footer fixedCf"> <?php echo CF_AP_CREDITOS; ?> --- Theme Inspinia </div> |
|
5 | 5 | |
6 | 6 | |
7 | 7 |
@@ -530,7 +530,7 @@ |
||
530 | 530 | ); |
531 | 531 | $replacements = array( |
532 | 532 | $name, |
533 | - $_SERVER['PHP_SELF'].' '.$name, |
|
533 | + $_SERVER['PHP_SELF'] . ' ' . $name, |
|
534 | 534 | ); |
535 | 535 | |
536 | 536 | return str_replace($placeholders, $replacements, $this->getHelp()); |
@@ -115,8 +115,8 @@ |
||
115 | 115 | private function getInputOptionData(InputOption $option) |
116 | 116 | { |
117 | 117 | return array( |
118 | - 'name' => '--'.$option->getName(), |
|
119 | - 'shortcut' => $option->getShortcut() ? '-'.implode('|-', explode('|', $option->getShortcut())) : '', |
|
118 | + 'name' => '--' . $option->getName(), |
|
119 | + 'shortcut' => $option->getShortcut() ? '-' . implode('|-', explode('|', $option->getShortcut())) : '', |
|
120 | 120 | 'accept_value' => $option->acceptValue(), |
121 | 121 | 'is_value_required' => $option->isValueRequired(), |
122 | 122 | 'is_multiple' => $option->isArray(), |
@@ -32,12 +32,12 @@ discard block |
||
32 | 32 | protected function describeInputArgument(InputArgument $argument, array $options = array()) |
33 | 33 | { |
34 | 34 | $this->write( |
35 | - '**'.$argument->getName().':**'."\n\n" |
|
36 | - .'* Name: '.($argument->getName() ?: '<none>')."\n" |
|
37 | - .'* Is required: '.($argument->isRequired() ? 'yes' : 'no')."\n" |
|
38 | - .'* Is array: '.($argument->isArray() ? 'yes' : 'no')."\n" |
|
39 | - .'* Description: '.($argument->getDescription() ?: '<none>')."\n" |
|
40 | - .'* Default: `'.str_replace("\n", '', var_export($argument->getDefault(), true)).'`' |
|
35 | + '**' . $argument->getName() . ':**' . "\n\n" |
|
36 | + .'* Name: ' . ($argument->getName() ?: '<none>') . "\n" |
|
37 | + .'* Is required: ' . ($argument->isRequired() ? 'yes' : 'no') . "\n" |
|
38 | + .'* Is array: ' . ($argument->isArray() ? 'yes' : 'no') . "\n" |
|
39 | + .'* Description: ' . ($argument->getDescription() ?: '<none>') . "\n" |
|
40 | + .'* Default: `' . str_replace("\n", '', var_export($argument->getDefault(), true)) . '`' |
|
41 | 41 | ); |
42 | 42 | } |
43 | 43 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | protected function describeInputOption(InputOption $option, array $options = array()) |
48 | 48 | { |
49 | 49 | $this->write( |
50 | - '**'.$option->getName().':**'."\n\n" |
|
51 | - .'* Name: `--'.$option->getName().'`'."\n" |
|
52 | - .'* Shortcut: '.($option->getShortcut() ? '`-'.implode('|-', explode('|', $option->getShortcut())).'`' : '<none>')."\n" |
|
53 | - .'* Accept value: '.($option->acceptValue() ? 'yes' : 'no')."\n" |
|
54 | - .'* Is value required: '.($option->isValueRequired() ? 'yes' : 'no')."\n" |
|
55 | - .'* Is multiple: '.($option->isArray() ? 'yes' : 'no')."\n" |
|
56 | - .'* Description: '.($option->getDescription() ?: '<none>')."\n" |
|
57 | - .'* Default: `'.str_replace("\n", '', var_export($option->getDefault(), true)).'`' |
|
50 | + '**' . $option->getName() . ':**' . "\n\n" |
|
51 | + .'* Name: `--' . $option->getName() . '`' . "\n" |
|
52 | + .'* Shortcut: ' . ($option->getShortcut() ? '`-' . implode('|-', explode('|', $option->getShortcut())) . '`' : '<none>') . "\n" |
|
53 | + .'* Accept value: ' . ($option->acceptValue() ? 'yes' : 'no') . "\n" |
|
54 | + .'* Is value required: ' . ($option->isValueRequired() ? 'yes' : 'no') . "\n" |
|
55 | + .'* Is multiple: ' . ($option->isArray() ? 'yes' : 'no') . "\n" |
|
56 | + .'* Description: ' . ($option->getDescription() ?: '<none>') . "\n" |
|
57 | + .'* Default: `' . str_replace("\n", '', var_export($option->getDefault(), true)) . '`' |
|
58 | 58 | ); |
59 | 59 | } |
60 | 60 | |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | $command->mergeApplicationDefinition(false); |
94 | 94 | |
95 | 95 | $this->write( |
96 | - $command->getName()."\n" |
|
97 | - .str_repeat('-', strlen($command->getName()))."\n\n" |
|
98 | - .'* Description: '.($command->getDescription() ?: '<none>')."\n" |
|
99 | - .'* Usage: `'.$command->getSynopsis().'`'."\n" |
|
100 | - .'* Aliases: '.(count($command->getAliases()) ? '`'.implode('`, `', $command->getAliases()).'`' : '<none>') |
|
96 | + $command->getName() . "\n" |
|
97 | + .str_repeat('-', strlen($command->getName())) . "\n\n" |
|
98 | + .'* Description: ' . ($command->getDescription() ?: '<none>') . "\n" |
|
99 | + .'* Usage: `' . $command->getSynopsis() . '`' . "\n" |
|
100 | + .'* Aliases: ' . (count($command->getAliases()) ? '`' . implode('`, `', $command->getAliases()) . '`' : '<none>') |
|
101 | 101 | ); |
102 | 102 | |
103 | 103 | if ($help = $command->getProcessedHelp()) { |
@@ -119,17 +119,17 @@ discard block |
||
119 | 119 | $describedNamespace = isset($options['namespace']) ? $options['namespace'] : null; |
120 | 120 | $description = new ApplicationDescription($application, $describedNamespace); |
121 | 121 | |
122 | - $this->write($application->getName()."\n".str_repeat('=', strlen($application->getName()))); |
|
122 | + $this->write($application->getName() . "\n" . str_repeat('=', strlen($application->getName()))); |
|
123 | 123 | |
124 | 124 | foreach ($description->getNamespaces() as $namespace) { |
125 | 125 | if (ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) { |
126 | 126 | $this->write("\n\n"); |
127 | - $this->write('**'.$namespace['id'].':**'); |
|
127 | + $this->write('**' . $namespace['id'] . ':**'); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | $this->write("\n\n"); |
131 | - $this->write(implode("\n", array_map(function ($commandName) { |
|
132 | - return '* '.$commandName; |
|
131 | + $this->write(implode("\n", array_map(function($commandName) { |
|
132 | + return '* ' . $commandName; |
|
133 | 133 | }, $namespace['commands']))); |
134 | 134 | } |
135 | 135 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $this->writeText(sprintf(" <info>%-${nameWidth}s</info> %s%s", |
43 | 43 | $argument->getName(), |
44 | - str_replace("\n", "\n".str_repeat(' ', $nameWidth + 2), $argument->getDescription()), |
|
44 | + str_replace("\n", "\n" . str_repeat(' ', $nameWidth + 2), $argument->getDescription()), |
|
45 | 45 | $default |
46 | 46 | ), $options); |
47 | 47 | } |
@@ -61,9 +61,9 @@ discard block |
||
61 | 61 | $nameWithShortcutWidth = $nameWidth - strlen($option->getName()) - 2; |
62 | 62 | |
63 | 63 | $this->writeText(sprintf(" <info>%s</info> %-${nameWithShortcutWidth}s%s%s%s", |
64 | - '--'.$option->getName(), |
|
64 | + '--' . $option->getName(), |
|
65 | 65 | $option->getShortcut() ? sprintf('(-%s) ', $option->getShortcut()) : '', |
66 | - str_replace("\n", "\n".str_repeat(' ', $nameWidth + 2), $option->getDescription()), |
|
66 | + str_replace("\n", "\n" . str_repeat(' ', $nameWidth + 2), $option->getDescription()), |
|
67 | 67 | $default, |
68 | 68 | $option->isArray() ? '<comment> (multiple values allowed)</comment>' : '' |
69 | 69 | ), $options); |
@@ -120,12 +120,12 @@ discard block |
||
120 | 120 | |
121 | 121 | $this->writeText('<comment>Usage:</comment>', $options); |
122 | 122 | $this->writeText("\n"); |
123 | - $this->writeText(' '.$command->getSynopsis(), $options); |
|
123 | + $this->writeText(' ' . $command->getSynopsis(), $options); |
|
124 | 124 | $this->writeText("\n"); |
125 | 125 | |
126 | 126 | if (count($command->getAliases()) > 0) { |
127 | 127 | $this->writeText("\n"); |
128 | - $this->writeText('<comment>Aliases:</comment> <info>'.implode(', ', $command->getAliases()).'</info>', $options); |
|
128 | + $this->writeText('<comment>Aliases:</comment> <info>' . implode(', ', $command->getAliases()) . '</info>', $options); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | if ($definition = $command->getNativeDefinition()) { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | if ($help = $command->getProcessedHelp()) { |
139 | 139 | $this->writeText('<comment>Help:</comment>', $options); |
140 | 140 | $this->writeText("\n"); |
141 | - $this->writeText(' '.str_replace("\n", "\n ", $help), $options); |
|
141 | + $this->writeText(' ' . str_replace("\n", "\n ", $help), $options); |
|
142 | 142 | $this->writeText("\n"); |
143 | 143 | } |
144 | 144 | } |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | foreach ($description->getNamespaces() as $namespace) { |
199 | 199 | if (!$describedNamespace && ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) { |
200 | 200 | $this->writeText("\n"); |
201 | - $this->writeText('<comment>'.$namespace['id'].'</comment>', $options); |
|
201 | + $this->writeText('<comment>' . $namespace['id'] . '</comment>', $options); |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | foreach ($namespace['commands'] as $name) { |