Skip to content

Commit 1e6705a

Browse files
committed
php cs
1 parent 2465256 commit 1e6705a

File tree

768 files changed

+1548
-5778
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

768 files changed

+1548
-5778
lines changed

lib/Doctrine/Access.php

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@
2222
/**
2323
* Provides array access and property overload interface for Doctrine subclasses.
2424
*
25-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
26-
*
2725
* @see www.doctrine-project.org
28-
* @since 1.0
29-
*
30-
* @version $Revision: 7490 $
3126
*
3227
* @author Konsta Vesterinen <[email protected]>
3328
*/
@@ -36,8 +31,7 @@ abstract class Doctrine_Access extends Doctrine_Locator_Injectable implements Ar
3631
/**
3732
* Set an entire aray to the data.
3833
*
39-
* @param array $array An array of key => value pairs
40-
*
34+
* @param array $array An array of key => value pairs
4135
* @return Doctrine_Access
4236
*/
4337
public function setArray(array $array)
@@ -72,9 +66,8 @@ public function __get($name)
7266
/**
7367
* Check if key exists in data.
7468
*
75-
* @param string $name
76-
*
77-
* @return bool whether or not this object contains $name
69+
* @param string $name
70+
* @return bool whether or not this object contains $name
7871
*/
7972
public function __isset($name)
8073
{
@@ -133,9 +126,8 @@ public function offsetUnset($offset)
133126
/**
134127
* Remove the element with the specified offset.
135128
*
136-
* @param mixed $offset The offset to remove
137-
*
138-
* @return bool True if removed otherwise false
129+
* @param mixed $offset The offset to remove
130+
* @return bool True if removed otherwise false
139131
*/
140132
public function remove($offset)
141133
{
@@ -166,9 +158,8 @@ public function set($offset, $value)
166158
/**
167159
* Check if the specified offset exists.
168160
*
169-
* @param mixed $offset The offset to check
170-
*
171-
* @return bool True if exists otherwise false
161+
* @param mixed $offset The offset to check
162+
* @return bool True if exists otherwise false
172163
*/
173164
public function contains($offset)
174165
{

lib/Doctrine/Adapter/Exception.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@
2222
/**
2323
* Doctrine_Adapter exception class.
2424
*
25-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
26-
*
2725
* @see www.doctrine-project.org
28-
* @since 1.0
29-
*
30-
* @version $Revision$
3126
*
3227
* @author Konsta Vesterinen <[email protected]>
3328
*/

lib/Doctrine/Adapter/Interface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@
2323
* This adapter interface should be implemented by all custom adapters.
2424
*
2525
* @author Konsta Vesterinen <[email protected]>
26-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
2726
*
2827
* @see www.doctrine-project.org
29-
* @since 1.0
30-
*
31-
* @version $Revision: 7490 $
3228
*/
3329
interface Doctrine_Adapter_Interface
3430
{

lib/Doctrine/Adapter/Mock.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@
2323
* Doctrine mock connection adapter. This class is used for special testing purposes.
2424
*
2525
* @author Konsta Vesterinen <[email protected]>
26-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
2726
*
2827
* @see www.doctrine-project.org
29-
* @since 1.0
30-
*
31-
* @version $Revision: 7490 $
3228
*/
3329
class Doctrine_Adapter_Mock implements Doctrine_Adapter_Interface, Countable
3430
{
@@ -109,8 +105,7 @@ public function forceException($name, $message = '', $code = 0)
109105
/**
110106
* Prepare a query statement.
111107
*
112-
* @param string $query Query to prepare
113-
*
108+
* @param string $query Query to prepare
114109
* @return Doctrine_Adapter_Statement_Mock $mock Mock prepared statement
115110
*/
116111
public function prepare($query)
@@ -134,8 +129,7 @@ public function addQuery($query)
134129
/**
135130
* Fake the execution of query and add it to the stack of executed queries.
136131
*
137-
* @param string $query
138-
*
132+
* @param string $query
139133
* @return Doctrine_Adapter_Statement_Mock $stmt
140134
*/
141135
public function query($query)
@@ -171,8 +165,7 @@ public function getAll()
171165
/**
172166
* Quote a value for the dbms.
173167
*
174-
* @param string $input
175-
*
168+
* @param string $input
176169
* @return string $quoted
177170
*/
178171
public function quote($input)

lib/Doctrine/Adapter/Oracle.php

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,8 @@
2525
* @author Konsta Vesterinen <[email protected]>
2626
* @author vadik56
2727
* @author Miloslav Kmet <[email protected]>
28-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
2928
*
3029
* @see www.doctrine-project.org
31-
* @since 1.0
32-
*
33-
* @version $Revision$
3430
*/
3531
class Doctrine_Adapter_Oracle implements Doctrine_Adapter_Interface
3632
{
@@ -142,8 +138,7 @@ public function __construct($config = array(), $username = null, $password = nul
142138
/**
143139
* Prepare a query statement.
144140
*
145-
* @param string $query Query to prepare
146-
*
141+
* @param string $query Query to prepare
147142
* @return Doctrine_Adapter_Statement_Oracle $stmt prepared statement
148143
*/
149144
public function prepare($query)
@@ -154,8 +149,7 @@ public function prepare($query)
154149
/**
155150
* Execute query and return results as statement object.
156151
*
157-
* @param string $query
158-
*
152+
* @param string $query
159153
* @return Doctrine_Adapter_Statement_Oracle $stmt
160154
*/
161155
public function query($query)
@@ -169,8 +163,7 @@ public function query($query)
169163
/**
170164
* Quote a value for the dbms.
171165
*
172-
* @param string $input
173-
*
166+
* @param string $input
174167
* @return string $quoted
175168
*/
176169
public function quote($input)
@@ -234,10 +227,9 @@ public function rollBack()
234227
/**
235228
* Set connection attribute.
236229
*
237-
* @param int $attribute
238-
* @param mixed $value the value of given attribute
239-
*
240-
* @return bool returns TRUE on success or FALSE on failure
230+
* @param int $attribute
231+
* @param mixed $value the value of given attribute
232+
* @return bool returns TRUE on success or FALSE on failure
241233
*/
242234
public function setAttribute($attribute, $value)
243235
{

lib/Doctrine/Adapter/Statement.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@
2323
* Doctrine_Adapter_Statement.
2424
*
2525
* @author Konsta Vesterinen <[email protected]>
26-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
2726
*
2827
* @see www.doctrine-project.org
29-
* @since 1.0
30-
*
31-
* @version $Revision: 7490 $
3228
*/
3329
abstract class Doctrine_Adapter_Statement
3430
{

lib/Doctrine/Adapter/Statement/Interface.php

Lines changed: 40 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,33 @@
2323
* Interface for Doctrine adapter statements.
2424
*
2525
* @author Konsta Vesterinen <[email protected]>
26-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
2726
*
2827
* @see www.doctrine-project.org
29-
* @since 1.0
30-
*
31-
* @version $Revision: 7490 $
3228
*/
3329
interface Doctrine_Adapter_Statement_Interface
3430
{
3531
/**
3632
* Bind a column to a PHP variable.
3733
*
38-
* @param mixed $column Number of the column (1-indexed) or name of the column in the result set.
39-
* If using the column name, be aware that the name should match
40-
* the case of the column, as returned by the driver.
41-
* @param string $param name of the PHP variable to which the column will be bound
42-
* @param int $type data type of the parameter, specified by the Doctrine_Core::PARAM_* constants
43-
*
44-
* @return bool Returns TRUE on success or FALSE on failure
34+
* @param mixed $column Number of the column (1-indexed) or name of the column in the result set.
35+
* If using the column name, be aware that the name should match
36+
* the case of the column, as returned by the driver.
37+
* @param string $param name of the PHP variable to which the column will be bound
38+
* @param int $type data type of the parameter, specified by the Doctrine_Core::PARAM_* constants
39+
* @return bool Returns TRUE on success or FALSE on failure
4540
*/
4641
public function bindColumn($column, $param, $type = null);
4742

4843
/**
4944
* Binds a value to a corresponding named or question mark
5045
* placeholder in the SQL statement that was use to prepare the statement.
5146
*
52-
* @param mixed $param Parameter identifier. For a prepared statement using named placeholders,
53-
* this will be a parameter name of the form :name. For a prepared statement
54-
* using question mark placeholders, this will be the 1-indexed position of the parameter
55-
* @param mixed $value the value to bind to the parameter
56-
* @param int $type explicit data type for the parameter using the Doctrine_Core::PARAM_* constants
57-
*
58-
* @return bool returns TRUE on success or FALSE on failure
47+
* @param mixed $param Parameter identifier. For a prepared statement using named placeholders,
48+
* this will be a parameter name of the form :name. For a prepared statement
49+
* using question mark placeholders, this will be the 1-indexed position of the parameter
50+
* @param mixed $value the value to bind to the parameter
51+
* @param int $type explicit data type for the parameter using the Doctrine_Core::PARAM_* constants
52+
* @return bool returns TRUE on success or FALSE on failure
5953
*/
6054
public function bindValue($param, $value, $type = null);
6155

@@ -70,14 +64,13 @@ public function bindValue($param, $value, $type = null);
7064
* of stored procedures that return data as output parameters, and some also as input/output
7165
* parameters that both send in data and are updated to receive it.
7266
*
73-
* @param mixed $variable name of the PHP variable to bind to the SQL statement parameter
74-
* @param int $type Explicit data type for the parameter using the Doctrine_Core::PARAM_* constants. To return
75-
* an INOUT parameter from a stored procedure, use the bitwise OR operator to set the
76-
* Doctrine_Core::PARAM_INPUT_OUTPUT bits for the data_type parameter.
77-
* @param int $length Length of the data type. To indicate that a parameter is an OUT parameter
78-
* from a stored procedure, you must explicitly set the length.
79-
*
80-
* @return bool returns TRUE on success or FALSE on failure
67+
* @param mixed $variable name of the PHP variable to bind to the SQL statement parameter
68+
* @param int $type Explicit data type for the parameter using the Doctrine_Core::PARAM_* constants. To return
69+
* an INOUT parameter from a stored procedure, use the bitwise OR operator to set the
70+
* Doctrine_Core::PARAM_INPUT_OUTPUT bits for the data_type parameter.
71+
* @param int $length Length of the data type. To indicate that a parameter is an OUT parameter
72+
* from a stored procedure, you must explicitly set the length.
73+
* @return bool returns TRUE on success or FALSE on failure
8174
*/
8275
public function bindParam($column, &$variable, $type = null, $length = null, $driverOptions = array());
8376

@@ -124,10 +117,9 @@ public function errorInfo();
124117
* if any, of their associated parameter markers or pass an array of input-only
125118
* parameter values
126119
*
127-
* @param array $params an array of values with as many elements as there are
128-
* bound parameters in the SQL statement being executed
129-
*
130-
* @return bool returns TRUE on success or FALSE on failure
120+
* @param array $params an array of values with as many elements as there are
121+
* bound parameters in the SQL statement being executed
122+
* @return bool returns TRUE on success or FALSE on failure
131123
*/
132124
public function execute($params = null);
133125

@@ -164,10 +156,9 @@ public function fetch(
164156
/**
165157
* Returns an array containing all of the result set rows.
166158
*
167-
* @param int $fetchStyle Controls how the next row will be returned to the caller.
168-
* This value must be one of the Doctrine_Core::FETCH_* constants,
169-
* defaulting to Doctrine_Core::FETCH_BOTH
170-
*
159+
* @param int $fetchStyle Controls how the next row will be returned to the caller.
160+
* This value must be one of the Doctrine_Core::FETCH_* constants,
161+
* defaulting to Doctrine_Core::FETCH_BOTH
171162
* @return array
172163
*/
173164
public function fetchAll($fetchStyle = Doctrine_Core::FETCH_BOTH);
@@ -176,10 +167,9 @@ public function fetchAll($fetchStyle = Doctrine_Core::FETCH_BOTH);
176167
* Returns a single column from the next row of a
177168
* result set or FALSE if there are no more rows.
178169
*
179-
* @param int $columnIndex 0-indexed number of the column you wish to retrieve from the row. If no
180-
* value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
181-
* fetches the first column.
182-
*
170+
* @param int $columnIndex 0-indexed number of the column you wish to retrieve from the row. If no
171+
* value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
172+
* fetches the first column.
183173
* @return string returns a single column in the next row of a result set
184174
*/
185175
public function fetchColumn($columnIndex = 0);
@@ -190,11 +180,10 @@ public function fetchColumn($columnIndex = 0);
190180
* Fetches the next row and returns it as an object. This function is an alternative to
191181
* Doctrine_Adapter_Statement_Interface->fetch() with Doctrine_Core::FETCH_CLASS or Doctrine_Core::FETCH_OBJ style.
192182
*
193-
* @param string $className name of the created class, defaults to stdClass
194-
* @param array $args elements of this array are passed to the constructor
195-
*
196-
* @return mixed an instance of the required class with property names that correspond
197-
* to the column names or FALSE in case of an error
183+
* @param string $className name of the created class, defaults to stdClass
184+
* @param array $args elements of this array are passed to the constructor
185+
* @return mixed an instance of the required class with property names that correspond
186+
* to the column names or FALSE in case of an error
198187
*/
199188
public function fetchObject($className = 'stdClass', $args = array());
200189

@@ -212,8 +201,7 @@ public function getAttribute($attribute);
212201
/**
213202
* Returns metadata for a column in a result set.
214203
*
215-
* @param int $column the 0-indexed column in the result set
216-
*
204+
* @param int $column the 0-indexed column in the result set
217205
* @return array Associative meta data array with the following structure:
218206
*
219207
* native_type The PHP native type used to represent the column value.
@@ -254,21 +242,19 @@ public function rowCount();
254242
/**
255243
* Set a statement attribute.
256244
*
257-
* @param int $attribute
258-
* @param mixed $value the value of given attribute
259-
*
260-
* @return bool returns TRUE on success or FALSE on failure
245+
* @param int $attribute
246+
* @param mixed $value the value of given attribute
247+
* @return bool returns TRUE on success or FALSE on failure
261248
*/
262249
public function setAttribute($attribute, $value);
263250

264251
/**
265252
* Set the default fetch mode for this statement.
266253
*
267-
* @param int $mode the fetch mode must be one of the Doctrine_Core::FETCH_* constants
268-
* @param mixed|null $arg1
269-
* @param mixed|null $arg2
270-
*
271-
* @return bool returns 1 on success or FALSE on failure
254+
* @param int $mode the fetch mode must be one of the Doctrine_Core::FETCH_* constants
255+
* @param mixed|null $arg1
256+
* @param mixed|null $arg2
257+
* @return bool returns 1 on success or FALSE on failure
272258
*/
273259
public function setFetchMode($mode, $arg1 = null, $arg2 = null);
274260
}

0 commit comments

Comments
 (0)