1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

Some extra PHPCS fixes

This commit is contained in:
Phyks (Lucas Verney) 2016-08-01 22:10:12 +02:00
parent e86ea9a099
commit 8e0b38e0c0
6 changed files with 23 additions and 7 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
echo -e "\e[1;34mChecking syntax error\e[00m" echo -e "\e[1;34mChecking syntax error\e[00m"
output=$(find . -name '*.php' -exec php --syntax-check {} \; | grep -v 'No syntax errors detected in') output=$(find . -name '*.php' -not -path "./lib/vendor/*" -exec php --syntax-check {} \; | grep -v 'No syntax errors detected in')
if [[ $output ]] if [[ $output ]]
then then
echo -e '\e[00;31mPlease check files syntax\e[00m' echo -e '\e[00;31mPlease check files syntax\e[00m'

View file

@ -48,7 +48,7 @@
<div class="container" role="main"> <div class="container" role="main">
<div class="jumbotron"> <div class="jumbotron">
<h1><?php echo T_('Error'); ?></h1> <h1><?php echo T_('Error'); ?></h1>
<p><?php echo (T_("The following error has occured, you will automaticly be redirected after 10 seconds.") ); ?></p> <p><?php echo(T_("The following error has occured, you will automaticly be redirected after 10 seconds.")); ?></p>
</div> </div>
<h2><?php echo(T_("Error messages"));?>:</h2> <h2><?php echo(T_("Error messages"));?>:</h2>
<?php AmpError::display('general'); ?> <?php AmpError::display('general'); ?>

View file

@ -28,10 +28,12 @@
<tr> <tr>
<td><?php echo $field['description']; <td><?php echo $field['description'];
?></td> ?></td>
<td><input type="<?php echo $field["type"]; ?>" name="<?php echo $key; <td><input type="<?php echo $field["type"];
?>" name="<?php echo $key;
?>" /></td> ?>" /></td>
</tr> </tr>
<?php <?php
} ?> } ?>
</table> </table>
<div class="formValidation"> <div class="formValidation">

View file

@ -28,11 +28,13 @@
<tr> <tr>
<td><?php echo $field['description']; <td><?php echo $field['description'];
?></td> ?></td>
<td><input type="<?php echo $field['type'];?>" name="<?php echo $key; <td><input type="<?php echo $field['type'];
?>" name="<?php echo $key;
?>" value="<?php echo scrub_out($instance[$key]); ?>" value="<?php echo scrub_out($instance[$key]);
?>" /></td> ?>" /></td>
</tr> </tr>
<?php <?php
} ?> } ?>
</table> </table>
<div class="formValidation"> <div class="formValidation">

View file

@ -28,6 +28,7 @@
<th><?php echo $field['description']; <th><?php echo $field['description'];
?></th> ?></th>
<?php <?php
} ?> } ?>
<th><?php echo T_('Action'); ?></th> <th><?php echo T_('Action'); ?></th>
</tr> </tr>
@ -46,9 +47,10 @@
} else { } else {
echo "*****"; echo "*****";
} }
?> ?>
</td> </td>
<?php <?php
} }
?> ?>
<td> <td>
@ -61,6 +63,7 @@
</td> </td>
</tr> </tr>
<?php <?php
} ?> } ?>
</table> </table>
<?php UI::show_box_bottom(); ?> <?php UI::show_box_bottom(); ?>

View file

@ -43,6 +43,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?> ?>
</div> </div>
<?php <?php
} }
?> ?>
<?php if (AmpConfig::get('userflags')) { <?php if (AmpConfig::get('userflags')) {
@ -53,9 +54,11 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?> ?>
</div> </div>
<?php <?php
} }
?> ?>
<?php <?php
} ?> } ?>
<div id="information_actions"> <div id="information_actions">
<ul> <ul>
@ -90,6 +93,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?></a> ?></a>
</li> </li>
<?php <?php
} ?> } ?>
<?php if (Access::check_function('batch_download') && check_can_zip('playlist')) { <?php if (Access::check_function('batch_download') && check_can_zip('playlist')) {
?> ?>
@ -104,6 +108,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
</a> </a>
</li> </li>
<?php <?php
} ?> } ?>
<?php if (AmpConfig::get('directplay')) { <?php if (AmpConfig::get('directplay')) {
?> ?>
@ -114,6 +119,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?> ?>
</li> </li>
<?php <?php
} ?> } ?>
<?php if (Stream_Playlist::check_autoplay_append()) { <?php if (Stream_Playlist::check_autoplay_append()) {
?> ?>
@ -124,6 +130,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?> ?>
</li> </li>
<?php <?php
} ?> } ?>
<li> <li>
<?php echo Ajax::button('?action=basket&type=playlist&id=' . $playlist->id, 'add', T_('Add all to temporary playlist'), 'play_playlist'); ?> <?php echo Ajax::button('?action=basket&type=playlist&id=' . $playlist->id, 'add', T_('Add all to temporary playlist'), 'play_playlist'); ?>
@ -146,6 +153,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
</a> </a>
</li> </li>
<?php <?php
} ?> } ?>
<?php if ($playlist->has_access()) { <?php if ($playlist->has_access()) {
?> ?>
@ -161,6 +169,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
</a> </a>
</li> </li>
<?php <?php
} ?> } ?>
</ul> </ul>
</div> </div>