This file contains 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 Tests\Traits; | |
use KushyApi\User; | |
trait AttachJwtToken | |
{ | |
/** | |
* @var User |
This file contains 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
#!/bin/sh | |
## | |
## Import an existing git repository (A) into another (B) | |
## | |
## Reference: http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/ | |
## | |
REPO_A="<git repo A url>" | |
REPO_A_DIR="<directory 1>" |
This file contains 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 | |
/** | |
* @version 3.6 | |
* @package CLI | |
* @author Manoj L<manoj_l@techjoomla.com> | |
* @copyright Copyright (c) 2009-2017 Manoj L. All rights reserved | |
* @license GNU General Public License version 2, or later | |
*/ | |
// Make sure this is being called from the command line |
This file contains 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
#title :config | |
#description :Config for phpcs parameters to work with pre-commit.sh | |
#usage :add the file on the same location where pre-commit.sh exists. ie. under .git/hooks | |
#================================================================================================== | |
# path to phpcs "binary" | |
PHPCS_BIN=/usr/bin/phpcs | |
# the coding standard, you can also specify a path to your own standard here | |
PHPCS_CODING_STANDARD=Joomla |
This file contains 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
#!/bin/sh | |
# PHP CodeSniffer pre-receive hook for git | |
# Save it as pre-receive in hooks folder. Give it executable permission | |
# Based on - https://gist.github.com/bor/1253485 | |
# use coding standart dir from local repo | |
PHPCS_DIR_LOCAL=0 | |
TMP_DIR=$(mktemp -d --tmpdir phpcs-pre-receive-hook.XXXXXXXX) | |
mkdir "$TMP_DIR/source" |