Skip to content

Commit 0809ad0

Browse files
committed
fix(qa) apply cs-fix base rules
1 parent 731b398 commit 0809ad0

File tree

1,051 files changed

+33480
-33700
lines changed

Some content is hidden

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

1,051 files changed

+33480
-33700
lines changed

lib/Doctrine/Access.php

Lines changed: 36 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,19 @@
2020
*/
2121

2222
/**
23-
* Provides array access and property overload interface for Doctrine subclasses
23+
* Provides array access and property overload interface for Doctrine subclasses.
24+
*
25+
* @see www.doctrine-project.org
2426
*
25-
* @package Doctrine
26-
* @subpackage Access
27-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
28-
* @link www.doctrine-project.org
29-
* @since 1.0
30-
* @version $Revision: 7490 $
3127
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
3228
*/
3329
abstract class Doctrine_Access extends Doctrine_Locator_Injectable implements ArrayAccess
3430
{
3531
/**
36-
* Set an entire aray to the data
32+
* Set an entire aray to the data.
3733
*
38-
* @param array $array An array of key => value pairs
39-
* @return Doctrine_Access
34+
* @param array $array An array of key => value pairs
35+
* @return Doctrine_Access
4036
*/
4137
public function setArray(array $array)
4238
{
@@ -48,48 +44,42 @@ public function setArray(array $array)
4844
}
4945

5046
/**
51-
* Set key and value to data
47+
* Set key and value to data.
5248
*
5349
* @see set, offsetSet
54-
* @param $name
55-
* @param $value
56-
* @return void
5750
*/
5851
public function __set($name, $value)
5952
{
6053
$this->set($name, $value);
6154
}
6255

6356
/**
64-
* Get key from data
57+
* Get key from data.
6558
*
6659
* @see get, offsetGet
67-
* @param mixed $name
68-
* @return mixed
6960
*/
7061
public function __get($name)
7162
{
7263
return $this->get($name);
7364
}
7465

7566
/**
76-
* Check if key exists in data
67+
* Check if key exists in data.
7768
*
78-
* @param string $name
79-
* @return boolean whether or not this object contains $name
69+
* @param string $name
70+
* @return bool whether or not this object contains $name
8071
*/
8172
public function __isset($name)
8273
{
8374
return $this->contains($name);
8475
}
8576

8677
/**
87-
* Remove key from data
78+
* Remove key from data.
8879
*
89-
* @param string $name
90-
* @return void
80+
* @param string $name
9181
*/
92-
#[\ReturnTypeWillChange]
82+
#[ReturnTypeWillChange]
9383
public function __unset($name)
9484
{
9585
return $this->remove($name);
@@ -98,16 +88,13 @@ public function __unset($name)
9888
/**
9989
* @return bool
10090
*/
101-
#[\ReturnTypeWillChange]
91+
#[ReturnTypeWillChange]
10292
public function offsetExists($offset)
10393
{
10494
return $this->contains($offset);
10595
}
10696

107-
/**
108-
* @return mixed
109-
*/
110-
#[\ReturnTypeWillChange]
97+
#[ReturnTypeWillChange]
11198
public function offsetGet($offset)
11299
{
113100
// array notation with no index was causing 'undefined variable: $offset' notices in php7,
@@ -116,84 +103,76 @@ public function offsetGet($offset)
116103
if (!isset($offset)) {
117104
return $this->get(null);
118105
}
106+
119107
return $this->get($offset);
120108
}
121109

122-
/**
123-
* @return void
124-
*/
125-
#[\ReturnTypeWillChange]
110+
#[ReturnTypeWillChange]
126111
public function offsetSet($offset, $value)
127112
{
128-
if ( ! isset($offset)) {
113+
if (!isset($offset)) {
129114
$this->add($value);
130115
} else {
131116
$this->set($offset, $value);
132117
}
133118
}
134119

135-
/**
136-
* @return void
137-
*/
138-
#[\ReturnTypeWillChange]
120+
#[ReturnTypeWillChange]
139121
public function offsetUnset($offset)
140122
{
141123
$this->remove($offset);
142124
}
143125

144126
/**
145-
* Remove the element with the specified offset
127+
* Remove the element with the specified offset.
146128
*
147-
* @param mixed $offset The offset to remove
148-
* @return bool True if removed otherwise false
129+
* @param mixed $offset The offset to remove
130+
* @return bool True if removed otherwise false
149131
*/
150132
public function remove($offset)
151133
{
152-
throw new Doctrine_Exception('Remove is not supported for ' . get_class($this));
134+
throw new Doctrine_Exception('Remove is not supported for '.get_class($this));
153135
}
154136

155137
/**
156-
* Return the element with the specified offset
138+
* Return the element with the specified offset.
157139
*
158-
* @param mixed $offset The offset to return
159-
* @return mixed
140+
* @param mixed $offset The offset to return
160141
*/
161142
public function get($offset)
162143
{
163-
throw new Doctrine_Exception('Get is not supported for ' . get_class($this));
144+
throw new Doctrine_Exception('Get is not supported for '.get_class($this));
164145
}
165146

166147
/**
167-
* Set the offset to the value
148+
* Set the offset to the value.
168149
*
169150
* @param mixed $offset The offset to set
170-
* @param mixed $value The value to set the offset to
171-
*
151+
* @param mixed $value The value to set the offset to
172152
*/
173153
public function set($offset, $value)
174154
{
175-
throw new Doctrine_Exception('Set is not supported for ' . get_class($this));
155+
throw new Doctrine_Exception('Set is not supported for '.get_class($this));
176156
}
177157

178158
/**
179-
* Check if the specified offset exists
159+
* Check if the specified offset exists.
180160
*
181-
* @param mixed $offset The offset to check
182-
* @return boolean True if exists otherwise false
161+
* @param mixed $offset The offset to check
162+
* @return bool True if exists otherwise false
183163
*/
184164
public function contains($offset)
185165
{
186-
throw new Doctrine_Exception('Contains is not supported for ' . get_class($this));
166+
throw new Doctrine_Exception('Contains is not supported for '.get_class($this));
187167
}
188168

189169
/**
190-
* Add the value
170+
* Add the value.
191171
*
192172
* @param mixed $value The value to add
193-
* @return void
194173
*/
195174
public function add($value)
196175
{
197-
throw new Doctrine_Exception('Add is not supported for ' . get_class($this));
176+
throw new Doctrine_Exception('Add is not supported for '.get_class($this));
198177
}
199178
}

lib/Doctrine/Adapter/Exception.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@
2020
*/
2121

2222
/**
23-
* Doctrine_Adapter exception class
23+
* Doctrine_Adapter exception class.
24+
*
25+
* @see www.doctrine-project.org
2426
*
25-
* @package Doctrine
26-
* @subpackage Adapter
27-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
28-
* @link www.doctrine-project.org
29-
* @since 1.0
30-
* @version $Revision$
3127
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
3228
*/
3329
class Doctrine_Adapter_Exception extends Doctrine_Exception
34-
{ }
30+
{
31+
}

lib/Doctrine/Adapter/Interface.php

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,35 @@
2020
*/
2121

2222
/**
23-
* This adapter interface should be implemented by all custom adapters
23+
* This adapter interface should be implemented by all custom adapters.
2424
*
2525
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
26-
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
27-
* @package Doctrine
28-
* @subpackage Adapter
29-
* @link www.doctrine-project.org
30-
* @since 1.0
31-
* @version $Revision: 7490 $
26+
*
27+
* @see www.doctrine-project.org
3228
*/
3329
interface Doctrine_Adapter_Interface
3430
{
3531
public function prepare($prepareString);
32+
3633
public function query($queryString);
34+
3735
public function quote($input);
36+
3837
public function exec($statement);
38+
3939
public function lastInsertId();
40+
4041
public function beginTransaction();
42+
4143
public function commit();
44+
4245
public function rollBack();
46+
4347
public function errorCode();
48+
4449
public function errorInfo();
50+
4551
public function setAttribute($attribute, $value);
52+
4653
public function getAttribute($attribute);
47-
}
54+
}

0 commit comments

Comments
 (0)