Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit e212b06

Browse files
derrabusnicolas-grekas
authored andcommitted
Fix inconsistent return points.
1 parent 5a37725 commit e212b06

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

‎ApcClassLoader.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ public function loadClass($class)
113113

114114
return true;
115115
}
116+
117+
return null;
116118
}
117119

118120
/**

‎ClassLoader.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ public function loadClass($class)
161161

162162
return true;
163163
}
164+
165+
return null;
164166
}
165167

166168
/**
@@ -203,5 +205,7 @@ public function findFile($class)
203205
if ($this->useIncludePath && $file = stream_resolve_include_path($classPath)) {
204206
return $file;
205207
}
208+
209+
return null;
206210
}
207211
}

‎MapClassLoader.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ public function loadClass($class)
6363
*/
6464
public function findFile($class)
6565
{
66-
if (isset($this->map[$class])) {
67-
return $this->map[$class];
68-
}
66+
return isset($this->map[$class]) ? $this->map[$class] : null;
6967
}
7068
}

‎Psr4ClassLoader.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public function findFile($class)
5555
}
5656
}
5757
}
58+
59+
return null;
5860
}
5961

6062
/**

‎WinCacheClassLoader.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ public function loadClass($class)
112112

113113
return true;
114114
}
115+
116+
return null;
115117
}
116118

117119
/**

‎XcacheClassLoader.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public function loadClass($class)
106106

107107
return true;
108108
}
109+
110+
return null;
109111
}
110112

111113
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /