Completed
Pull Request — 1.1 (#4)
by
unknown
02:47
created
src/Mouf/Utils/Patcher/Commands/ListPatchesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $patches = $this->patchService->getView();
55 55
 
56 56
         $rows = array_map(function($row) {
57
-            return [ $row['uniqueName'], $this->renderStatus($row['status']) ];
57
+            return [$row['uniqueName'], $this->renderStatus($row['status'])];
58 58
         }, $patches);
59 59
 
60 60
         $table = new Table($output);
Please login to merge, or discard this patch.
src/Mouf/Utils/Patcher/Controllers/PatchController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	 * @Action
44 44
 	 * @Logged
45 45
 	 */
46
-	public function defaultAction($name, $selfedit="false") {
46
+	public function defaultAction($name, $selfedit = "false") {
47 47
 		$this->initController($name, $selfedit);
48 48
 		
49 49
 		$patchService = new InstanceProxy($name, $selfedit == "true");
Please login to merge, or discard this patch.
src/Mouf/Utils/Patcher/PatchService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,15 +161,15 @@
 block discarded – undo
161 161
 			
162 162
 			$html = '<strong>Patcher</strong>: <a href="'.ROOT_URL.'vendor/mouf/mouf/patcher/?name='.$instanceName.'" class="btn btn-large btn-success patch-run-all"><i class="icon-arrow-right icon-white"></i> Apply ';
163 163
 			if ($nbAwaitingPatchs != 0) {
164
-				$html .= $nbAwaitingPatchs." awaiting patch".(($nbAwaitingPatchs != 1)?"es":"");
164
+				$html .= $nbAwaitingPatchs." awaiting patch".(($nbAwaitingPatchs != 1) ? "es" : "");
165 165
 				if ($nbPatchsInError != 0) {
166
-					$html .=" and";
166
+					$html .= " and";
167 167
 				}
168 168
 			}
169 169
 			if ($nbPatchsInError != 0) {
170
-				$html .=$nbPatchsInError." patch".(($nbPatchsInError != 1)?"es":"")." in error";
170
+				$html .= $nbPatchsInError." patch".(($nbPatchsInError != 1) ? "es" : "")." in error";
171 171
 			}
172
-			$html .='</a>';
172
+			$html .= '</a>';
173 173
 				
174 174
 			
175 175
 			return new MoufValidatorResult($status, $html);
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
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 <?php 
20 20
 	echo '<button class="btn btn-large btn-success patch-run-all"><i class="icon-arrow-right icon-white"></i> Apply ';
21 21
 	if ($this->nbAwaiting != 0) {
22
-		echo $this->nbAwaiting." awaiting patch".(($this->nbAwaiting != 1)?"es":"");
22
+		echo $this->nbAwaiting." awaiting patch".(($this->nbAwaiting != 1) ? "es" : "");
23 23
 		if ($this->nbError != 0) {
24 24
 			echo " and ";
25 25
 		}
26 26
 	}
27 27
 	if ($this->nbError != 0) {
28
-		echo $this->nbError." patch".(($this->nbError != 1)?"es":"")." in error";
28
+		echo $this->nbError." patch".(($this->nbError != 1) ? "es" : "")." in error";
29 29
 	}
30 30
 	echo '</button>';
31 31
 ?>
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
 		<td>
67 67
 		<?php 
68 68
 		
69
-		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>';
70
-		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>';
69
+		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>';
70
+		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>';
71 71
 		if ($patch['canRevert']) {
72
-			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>';
72
+			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>';
73 73
 		}
74 74
 		if ($patch['edit_url']) {
75 75
 			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>';
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	<tr>
83 83
 		<td colspan="4">
84 84
 			<div class="alert alert-error">
85
-			<strong>Last error message</strong>: <?php echo plainstring_to_htmlprotected($patch['error_message']);?>
85
+			<strong>Last error message</strong>: <?php echo plainstring_to_htmlprotected($patch['error_message']); ?>
86 86
 			</div>
87 87
 		</td>
88 88
 	</tr>
Please login to merge, or discard this patch.