This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat temp.php | |
| <?php | |
| class Client extends GuzzleClient implements ClientInterface { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function authenticatedRequest($method = 'GET', $url = null, UserInterface $user, $options = []) { | |
| $duration = isset($options['timeout']) ? $options['timeout'] : NULL; | |
| $options['query']['token'] = $user->acquireToken($duration); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace MyCustomProject; | |
| use PHP_CodeSniffer\Runner; | |
| use PHP_CodeSniffer\Config; | |
| use PHP_CodeSniffer\Reporter; | |
| use PHP_CodeSniffer\Files\DummyFile; | |
| use PHP_CodeSniffer\Util\Timing; | |
| // Include the PHPCS autoloader however you need. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace MyCustomProject; | |
| use PHP_CodeSniffer\Runner; | |
| use PHP_CodeSniffer\Config; | |
| use PHP_CodeSniffer\Files\DummyFile; | |
| // Include the PHPCS autoloader, however you need to. | |
| require_once __DIR__.'/autoload.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Verifies that inline control statements are not present. | |
| * | |
| * @author Greg Sherwood <gsherwood@squiz.net> | |
| * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) | |
| * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | |
| */ | |
| namespace PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures; |
OlderNewer