1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +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,11 +1,11 @@
#!/bin/bash
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 ]]
then
then
echo -e '\e[00;31mPlease check files syntax\e[00m'
exit 1
else
else
echo -e "\e[1;32mSyntax is OK\e[00m"
fi

View file

@ -48,7 +48,7 @@
<div class="container" role="main">
<div class="jumbotron">
<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>
<h2><?php echo(T_("Error messages"));?>:</h2>
<?php AmpError::display('general'); ?>

View file

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

View file

@ -28,11 +28,13 @@
<tr>
<td><?php echo $field['description'];
?></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]);
?>" /></td>
</tr>
<?php
} ?>
</table>
<div class="formValidation">

View file

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

View file

@ -43,6 +43,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?>
</div>
<?php
}
?>
<?php if (AmpConfig::get('userflags')) {
@ -53,9 +54,11 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?>
</div>
<?php
}
?>
<?php
} ?>
<div id="information_actions">
<ul>
@ -90,6 +93,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?></a>
</li>
<?php
} ?>
<?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>
</li>
<?php
} ?>
<?php if (AmpConfig::get('directplay')) {
?>
@ -114,6 +119,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?>
</li>
<?php
} ?>
<?php if (Stream_Playlist::check_autoplay_append()) {
?>
@ -124,6 +130,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
?>
</li>
<?php
} ?>
<li>
<?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>
</li>
<?php
} ?>
<?php if ($playlist->has_access()) {
?>
@ -161,6 +169,7 @@ UI::show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title . '</d
</a>
</li>
<?php
} ?>
</ul>
</div>