Skip to content

Commit 48bec52

Browse files
authored
fix: add classes in aliases.php to fix IDE error (#1995)
1 parent 24f3ec0 commit 48bec52

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

phpcs.xml.dist

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@
8989
<!-- The extends and implements keywords MUST be declared on the same line as the class name.
9090
The opening brace for the class go MUST go on its own line; the closing brace for the class MUST go on the next line after the body.
9191
Lists of implements MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one interface per line. -->
92-
<rule ref="PSR2.Classes.ClassDeclaration" />
92+
<rule ref="PSR2.Classes.ClassDeclaration">
93+
<exclude-pattern>src/aliases\.php</exclude-pattern>
94+
</rule>
9395

9496

9597
<!-- Visibility MUST be declared on all properties.
@@ -147,7 +149,9 @@
147149
<property name="ignoreComments" value="true"/>
148150
</properties>
149151
</rule>
150-
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
152+
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace">
153+
<exclude-pattern>src/aliases\.php</exclude-pattern>
154+
</rule>
151155
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
152156
<rule ref="Squiz.ControlStructures.ForLoopDeclaration"/>
153157
<rule ref="Squiz.ControlStructures.LowercaseDeclaration"/>

src/aliases.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,26 @@ class_alias($class, $alias);
4040
class Google_Task_Composer extends \Google\Task\Composer
4141
{
4242
}
43+
44+
if (\false) {
45+
class Google_AccessToken_Revoke extends \Google\AccessToken\Revoke {}
46+
class Google_AccessToken_Verify extends \Google\AccessToken\Verify {}
47+
class Google_AuthHandler_AuthHandlerFactory extends \Google\AuthHandler\AuthHandlerFactory {}
48+
class Google_AuthHandler_Guzzle5AuthHandler extends \Google\AuthHandler\Guzzle5AuthHandler {}
49+
class Google_AuthHandler_Guzzle6AuthHandler extends \Google\AuthHandler\Guzzle6AuthHandler {}
50+
class Google_AuthHandler_Guzzle7AuthHandler extends \Google\AuthHandler\Guzzle7AuthHandler {}
51+
class Google_Client extends \Google\Client {}
52+
class Google_Collection extends \Google\Collection {}
53+
class Google_Exception extends \Google\Exception {}
54+
class Google_Http_Batch extends \Google\Http\Batch {}
55+
class Google_Http_MediaFileUpload extends \Google\Http\MediaFileUpload {}
56+
class Google_Http_REST extends \Google\Http\REST {}
57+
class Google_Model extends \Google\Model {}
58+
class Google_Service extends \Google\Service {}
59+
class Google_Service_Exception extends \Google\Service\Exception {}
60+
class Google_Service_Resource extends \Google\Service\Resource {}
61+
class Google_Task_Exception extends \Google\Task\Exception {}
62+
class Google_Task_Retryable extends \Google\Task\Retryable {}
63+
class Google_Task_Runner extends \Google\Task\Runner {}
64+
class Google_Utils_UriTemplate extends \Google\Utils\UriTemplate {}
65+
}

0 commit comments

Comments
 (0)