Completed
Push — scrutinizer ( 6a9613...4d54e2 )
by Fabio
37:44 queued 14:38
created
tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -13,23 +13,23 @@  discard block
 block discarded – undo
13 13
 		}
14 14
 	}
15 15
 
16
-    public function getDatePicker()
17
-    {
18
-        $this->ensureChildControls();
19
-        return $this->getRegisteredObject('datePicker');
20
-    }
16
+	public function getDatePicker()
17
+	{
18
+		$this->ensureChildControls();
19
+		return $this->getRegisteredObject('datePicker');
20
+	}
21 21
     
22
-    public function getHourPicker()
23
-    {
24
-        $this->ensureChildControls();
25
-        return $this->getRegisteredObject('hourPicker');
26
-    }
22
+	public function getHourPicker()
23
+	{
24
+		$this->ensureChildControls();
25
+		return $this->getRegisteredObject('hourPicker');
26
+	}
27 27
     
28
-    public function getMinutePicker()
29
-    {
30
-        $this->ensureChildControls();
31
-        return $this->getRegisteredObject('minutePicker');
32
-    }
28
+	public function getMinutePicker()
29
+	{
30
+		$this->ensureChildControls();
31
+		return $this->getRegisteredObject('minutePicker');
32
+	}
33 33
 	
34 34
 	public function getShowHours()
35 35
 	{
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
 			return $this->TimeStamp;
92 92
 		}
93 93
 	}
94
-        public function getIsValid()
95
-        {
96
-            return $this->_isValid;
97
-        }
98
-        public function setIsValid($value)
99
-        {
100
-            $this->_isValid=TPropertyValue::ensureBoolean($value);
101
-        }
94
+		public function getIsValid()
95
+		{
96
+			return $this->_isValid;
97
+		}
98
+		public function setIsValid($value)
99
+		{
100
+			$this->_isValid=TPropertyValue::ensureBoolean($value);
101
+		}
102 102
 }
Please login to merge, or discard this patch.
tests/FunctionalTests/features/protected/pages/MyJavascriptLib.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 class MyJavascriptLib extends TComponent
4 4
 {
5
-    private $_packages=array(); //keep track of all registrations
5
+	private $_packages=array(); //keep track of all registrations
6 6
 
7 7
 	private $_manager;
8 8
 
Please login to merge, or discard this patch.
tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 	function test()
6 6
 	{
7 7
 		$base='ctl0_Content_';
8
-	    $this->url("active-controls/index.php?page=ActiveHiddenFieldTest");
9
-	    $fieldEmpty = 'No longer empty';
10
-	    $fieldUsed = 'My value';
8
+		$this->url("active-controls/index.php?page=ActiveHiddenFieldTest");
9
+		$fieldEmpty = 'No longer empty';
10
+		$fieldUsed = 'My value';
11 11
 
12
-	    $this->assertSourceContains('Value of current hidden field');
12
+		$this->assertSourceContains('Value of current hidden field');
13 13
 		$this->byId("{$base}Button1")->click();
14 14
 		$this->pause(800);
15 15
 		$this->assertText("{$base}ResponseLabel", $fieldEmpty);
Please login to merge, or discard this patch.
tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 		$this->pause(50);
32 32
 		$this->assertEquals('ok', $this->alertText());
33 33
 		$this->acceptAlert();
34
-    $this->pause(500);
34
+	$this->pause(500);
35 35
 		$this->assertEquals('baz!', $this->alertText());
36 36
 		$this->acceptAlert();
37 37
 	}
Please login to merge, or discard this patch.
tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -2,50 +2,50 @@
 block discarded – undo
2 2
 
3 3
 class GerTurno2 extends TPage {
4 4
     
5
-    private $_turnos = null;
5
+	private $_turnos = null;
6 6
 
7 7
 
8
-    public function onLoad($param) {
9
-        parent::onLoad($param);
8
+	public function onLoad($param) {
9
+		parent::onLoad($param);
10 10
         
11
-        $this->loadTurnoOptions();
11
+		$this->loadTurnoOptions();
12 12
         
13
-        if (!$this->IsPostBack) {
14
-            $this->ativaModoEdicao();
15
-        }
16
-    }
13
+		if (!$this->IsPostBack) {
14
+			$this->ativaModoEdicao();
15
+		}
16
+	}
17 17
     
18 18
     
19
-    protected function loadTurnoOptions()
20
-    {
21
-    	$this->DDropTurno->DataTextField="descricao";
22
-        $this->DDropTurno->DataValueField="id";
23
-        $this->_turnos = array(
19
+	protected function loadTurnoOptions()
20
+	{
21
+		$this->DDropTurno->DataTextField="descricao";
22
+		$this->DDropTurno->DataValueField="id";
23
+		$this->_turnos = array(
24 24
 							array('id' => 1, 'codigo'=>'test 1', 'descricao' => 'hello 1'),
25 25
 							array('id' => 2, 'codigo'=>'test 2', 'descricao' => 'hello 2')
26 26
 						);
27
-        $this->DDropTurno->setDataSource($this->_turnos);
28
-        $this->DDropTurno->dataBind();
29
-    }
27
+		$this->DDropTurno->setDataSource($this->_turnos);
28
+		$this->DDropTurno->dataBind();
29
+	}
30 30
 
31 31
 
32
-    protected function ativaModoEdicao() {
33
-        $this->loadDadosTurno($this->DDropTurno->getSelectedValue());
34
-    }
32
+	protected function ativaModoEdicao() {
33
+		$this->loadDadosTurno($this->DDropTurno->getSelectedValue());
34
+	}
35 35
 
36 36
     
37
-    protected function loadDadosTurno($id) {
38
-        foreach ($this->_turnos as $key => $tur) {
39
-        	if ($tur['id'] == $id) {
40
-        	    $this->Codigo->setText($tur['codigo']);
41
-                $this->Descricao->setText($tur['descricao']);
42
-        	}
43
-        }
44
-    }
37
+	protected function loadDadosTurno($id) {
38
+		foreach ($this->_turnos as $key => $tur) {
39
+			if ($tur['id'] == $id) {
40
+				$this->Codigo->setText($tur['codigo']);
41
+				$this->Descricao->setText($tur['descricao']);
42
+			}
43
+		}
44
+	}
45 45
 
46 46
     
47
-    public function trocaTurno($sender,$param) {
48
-        $this->loadDadosTurno($sender->getSelectedValue());
49
-    }
47
+	public function trocaTurno($sender,$param) {
48
+		$this->loadDadosTurno($sender->getSelectedValue());
49
+	}
50 50
     
51 51
 }
Please login to merge, or discard this patch.
FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 {
5 5
 	public function showA()
6 6
 	{
7
-    	$this->pnlB->Visible = false;
8
-    	$this->pnlA->Visible = true;
9
-    }
7
+		$this->pnlB->Visible = false;
8
+		$this->pnlA->Visible = true;
9
+	}
10 10
 
11
-    public function showB()
12
-    {
13
-    	$this->pnlB->Visible = true;
14
-    	$this->pnlA->Visible = false;
15
-    }
11
+	public function showB()
12
+	{
13
+		$this->pnlB->Visible = true;
14
+		$this->pnlA->Visible = false;
15
+	}
16 16
 }
Please login to merge, or discard this patch.
tests/FunctionalTests/active-controls/protected/pages/DMessagesPanel.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -2,60 +2,60 @@
 block discarded – undo
2 2
 
3 3
 class DMessagesPanel extends TTemplateControl
4 4
 {
5
-    private $_panelCssClass = '';
5
+	private $_panelCssClass = '';
6 6
     
7
-    public function onInit($param)
8
-    {
9
-        parent::onInit($param);
10
-    	$this->MessagesPanelEffect->Text = "";
11
-    }
7
+	public function onInit($param)
8
+	{
9
+		parent::onInit($param);
10
+		$this->MessagesPanelEffect->Text = "";
11
+	}
12 12
     
13
-    public function setMessage($value)
14
-    {
15
-        $this->Message->Text = $value;
16
-        if ($value != '') 
13
+	public function setMessage($value)
14
+	{
15
+		$this->Message->Text = $value;
16
+		if ($value != '') 
17 17
 			$this->setVisible(true);
18
-        else 
18
+		else 
19 19
 			$this->setVisible(false);
20
-    }
20
+	}
21 21
     
22
-    public function setVisible($value)
23
-    {
22
+	public function setVisible($value)
23
+	{
24 24
 		$this->ensureChildControls();
25
-        if ($value === true) {
25
+		if ($value === true) {
26 26
 			echo "set visible";
27
-            $this->MessagesPanel->Visible = true;
28
-    	    $this->Message->Visible = true;
29
-    	    $this->setEffect(null);
30
-        } else {
31
-            $this->MessagesPanel->Visible = false;
32
-        }
33
-    }
27
+			$this->MessagesPanel->Visible = true;
28
+			$this->Message->Visible = true;
29
+			$this->setEffect(null);
30
+		} else {
31
+			$this->MessagesPanel->Visible = false;
32
+		}
33
+	}
34 34
     
35
-    public function setEffect($effect = null)
36
-    {
37
-        if ($effect !== null) {
38
-            $text = "<script type=\"text/javascript\" language=\"javascript\">\r\n";
39
-            $text .= "// <![CDATA[\r\n";
40
-            //$text .= "new Effect.$effect(\"" . $this->Page->DMessagesPanel->MessagesPanel->ClientID . "\");\r\n";
41
-            $text .= "new Effect.$effect(\"" . $this->ClientID . "\");\r\n";
42
-            $text .= "// ]]>\r\n";
43
-            $text .= "</script>";
44
-            $this->MessagesPanelEffect->Text = $text;
45
-        } else {
46
-            $this->MessagesPanelEffect->Text = '';
47
-        }
48
-    }
35
+	public function setEffect($effect = null)
36
+	{
37
+		if ($effect !== null) {
38
+			$text = "<script type=\"text/javascript\" language=\"javascript\">\r\n";
39
+			$text .= "// <![CDATA[\r\n";
40
+			//$text .= "new Effect.$effect(\"" . $this->Page->DMessagesPanel->MessagesPanel->ClientID . "\");\r\n";
41
+			$text .= "new Effect.$effect(\"" . $this->ClientID . "\");\r\n";
42
+			$text .= "// ]]>\r\n";
43
+			$text .= "</script>";
44
+			$this->MessagesPanelEffect->Text = $text;
45
+		} else {
46
+			$this->MessagesPanelEffect->Text = '';
47
+		}
48
+	}
49 49
     
50
-    public function setPanelCssClass($value)
51
-    {
50
+	public function setPanelCssClass($value)
51
+	{
52 52
 		$this->ensureChildControls();
53
-    	$this->MessagesPanel->CssClass = $value;
54
-    }
53
+		$this->MessagesPanel->CssClass = $value;
54
+	}
55 55
     
56
-    public function setMessageCssClass($value)
57
-    {
56
+	public function setMessageCssClass($value)
57
+	{
58 58
 		$this->ensureChildControls();
59
-    	$this->Message->CssClass = $value;
60
-    }
59
+		$this->Message->CssClass = $value;
60
+	}
61 61
 }
Please login to merge, or discard this patch.
active-controls/protected/pages/TActiveFileUploadAutoPostBackTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * BActiveFileUploadTest.php
4
- * 
5
- * @author Bradley Booms <[email protected]>
6
- * @version Creation Date: Aug 9, 2007
7
- */
3
+	 * BActiveFileUploadTest.php
4
+	 * 
5
+	 * @author Bradley Booms <[email protected]>
6
+	 * @version Creation Date: Aug 9, 2007
7
+	 */
8 8
 
9 9
 /**
10 10
  * BActiveFileUploadTest.php class
Please login to merge, or discard this patch.
FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@
 block discarded – undo
5 5
 	public function radChange($sender,$param){
6 6
 	  $choice = 'Choice : ';
7 7
 	  switch($this->rad_button_list->SelectedValue){
8
-	    case 'yes':
9
-	      $choice.='Yes :-)';
10
-	    break;
11
-	    case 'no':
12
-	      $choice.='No :-(';
13
-	    break;
14
-	    case 'whynot':
15
-	      $choice.='Why not ???';
16
-	    break;
8
+		case 'yes':
9
+		  $choice.='Yes :-)';
10
+		break;
11
+		case 'no':
12
+		  $choice.='No :-(';
13
+		break;
14
+		case 'whynot':
15
+		  $choice.='Why not ???';
16
+		break;
17 17
 	  }
18 18
 	  $this->label->Text = $choice;
19 19
 	}
Please login to merge, or discard this patch.