Completed
Push — 2.1 ( 8c7631...c23fe5 )
by David
11s
created
src/Mouf/Utils/Patcher/Commands/ResetPatchesCommand.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Mouf\Utils\Patcher\Commands;
3 3
 
4
-use Mouf\Utils\Patcher\PatchInterface;
5 4
 use Mouf\Utils\Patcher\PatchService;
6
-use Symfony\Component\Console\Helper\Table;
7
-use Symfony\Component\Console\Input\InputArgument;
8 5
 use Symfony\Component\Console\Input\InputOption;
9 6
 use Symfony\Component\Console\Output\OutputInterface;
10 7
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
src/views/patchesList.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@  discard block
 block discarded – undo
20 20
 if ($this->nbAwaiting != 0 || $this->nbError != 0) {
21 21
 	echo '<button name="action" value="apply" class="btn btn-large btn-success patch-run-all"><i class="icon-arrow-right icon-white"></i> Apply ';
22 22
 	if ($this->nbAwaiting != 0) {
23
-		echo $this->nbAwaiting." awaiting patch".(($this->nbAwaiting != 1)?"es":"");
23
+		echo $this->nbAwaiting." awaiting patch".(($this->nbAwaiting != 1) ? "es" : "");
24 24
 		if ($this->nbError != 0) {
25 25
 			echo " and ";
26 26
 		}
27 27
 	}
28 28
 	if ($this->nbError != 0) {
29
-		echo $this->nbError." patch".(($this->nbError != 1)?"es":"")." in error";
29
+		echo $this->nbError." patch".(($this->nbError != 1) ? "es" : "")." in error";
30 30
 	}
31 31
 	echo '</button>';
32 32
 }
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
 		<td>
71 71
 		<?php 
72 72
 		
73
-		echo '<button class="btn btn-mini btn-success patch-apply" '.(($patch['status'] == PatchInterface::STATUS_APPLIED)?'disabled="disabled"':'').'><i class="icon-arrow-right icon-white"></i> Apply</button>';
74
-		echo ' <button class="btn btn-mini btn-info patch-skip" '.(($patch['status'] == PatchInterface::STATUS_APPLIED || $patch['status'] == PatchInterface::STATUS_SKIPPED)?'disabled="disabled"':'').'><i class="icon-share-alt icon-white"></i> Skip</button>';
73
+		echo '<button class="btn btn-mini btn-success patch-apply" '.(($patch['status'] == PatchInterface::STATUS_APPLIED) ? 'disabled="disabled"' : '').'><i class="icon-arrow-right icon-white"></i> Apply</button>';
74
+		echo ' <button class="btn btn-mini btn-info patch-skip" '.(($patch['status'] == PatchInterface::STATUS_APPLIED || $patch['status'] == PatchInterface::STATUS_SKIPPED) ? 'disabled="disabled"' : '').'><i class="icon-share-alt icon-white"></i> Skip</button>';
75 75
 		if ($patch['canRevert']) {
76
-			echo ' <button class="btn btn-mini btn-inverse patch-revert" '.(($patch['status'] == PatchInterface::STATUS_AWAITING)?'disabled="disabled"':'').'><i class="icon-arrow-left icon-white"></i> Revert</button>';
76
+			echo ' <button class="btn btn-mini btn-inverse patch-revert" '.(($patch['status'] == PatchInterface::STATUS_AWAITING) ? 'disabled="disabled"' : '').'><i class="icon-arrow-left icon-white"></i> Revert</button>';
77 77
 		}
78 78
 		if ($patch['edit_url']) {
79 79
 			echo ' <a class="btn btn-mini btn-danger patch-edit" href="'.ROOT_URL.$patch['edit_url'].'"><i class="icon-edit icon-white"></i> Edit</a>';
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	<tr>
87 87
 		<td colspan="4">
88 88
 			<div class="alert alert-error">
89
-			<strong>Last error message</strong>: <?php echo plainstring_to_htmlprotected($patch['error_message']);?>
89
+			<strong>Last error message</strong>: <?php echo plainstring_to_htmlprotected($patch['error_message']); ?>
90 90
 			</div>
91 91
 		</td>
92 92
 	</tr>
Please login to merge, or discard this patch.
src/views/applyPatches.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     <input name="selfedit" type="hidden" value="<?php echo plainstring_to_htmlprotected($this->selfedit); ?>"></input>
15 15
     <input name="action" type="hidden" value="<?php echo plainstring_to_htmlprotected($this->action); ?>"></input>
16 16
 <?php foreach ($this->nbPatchesByType as $name => $number): ?>
17
-    <label class="checkbox"><input type="checkbox" name="types[]" value="<?= plainstring_to_htmlprotected($name) ?>" <?php if ($name == '') { echo "checked readonly"; } ?> /> <?= plainstring_to_htmlprotected($name?:'default') ?> (<?= $number ?> patch<?= $number > 1 ? 'es':'' ?>)</label>
17
+    <label class="checkbox"><input type="checkbox" name="types[]" value="<?= plainstring_to_htmlprotected($name) ?>" <?php if ($name == '') { echo "checked readonly"; } ?> /> <?= plainstring_to_htmlprotected($name ?: 'default') ?> (<?= $number ?> patch<?= $number > 1 ? 'es' : '' ?>)</label>
18 18
 <?php endforeach; ?>
19 19
 
20 20
     <?php if ($this->action === 'reset'): ?>
Please login to merge, or discard this patch.