Completed
Pull Request — master (#90)
by Reginaldo
18:50
created
app/Model/ModuloRelacionaUsuario.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 class ModuloRelacionaUsuario extends AppModel {
4 4
 	public  $belongsTo  =  array ( 
5
-        'Usuario'  =>  array ( 
6
-            'className'  =>  'Usuario' , 
7
-            'foreignKey'  =>  'id_usuario' 
8
-        ),
9
-        'Modulo' => array(
10
-        	'className' => 'Modulo',
11
-        	'foreignKey' => 'id_modulo' 
12
-        )
13
-    ); 
5
+		'Usuario'  =>  array ( 
6
+			'className'  =>  'Usuario' , 
7
+			'foreignKey'  =>  'id_usuario' 
8
+		),
9
+		'Modulo' => array(
10
+			'className' => 'Modulo',
11
+			'foreignKey' => 'id_modulo' 
12
+		)
13
+	); 
14 14
 }
15 15
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 class ModuloRelacionaUsuario extends AppModel {
4
-	public  $belongsTo  =  array ( 
5
-        'Usuario'  =>  array ( 
6
-            'className'  =>  'Usuario' , 
4
+	public  $belongsTo = array( 
5
+        'Usuario'  =>  array( 
6
+            'className'  =>  'Usuario', 
7 7
             'foreignKey'  =>  'id_usuario' 
8 8
         ),
9 9
         'Modulo' => array(
Please login to merge, or discard this patch.
app/Model/VendaModel.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 */
6 6
 class Venda extends AppModel {
7 7
 	public  $belongsTo  =  array ( 
8
-        'VendaItensProduto'  =>  array ( 
9
-            'className'  =>  'VendaItensProduto', 
10
-            'foreignKey'  =>  'venda_id' 
11
-        )
12
-    ); 
8
+		'VendaItensProduto'  =>  array ( 
9
+			'className'  =>  'VendaItensProduto', 
10
+			'foreignKey'  =>  'venda_id' 
11
+		)
12
+	); 
13 13
 }
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 * Model de venda
5 5
 */
6 6
 class Venda extends AppModel {
7
-	public  $belongsTo  =  array ( 
8
-        'VendaItensProduto'  =>  array ( 
7
+	public  $belongsTo = array( 
8
+        'VendaItensProduto'  =>  array( 
9 9
             'className'  =>  'VendaItensProduto', 
10 10
             'foreignKey'  =>  'venda_id' 
11 11
         )
Please login to merge, or discard this patch.
app/Test/Case/Controller/ApiControllerTest.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@
 block discarded – undo
9 9
 */
10 10
 class ApiControllerTest extends PHPUnit_Framework_TestCase
11 11
 {
12
-    protected $api;
12
+	protected $api;
13 13
 
14
-    public function setUp() 
15
-    {
16
-        $this->api = new ApiController;
17
-    }
14
+	public function setUp() 
15
+	{
16
+		$this->api = new ApiController;
17
+	}
18 18
 
19 19
 	public function testWishlist()
20 20
 	{
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-require(APP . 'Controller/AppController.php');
5
-require(APP . 'Controller/ApiController.php');
4
+require(APP.'Controller/AppController.php');
5
+require(APP.'Controller/ApiController.php');
6 6
 
7 7
 /**
8 8
 * ApiControllerTest
Please login to merge, or discard this patch.
app/Test/Case/Controller/AviseMeControllerTest.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 class AviseMeControllerTest extends ControllerTestCase
9 9
 {
10 10
 
11
-    public $controllers = array('app.aviseme');
11
+	public $controllers = array('app.aviseme');
12 12
 
13 13
 	protected $AviseMe;
14 14
 
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 	}
19 19
 
20 20
 	/**
21
-	* @test view listar cadastros
22
-	**/
21
+	 * @test view listar cadastros
22
+	 **/
23 23
 	public function testViewListarCadastros()
24 24
 	{
25 25
 		$result = $this->testAction('/aviseme/listar_cadastros');
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 	}
28 28
 
29 29
 	/**
30
-	* @test post Test function to create list aviseme
31
-	**/
30
+	 * @test post Test function to create list aviseme
31
+	 **/
32 32
 	public function testPostMailAndProductToCreateOfAviseMe()
33 33
 	{
34 34
 		$data = array(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require(APP . 'Controller/AviseMeController.php');
3
+require(APP.'Controller/AviseMeController.php');
4 4
 
5 5
 /**
6 6
 * 
Please login to merge, or discard this patch.
app/Test/Case/Controller/PagamentoControllerTest.php 2 patches
Indentation   +125 added lines, -125 removed lines patch added patch discarded remove patch
@@ -9,130 +9,130 @@
 block discarded – undo
9 9
 */
10 10
 class PagamentoControllerTest extends PHPUnit_Framework_TestCase
11 11
 {
12
-    protected $pagamento;
13
-
14
-    public function testInstanciaClassePagamentoComPagSeguro()
15
-    {
16
-    	$this->pagamento = new PagamentoController('PagseguroController');
17
-    }
18
-
19
-    public function testSetAndGetTokenPagSeguro()
20
-    {
21
-    	$this->pagamento = new PagamentoController('PagseguroController');
22
-
23
-        $this->pagamento->setToken('25AB84E7DE7647848D0819210140F79D');
24
-
25
-        $this->assertEquals('25AB84E7DE7647848D0819210140F79D', $this->pagamento->getToken());
26
-    }
27
-
28
-    public function testSetAndGetEmailPagSeguro()
29
-    {
30
-        $this->pagamento = new PagamentoController('PagseguroController');
31
-
32
-        $this->pagamento->setEmail('[email protected]');
33
-
34
-        $this->assertEquals('[email protected]', $this->pagamento->getEmail());
35
-    }
36
-
37
-    public function testSetOneNewProductInListPagSeguro()
38
-    {
39
-        $this->pagamento = new PagamentoController('PagseguroController');
40
-
41
-        $produto = array(
42
-            0 => array(
43
-                'Produto' => array(
44
-                    'id' => 23,
45
-                    'nome' => 'Produto Teste',
46
-                    'variacao' => 'M',
47
-                    'quantidade' => 2,
48
-                    'preco' => 2.44
49
-                )
50
-            )
51
-        );
52
-
53
-        $this->pagamento->setProdutos($produto);
54
-        $this->assertEquals($produto, $this->pagamento->adicionarProdutosGateway());
55
-    }
56
-
57
-    public function testSetAndressFromClientPagseguro()
58
-    {
59
-        $this->pagamento = new PagamentoController('PagseguroController');
60
-
61
-        $endereco = array(
62
-            'cep' => '07252-000',
63
-            'endereco' => 'Avenida do Contorno',
64
-            'numero' => 19,
65
-            'complemento' => 'Viela',
66
-            'bairro' => 'Nova cidade',
67
-            'cidade' => 'Guarulhos',
68
-            'estado' => 'SP'
69
-        );
70
-
71
-        $this->pagamento->setEndereco($endereco);
72
-        $this->assertEquals($endereco, $this->pagamento->getEndereco());
73
-    }
74
-
75
-    public function testSetCliente()
76
-    {
77
-        $this->pagamento = new PagamentoController('PagseguroController');
78
-
79
-        $cliente = array(
80
-            'nome' => 'Reginaldo Junior',
81
-            'email' => '[email protected]',
82
-            'ddd' => '11',
83
-            'telefone' => '946640932',
84
-            'cpf' => '43944409843'
85
-        );
86
-
87
-        $this->pagamento->setCliente($cliente);
88
-        $this->assertEquals($cliente, $this->pagamento->setClienteGateway());
89
-    }
90
-
91
-    public function testPedido()
92
-    {
93
-        $this->pagamento = new PagamentoController('PagseguroController');   
94
-
95
-        $this->pagamento->setToken('25AB84E7DE7647848D0819210140F79D');
96
-        $this->pagamento->setEmail('[email protected]');
12
+	protected $pagamento;
13
+
14
+	public function testInstanciaClassePagamentoComPagSeguro()
15
+	{
16
+		$this->pagamento = new PagamentoController('PagseguroController');
17
+	}
18
+
19
+	public function testSetAndGetTokenPagSeguro()
20
+	{
21
+		$this->pagamento = new PagamentoController('PagseguroController');
22
+
23
+		$this->pagamento->setToken('25AB84E7DE7647848D0819210140F79D');
24
+
25
+		$this->assertEquals('25AB84E7DE7647848D0819210140F79D', $this->pagamento->getToken());
26
+	}
27
+
28
+	public function testSetAndGetEmailPagSeguro()
29
+	{
30
+		$this->pagamento = new PagamentoController('PagseguroController');
31
+
32
+		$this->pagamento->setEmail('[email protected]');
33
+
34
+		$this->assertEquals('[email protected]', $this->pagamento->getEmail());
35
+	}
36
+
37
+	public function testSetOneNewProductInListPagSeguro()
38
+	{
39
+		$this->pagamento = new PagamentoController('PagseguroController');
40
+
41
+		$produto = array(
42
+			0 => array(
43
+				'Produto' => array(
44
+					'id' => 23,
45
+					'nome' => 'Produto Teste',
46
+					'variacao' => 'M',
47
+					'quantidade' => 2,
48
+					'preco' => 2.44
49
+				)
50
+			)
51
+		);
52
+
53
+		$this->pagamento->setProdutos($produto);
54
+		$this->assertEquals($produto, $this->pagamento->adicionarProdutosGateway());
55
+	}
56
+
57
+	public function testSetAndressFromClientPagseguro()
58
+	{
59
+		$this->pagamento = new PagamentoController('PagseguroController');
60
+
61
+		$endereco = array(
62
+			'cep' => '07252-000',
63
+			'endereco' => 'Avenida do Contorno',
64
+			'numero' => 19,
65
+			'complemento' => 'Viela',
66
+			'bairro' => 'Nova cidade',
67
+			'cidade' => 'Guarulhos',
68
+			'estado' => 'SP'
69
+		);
70
+
71
+		$this->pagamento->setEndereco($endereco);
72
+		$this->assertEquals($endereco, $this->pagamento->getEndereco());
73
+	}
74
+
75
+	public function testSetCliente()
76
+	{
77
+		$this->pagamento = new PagamentoController('PagseguroController');
78
+
79
+		$cliente = array(
80
+			'nome' => 'Reginaldo Junior',
81
+			'email' => '[email protected]',
82
+			'ddd' => '11',
83
+			'telefone' => '946640932',
84
+			'cpf' => '43944409843'
85
+		);
86
+
87
+		$this->pagamento->setCliente($cliente);
88
+		$this->assertEquals($cliente, $this->pagamento->setClienteGateway());
89
+	}
90
+
91
+	public function testPedido()
92
+	{
93
+		$this->pagamento = new PagamentoController('PagseguroController');   
94
+
95
+		$this->pagamento->setToken('25AB84E7DE7647848D0819210140F79D');
96
+		$this->pagamento->setEmail('[email protected]');
97 97
         
98
-        $produto = array(
99
-            0 => array(
100
-                'Produto' => array(
101
-                    'id' => 23,
102
-                    'nome' => 'Produto Teste',
103
-                    'variacao' => 'M',
104
-                    'quantidade' => 1.00,
105
-                    'preco' => 2.44
106
-                )
107
-            )
108
-        );
109
-        $this->pagamento->setProdutos($produto);
110
-        $this->pagamento->adicionarProdutosGateway();
111
-
112
-        $endereco = array(
113
-            'cep' => '07252-000',
114
-            'endereco' => 'Avenida do Contorno',
115
-            'numero' => 19,
116
-            'complemento' => 'Viela',
117
-            'bairro' => 'Nova cidade',
118
-            'cidade' => 'Guarulhos',
119
-            'estado' => 'SP'
120
-        );
121
-        $this->pagamento->setEndereco($endereco);
122
-
123
-
124
-        $cliente = array(
125
-            'nome' => 'Reginaldo Junior',
126
-            'email' => '[email protected]',
127
-            'ddd' => '11',
128
-            'telefone' => '946640932',
129
-            'cpf' => '43944409843'
130
-        );
131
-        $this->pagamento->setCliente($cliente);
132
-
133
-        $this->pagamento->setReference('#2324');
134
-        $this->pagamento->setValorFrete(23.44);
135
-
136
-        // $this->pagamento->finalizarPedido();
137
-    }
98
+		$produto = array(
99
+			0 => array(
100
+				'Produto' => array(
101
+					'id' => 23,
102
+					'nome' => 'Produto Teste',
103
+					'variacao' => 'M',
104
+					'quantidade' => 1.00,
105
+					'preco' => 2.44
106
+				)
107
+			)
108
+		);
109
+		$this->pagamento->setProdutos($produto);
110
+		$this->pagamento->adicionarProdutosGateway();
111
+
112
+		$endereco = array(
113
+			'cep' => '07252-000',
114
+			'endereco' => 'Avenida do Contorno',
115
+			'numero' => 19,
116
+			'complemento' => 'Viela',
117
+			'bairro' => 'Nova cidade',
118
+			'cidade' => 'Guarulhos',
119
+			'estado' => 'SP'
120
+		);
121
+		$this->pagamento->setEndereco($endereco);
122
+
123
+
124
+		$cliente = array(
125
+			'nome' => 'Reginaldo Junior',
126
+			'email' => '[email protected]',
127
+			'ddd' => '11',
128
+			'telefone' => '946640932',
129
+			'cpf' => '43944409843'
130
+		);
131
+		$this->pagamento->setCliente($cliente);
132
+
133
+		$this->pagamento->setReference('#2324');
134
+		$this->pagamento->setValorFrete(23.44);
135
+
136
+		// $this->pagamento->finalizarPedido();
137
+	}
138 138
 }
139 139
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-require(APP . 'Controller/AppController.php');
5
-require(APP . 'Controller/PagamentoController.php');
4
+require(APP.'Controller/AppController.php');
5
+require(APP.'Controller/PagamentoController.php');
6 6
 
7 7
 /**
8 8
 * PagamentoControllerTest
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/Autoloader.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 PHPExcel_Shared_ZipStreamWrapper::register();
30 30
 // check mbstring.func_overload
31 31
 if (ini_get('mbstring.func_overload') & 2) {
32
-    throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
32
+	throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
33 33
 }
34 34
 PHPExcel_Shared_String::buildCharacterSets();
35 35
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,14 +62,14 @@
 block discarded – undo
62 62
 	 *
63 63
 	 * @param	string	$pClassName		Name of the object to load
64 64
 	 */
65
-	public static function Load($pClassName){
65
+	public static function Load($pClassName) {
66 66
 		if ((class_exists($pClassName)) || (strpos($pClassName, 'PHPExcel') !== 0)) {
67 67
 			//	Either already loaded, or not a PHPExcel class request
68 68
 			return FALSE;
69 69
 		}
70 70
 
71
-		$pObjectFilePath = PHPEXCEL_ROOT .
72
-						   str_replace('_',DIRECTORY_SEPARATOR,$pClassName) .
71
+		$pObjectFilePath = PHPEXCEL_ROOT.
72
+						   str_replace('_', DIRECTORY_SEPARATOR, $pClassName).
73 73
 						   '.php';
74 74
 
75 75
 		if ((file_exists($pObjectFilePath) === false) || (is_readable($pObjectFilePath) === false)) {
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/CachedObjectStorage/CacheBase.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -101,24 +101,24 @@
 block discarded – undo
101 101
 	}	//	function isDataSet()
102 102
 
103 103
 
104
-    /**
105
-     * Add or Update a cell in cache
106
-     *
107
-     * @param	PHPExcel_Cell	$cell		Cell to update
104
+	/**
105
+	 * Add or Update a cell in cache
106
+	 *
107
+	 * @param	PHPExcel_Cell	$cell		Cell to update
108 108
 	 * @return	void
109
-     * @throws	Exception
110
-     */
109
+	 * @throws	Exception
110
+	 */
111 111
 	public function updateCacheData(PHPExcel_Cell $cell) {
112 112
 		return $this->addCacheData($cell->getCoordinate(),$cell);
113 113
 	}	//	function updateCacheData()
114 114
 
115 115
 
116
-    /**
117
-     * Delete a cell in cache identified by coordinate address
118
-     *
119
-     * @param	string			$pCoord		Coordinate address of the cell to delete
120
-     * @throws	Exception
121
-     */
116
+	/**
117
+	 * Delete a cell in cache identified by coordinate address
118
+	 *
119
+	 * @param	string			$pCoord		Coordinate address of the cell to delete
120
+	 * @throws	Exception
121
+	 */
122 122
 	public function deleteCacheData($pCoord) {
123 123
 		if ($pCoord === $this->_currentObjectID) {
124 124
 			$this->_currentObject->detach();
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @throws	Exception
110 110
      */
111 111
 	public function updateCacheData(PHPExcel_Cell $cell) {
112
-		return $this->addCacheData($cell->getCoordinate(),$cell);
112
+		return $this->addCacheData($cell->getCoordinate(), $cell);
113 113
 	}	//	function updateCacheData()
114 114
 
115 115
 
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
 	public function getSortedCellList() {
152 152
 		$sortKeys = array();
153 153
 		foreach ($this->getCellList() as $coord) {
154
-			list($column,$row) = sscanf($coord,'%[A-Z]%d');
155
-			$sortKeys[sprintf('%09d%3s',$row,$column)] = $coord;
154
+			list($column, $row) = sscanf($coord, '%[A-Z]%d');
155
+			$sortKeys[sprintf('%09d%3s', $row, $column)] = $coord;
156 156
 		}
157 157
 		ksort($sortKeys);
158 158
 
@@ -172,16 +172,16 @@  discard block
 block discarded – undo
172 172
 		$col = array('A' => '1A');
173 173
 		$row = array(1);
174 174
 		foreach ($this->getCellList() as $coord) {
175
-			list($c,$r) = sscanf($coord,'%[A-Z]%d');
175
+			list($c, $r) = sscanf($coord, '%[A-Z]%d');
176 176
 			$row[$r] = $r;
177 177
 			$col[$c] = strlen($c).$c;
178 178
 		}
179
-		if (!empty($row)) {
179
+		if ( ! empty($row)) {
180 180
 			// Determine highest column and row
181 181
 			$highestRow = max($row);
182
-			$highestColumn = substr(max($col),1);
182
+			$highestColumn = substr(max($col), 1);
183 183
 		}
184
-		return array( 'row'	   => $highestRow,
184
+		return array('row'	   => $highestRow,
185 185
 					  'column' => $highestColumn
186 186
 					);
187 187
 	}
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 		} else {
222 222
 			$baseUnique = mt_rand();
223 223
 		}
224
-		return uniqid($baseUnique,true);
224
+		return uniqid($baseUnique, true);
225 225
 	}
226 226
 
227 227
 	/**
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/CachedObjectStorage/DiscISAM.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
 	private $_cacheDirectory = NULL;
58 58
 
59 59
 
60
-    /**
61
-     * Store cell data in cache for the current cell object if it's "dirty",
62
-     *     and the 'nullify' the current cell object
63
-     *
60
+	/**
61
+	 * Store cell data in cache for the current cell object if it's "dirty",
62
+	 *     and the 'nullify' the current cell object
63
+	 *
64 64
 	 * @return	void
65
-     * @throws	Exception
66
-     */
65
+	 * @throws	Exception
66
+	 */
67 67
 	private function _storeData() {
68 68
 		if ($this->_currentCellIsDirty) {
69 69
 			$this->_currentObject->detach();
@@ -80,14 +80,14 @@  discard block
 block discarded – undo
80 80
 	}	//	function _storeData()
81 81
 
82 82
 
83
-    /**
84
-     * Add or Update a cell in cache identified by coordinate address
85
-     *
86
-     * @param	string			$pCoord		Coordinate address of the cell to update
87
-     * @param	PHPExcel_Cell	$cell		Cell to update
83
+	/**
84
+	 * Add or Update a cell in cache identified by coordinate address
85
+	 *
86
+	 * @param	string			$pCoord		Coordinate address of the cell to update
87
+	 * @param	PHPExcel_Cell	$cell		Cell to update
88 88
 	 * @return	void
89
-     * @throws	Exception
90
-     */
89
+	 * @throws	Exception
90
+	 */
91 91
 	public function addCacheData($pCoord, PHPExcel_Cell $cell) {
92 92
 		if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
93 93
 			$this->_storeData();
@@ -101,13 +101,13 @@  discard block
 block discarded – undo
101 101
 	}	//	function addCacheData()
102 102
 
103 103
 
104
-    /**
105
-     * Get cell at a specific coordinate
106
-     *
107
-     * @param 	string 			$pCoord		Coordinate of the cell
108
-     * @throws 	Exception
109
-     * @return 	PHPExcel_Cell 	Cell that was found, or null if not found
110
-     */
104
+	/**
105
+	 * Get cell at a specific coordinate
106
+	 *
107
+	 * @param 	string 			$pCoord		Coordinate of the cell
108
+	 * @throws 	Exception
109
+	 * @return 	PHPExcel_Cell 	Cell that was found, or null if not found
110
+	 */
111 111
 	public function getCacheData($pCoord) {
112 112
 		if ($pCoord === $this->_currentObjectID) {
113 113
 			return $this->_currentObject;
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
 		if ($this->_currentCellIsDirty) {
69 69
 			$this->_currentObject->detach();
70 70
 
71
-			fseek($this->_fileHandle,0,SEEK_END);
71
+			fseek($this->_fileHandle, 0, SEEK_END);
72 72
 			$offset = ftell($this->_fileHandle);
73 73
 			fwrite($this->_fileHandle, serialize($this->_currentObject));
74
-			$this->_cellCache[$this->_currentObjectID]	= array('ptr' => $offset,
74
+			$this->_cellCache[$this->_currentObjectID] = array('ptr' => $offset,
75 75
 																'sz'  => ftell($this->_fileHandle) - $offset
76 76
 															   );
77 77
 			$this->_currentCellIsDirty = false;
@@ -115,15 +115,15 @@  discard block
 block discarded – undo
115 115
 		$this->_storeData();
116 116
 
117 117
 		//	Check if the entry that has been requested actually exists
118
-		if (!isset($this->_cellCache[$pCoord])) {
118
+		if ( ! isset($this->_cellCache[$pCoord])) {
119 119
 			//	Return null if requested entry doesn't exist in cache
120 120
 			return null;
121 121
 		}
122 122
 
123 123
 		//	Set current entry to the requested entry
124 124
 		$this->_currentObjectID = $pCoord;
125
-		fseek($this->_fileHandle,$this->_cellCache[$pCoord]['ptr']);
126
-		$this->_currentObject = unserialize(fread($this->_fileHandle,$this->_cellCache[$pCoord]['sz']));
125
+		fseek($this->_fileHandle, $this->_cellCache[$pCoord]['ptr']);
126
+		$this->_currentObject = unserialize(fread($this->_fileHandle, $this->_cellCache[$pCoord]['sz']));
127 127
 		//	Re-attach the parent worksheet
128 128
 		$this->_currentObject->attach($this->_parent);
129 129
 
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
 		$baseUnique = $this->_getUniqueID();
145 145
 		$newFileName = $this->_cacheDirectory.'/PHPExcel.'.$baseUnique.'.cache';
146 146
 		//	Copy the existing cell cache file
147
-		copy ($this->_fileName,$newFileName);
147
+		copy($this->_fileName, $newFileName);
148 148
 		$this->_fileName = $newFileName;
149 149
 		//	Open the copied cell cache file
150
-		$this->_fileHandle = fopen($this->_fileName,'a+');
150
+		$this->_fileHandle = fopen($this->_fileName, 'a+');
151 151
 	}	//	function copyCellCollection()
152 152
 
153 153
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @return	void
158 158
 	 */
159 159
 	public function unsetWorksheetCells() {
160
-		if(!is_null($this->_currentObject)) {
160
+		if ( ! is_null($this->_currentObject)) {
161 161
 			$this->_currentObject->detach();
162 162
 			$this->_currentObject = $this->_currentObjectID = null;
163 163
 		}
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 	 * @param	array of mixed		$arguments	Additional initialisation arguments
179 179
 	 */
180 180
 	public function __construct(PHPExcel_Worksheet $parent, $arguments) {
181
-		$this->_cacheDirectory	= ((isset($arguments['dir'])) && ($arguments['dir'] !== NULL))
181
+		$this->_cacheDirectory = ((isset($arguments['dir'])) && ($arguments['dir'] !== NULL))
182 182
 									? $arguments['dir']
183 183
 									: PHPExcel_Shared_File::sys_get_temp_dir();
184 184
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 		if (is_null($this->_fileHandle)) {
187 187
 			$baseUnique = $this->_getUniqueID();
188 188
 			$this->_fileName = $this->_cacheDirectory.'/PHPExcel.'.$baseUnique.'.cache';
189
-			$this->_fileHandle = fopen($this->_fileName,'a+');
189
+			$this->_fileHandle = fopen($this->_fileName, 'a+');
190 190
 		}
191 191
 	}	//	function __construct()
192 192
 
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	 * Destroy this cell collection
196 196
 	 */
197 197
 	public function __destruct() {
198
-		if (!is_null($this->_fileHandle)) {
198
+		if ( ! is_null($this->_fileHandle)) {
199 199
 			fclose($this->_fileHandle);
200 200
 			unlink($this->_fileName);
201 201
 		}
Please login to merge, or discard this patch.
app/Vendor/PHPExcel/PHPExcel/CachedObjectStorage/ICache.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -35,40 +35,40 @@
 block discarded – undo
35 35
  */
36 36
 interface PHPExcel_CachedObjectStorage_ICache
37 37
 {
38
-    /**
39
-     * Add or Update a cell in cache identified by coordinate address
40
-     *
41
-     * @param	string			$pCoord		Coordinate address of the cell to update
42
-     * @param	PHPExcel_Cell	$cell		Cell to update
38
+	/**
39
+	 * Add or Update a cell in cache identified by coordinate address
40
+	 *
41
+	 * @param	string			$pCoord		Coordinate address of the cell to update
42
+	 * @param	PHPExcel_Cell	$cell		Cell to update
43 43
 	 * @return	void
44
-     * @throws	Exception
45
-     */
44
+	 * @throws	Exception
45
+	 */
46 46
 	public function addCacheData($pCoord, PHPExcel_Cell $cell);
47 47
 
48
-    /**
49
-     * Add or Update a cell in cache
50
-     *
51
-     * @param	PHPExcel_Cell	$cell		Cell to update
48
+	/**
49
+	 * Add or Update a cell in cache
50
+	 *
51
+	 * @param	PHPExcel_Cell	$cell		Cell to update
52 52
 	 * @return	void
53
-     * @throws	Exception
54
-     */
53
+	 * @throws	Exception
54
+	 */
55 55
 	public function updateCacheData(PHPExcel_Cell $cell);
56 56
 
57
-    /**
58
-     * Fetch a cell from cache identified by coordinate address
59
-     *
60
-     * @param	string			$pCoord		Coordinate address of the cell to retrieve
61
-     * @return PHPExcel_Cell 	Cell that was found, or null if not found
62
-     * @throws	Exception
63
-     */
57
+	/**
58
+	 * Fetch a cell from cache identified by coordinate address
59
+	 *
60
+	 * @param	string			$pCoord		Coordinate address of the cell to retrieve
61
+	 * @return PHPExcel_Cell 	Cell that was found, or null if not found
62
+	 * @throws	Exception
63
+	 */
64 64
 	public function getCacheData($pCoord);
65 65
 
66
-    /**
67
-     * Delete a cell in cache identified by coordinate address
68
-     *
69
-     * @param	string			$pCoord		Coordinate address of the cell to delete
70
-     * @throws	Exception
71
-     */
66
+	/**
67
+	 * Delete a cell in cache identified by coordinate address
68
+	 *
69
+	 * @param	string			$pCoord		Coordinate address of the cell to delete
70
+	 * @throws	Exception
71
+	 */
72 72
 	public function deleteCacheData($pCoord);
73 73
 
74 74
 	/**
Please login to merge, or discard this patch.