Passed
Push — develop ( de1fae...b75ed1 )
by Reüel
04:29
created
src/repositories.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
 		// Git flow
76 76
 		chdir( $git_dir );
77 77
 
78
-		if ( isset( $argv[1] ) && 'develop' === $argv[1] ) {
78
+		if ( isset( $argv[ 1 ] ) && 'develop' === $argv[ 1 ] ) {
79 79
 			`git checkout develop`;
80 80
 		}
81 81
 
82
-		if ( isset( $argv[1] ) && 'pull' === $argv[1] ) {
82
+		if ( isset( $argv[ 1 ] ) && 'pull' === $argv[ 1 ] ) {
83 83
 			$command = 'git pull';
84 84
 
85 85
 			echo $command, PHP_EOL;
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
 			echo shell_exec( $command ), PHP_EOL;
88 88
 		}
89 89
 
90
-		if ( isset( $argv[1], $argv[2] ) && in_array( $argv[1], array( 'git', 'composer', 'yarn' ) ) ) {
91
-			$command = sprintf( '%s %s', $argv[1], $argv[2] );
90
+		if ( isset( $argv[ 1 ], $argv[ 2 ] ) && in_array( $argv[ 1 ], array( 'git', 'composer', 'yarn' ) ) ) {
91
+			$command = sprintf( '%s %s', $argv[ 1 ], $argv[ 2 ] );
92 92
 		}
93 93
 
94 94
 		if ( null !== $command ) {
Please login to merge, or discard this patch.