Skip to content

Commit 9c63e5d

Browse files
TybazethePanz
authored andcommitted
Fix Annotation and Coding Style
1 parent b6546b1 commit 9c63e5d

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

lib/Doctrine/Connection/Profiler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function __call($m, $a)
107107
* get
108108
*
109109
* @param mixed $key
110-
* @return Doctrine_Event
110+
* @return Doctrine_Event|null
111111
*/
112112
public function get($key)
113113
{
@@ -121,7 +121,7 @@ public function get($key)
121121
* getAll
122122
* returns all profiled events as an array
123123
*
124-
* @return array all events in an array
124+
* @return Doctrine_Event[] All events in an array
125125
*/
126126
public function getAll()
127127
{
@@ -154,7 +154,7 @@ public function count()
154154
/**
155155
* pop the last event from the event stack
156156
*
157-
* @return Doctrine_Event
157+
* @return Doctrine_Event|null
158158
*/
159159
public function pop()
160160
{

lib/Doctrine/Connection/Sqlite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function __construct(Doctrine_Manager $manager, $adapter)
9090
public function connect()
9191
{
9292
if ($this->isConnected) {
93-
return false;
93+
return;
9494
}
9595

9696
// If customer configure it

lib/Doctrine/Record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,6 @@ public function unserialize($serialized)
815815
$array = unserialize($serialized);
816816

817817
$this->__unserialize($array);
818-
819818
}
820819

821820
/**

lib/Doctrine/Table.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
* @version $Revision$
3232
* @link www.doctrine-project.org
3333
* @since 1.0
34-
* @method mixed findBy*(mixed $value) magic finders; @see __call()
35-
* @method mixed findOneBy*(mixed $value) magic finders; @see __call()
3634
*/
3735
class Doctrine_Table extends Doctrine_Configurable implements Countable, Serializable
3836
{
@@ -561,7 +559,7 @@ public function getRecordInstance()
561559
/**
562560
* Checks whether a column is inherited from a component further up in the hierarchy.
563561
*
564-
* @param $columnName The column name
562+
* @param string $columnName The column name
565563
* @return boolean TRUE if column is inherited, FALSE otherwise.
566564
*/
567565
public function isInheritedColumn($columnName)
@@ -1133,7 +1131,7 @@ public function processOrderBy($alias, $orderBy, $columnNames = false)
11331131
}
11341132

11351133
// Php8.1 require a string
1136-
if(null === $orderBy) {
1134+
if (null === $orderBy) {
11371135
$orderBy = '';
11381136
}
11391137

@@ -3035,7 +3033,7 @@ public function __serialize() {
30353033
/**
30363034
* Unserializes a Doctrine_Record instance for php 7.4+
30373035
*
3038-
* @param array $serialized
3036+
* @param array $data
30393037
*/
30403038
public function __unserialize($data) {
30413039

@@ -3052,7 +3050,10 @@ public function __unserialize($data) {
30523050
$this->_useIdentityMap = $data[10];
30533051
}
30543052

3055-
3053+
/**
3054+
* Creates new instance and initialize it from cache.
3055+
*
3056+
*/
30563057
public function initializeFromCache(Doctrine_Connection $conn)
30573058
{
30583059
$this->_conn = $conn;

lib/Doctrine/Task.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct($dispatcher = null)
5353
{
5454
$this->dispatcher = $dispatcher;
5555

56-
$taskName = (string)$this->getTaskName();
56+
$taskName = (string) $this->getTaskName();
5757

5858
//Derive the task name only if it wasn't entered at design-time
5959
if ('' === trim($taskName)) {

lib/Doctrine/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public static function validateLength($value, $type, $maximumLength)
126126
public static function getStringLength($string)
127127
{
128128
if (function_exists('mb_strlen')) {
129-
return mb_strlen((string)$string, 'utf8');
129+
return mb_strlen((string) $string, 'utf8');
130130
} else {
131-
return strlen(utf8_decode((string)$string));
131+
return strlen(utf8_decode((string) $string));
132132
}
133133
}
134134

lib/Doctrine/Validator/Notblank.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ class Doctrine_Validator_Notblank extends Doctrine_Validator_Driver
4141
*/
4242
public function validate($value)
4343
{
44-
return ($value !== null && trim($value) !== '');
44+
return (null !== $value && '' !== trim($value));
4545
}
4646
}

0 commit comments

Comments
 (0)