Skip to content

Commit b2b7df4

Browse files
committed
Fix: Run phpcbf again
1 parent 9fa101e commit b2b7df4

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

src/Google/autoload.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@
1515
* limitations under the License.
1616
*/
1717

18-
spl_autoload_register(function ($className) {
19-
$classPath = explode('_', $className);
20-
if ($classPath[0] != 'Google') {
21-
return;
22-
}
23-
// Drop 'Google', and maximum class file path depth in this project is 3.
24-
$classPath = array_slice($classPath, 1, 2);
18+
spl_autoload_register(
19+
function ($className) {
20+
$classPath = explode('_', $className);
21+
if ($classPath[0] != 'Google') {
22+
return;
23+
}
24+
// Drop 'Google', and maximum class file path depth in this project is 3.
25+
$classPath = array_slice($classPath, 1, 2);
2526

26-
$filePath = dirname(__FILE__) . '/' . implode('/', $classPath) . '.php';
27-
if (file_exists($filePath)) {
28-
require_once($filePath);
29-
}
30-
});
27+
$filePath = dirname(__FILE__) . '/' . implode('/', $classPath) . '.php';
28+
if (file_exists($filePath)) {
29+
require_once($filePath);
30+
}
31+
}
32+
);

0 commit comments

Comments
 (0)