Passed
Push — master ( 35c7f7...26965e )
by Mischa ter
01:29
created
View/Helper/SocialMediaHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  *
27 27
  * @var array
28 28
  */
29
-	public $helpers = ['Html'];
29
+	public $helpers = [ 'Html' ];
30 30
 
31 31
 /**
32 32
  * Creates a Facebook feed dialog link.
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
  * @param string $confirmMessage A javaScript confirmation message.
55 55
  * @return string An `<a />` element.
56 56
  */
57
-	public function facebook($title, $urlParameters = [], $options = [], $confirmMessage = '') {
57
+	public function facebook($title, $urlParameters = [ ], $options = [ ], $confirmMessage = '') {
58 58
 		$defaults = [
59 59
 			'app_id' => Configure::read('SocialMedia.facebookAppId'),
60 60
 			'redirect_uri' => $this->Html->url('', true),
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
  * @param string $confirmMessage A javaScript confirmation message.
85 85
  * @return string An `<a />` element.
86 86
  */
87
-	public function twitter($title, $urlParameters = [], $options = [], $confirmMessage = '') {
87
+	public function twitter($title, $urlParameters = [ ], $options = [ ], $confirmMessage = '') {
88 88
 		$defaults = [
89 89
 			'url' => $this->Html->url('', true)
90 90
 		];
Please login to merge, or discard this patch.
Test/Case/View/Helper/SocialMediaHelperTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 			'picture' => 'your-picture',
74 74
 			'redirect_uri' => $fullBaseUrl
75 75
 		];
76
-		$options = ['escape' => false, 'escapeTitle' => false];
76
+		$options = [ 'escape' => false, 'escapeTitle' => false ];
77 77
 
78 78
 		$result = $this->SocialMedia->facebook($image, $urlParameters, $options);
79 79
 		$expected = '<a href="https://www.facebook.com/dialog/feed?' .
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 			'text' => 'your-text',
115 115
 			'via' => 'your-via'
116 116
 		];
117
-		$options = ['escape' => false, 'escapeTitle' => false];
117
+		$options = [ 'escape' => false, 'escapeTitle' => false ];
118 118
 
119 119
 		$result = $this->SocialMedia->twitter($image, $urlParameters, $options);
120 120
 		$expected = '<a href="https://twitter.com/share?' .
Please login to merge, or discard this patch.