File tree Expand file tree Collapse file tree 5 files changed +6
-10
lines changed Expand file tree Collapse file tree 5 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ public function getPath()
141
141
*/
142
142
public function getParent ()
143
143
{
144
- return null ;
145
144
}
146
145
147
146
/**
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public function lookup(Request $request)
121
121
$ key = $ this ->getCacheKey ($ request );
122
122
123
123
if (!$ entries = $ this ->getMetadata ($ key )) {
124
- return null ;
124
+ return ;
125
125
}
126
126
127
127
// find a cached entry that matches the request.
@@ -135,7 +135,7 @@ public function lookup(Request $request)
135
135
}
136
136
137
137
if (null === $ match ) {
138
- return null ;
138
+ return ;
139
139
}
140
140
141
141
list ($ req , $ headers ) = $ match ;
@@ -146,7 +146,6 @@ public function lookup(Request $request)
146
146
// TODO the metaStore referenced an entity that doesn't exist in
147
147
// the entityStore. We definitely want to return nil but we should
148
148
// also purge the entry from the meta-store when this is detected.
149
- return null ;
150
149
}
151
150
152
151
/**
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public function purge()
116
116
public function read ($ token )
117
117
{
118
118
if (!$ token || !file_exists ($ file = $ this ->getFilename ($ token ))) {
119
- return null ;
119
+ return ;
120
120
}
121
121
122
122
return $ this ->createProfileFromData ($ token , unserialize (file_get_contents ($ file )));
@@ -215,7 +215,7 @@ protected function readLineFromFile($file)
215
215
$ position = ftell ($ file );
216
216
217
217
if (0 === $ position ) {
218
- return null ;
218
+ return ;
219
219
}
220
220
221
221
while (true ) {
Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ public function read($token)
77
77
if (isset ($ data [0 ]['data ' ])) {
78
78
return $ this ->createProfileFromData ($ token , $ data [0 ]);
79
79
}
80
-
81
- return null ;
82
80
}
83
81
84
82
/**
Original file line number Diff line number Diff line change @@ -273,13 +273,13 @@ public function get($name)
273
273
private function getTimestamp ($ value )
274
274
{
275
275
if (null === $ value || '' == $ value ) {
276
- return null ;
276
+ return ;
277
277
}
278
278
279
279
try {
280
280
$ value = new \DateTime (is_numeric ($ value ) ? '@ ' .$ value : $ value );
281
281
} catch (\Exception $ e ) {
282
- return null ;
282
+ return ;
283
283
}
284
284
285
285
return $ value ->getTimestamp ();
You can’t perform that action at this time.
0 commit comments