99 * This source file is subject to the MIT license that is bundled
1010 * with this source code in the file LICENSE.
1111 */
12-
1312namespace Gitonomy \Git ;
1413
1514use Gitonomy \Git \Exception \RuntimeException ;
@@ -25,9 +24,9 @@ class Admin
2524 /**
2625 * Initializes a repository and returns the instance.
2726 *
28- * @param string $path path to the repository
29- * @param boolean $bare indicate to create a bare repository
30- * @param array $options options for Repository creation
27+ * @param string $path path to the repository
28+ * @param bool $bare indicate to create a bare repository
29+ * @param array $options options for Repository creation
3130 *
3231 * @return Repository
3332 *
@@ -56,7 +55,7 @@ public static function init($path, $bare = true, array $options = array())
5655 * @param string $url url of repository to check
5756 * @param array $options options for Repository creation
5857 *
59- * @return boolean true if url is valid
58+ * @return bool true if url is valid
6059 */
6160 public static function isValidRepository ($ url , array $ options = array ())
6261 {
@@ -70,10 +69,10 @@ public static function isValidRepository($url, array $options = array())
7069 /**
7170 * Clone a repository to a local path.
7271 *
73- * @param string $path indicates where to clone repository
74- * @param string $url url of repository to clone
75- * @param boolean $bare indicates if repository should be bare or have a working copy
76- * @param array $options options for Repository creation
72+ * @param string $path indicates where to clone repository
73+ * @param string $url url of repository to clone
74+ * @param bool $bare indicates if repository should be bare or have a working copy
75+ * @param array $options options for Repository creation
7776 *
7877 * @return Repository
7978 */
@@ -87,11 +86,11 @@ public static function cloneTo($path, $url, $bare = true, array $options = array
8786 /**
8887 * Clone a repository branch to a local path.
8988 *
90- * @param string $path indicates where to clone repository
91- * @param string $url url of repository to clone
92- * @param string $branch branch to clone
93- * @param boolean $bare indicates if repository should be bare or have a working copy
94- * @param array $options options for Repository creation
89+ * @param string $path indicates where to clone repository
90+ * @param string $url url of repository to clone
91+ * @param string $branch branch to clone
92+ * @param bool $bare indicates if repository should be bare or have a working copy
93+ * @param array $options options for Repository creation
9594 *
9695 * @return Repository
9796 */
@@ -149,9 +148,9 @@ private static function getProcess($command, array $args = array(), array $optio
149148 {
150149 $ is_windows = defined ('PHP_WINDOWS_VERSION_BUILD ' );
151150 $ options = array_merge (array (
152- 'environment_variables ' => $ is_windows ? array ( 'PATH ' => getenv ('PATH ' ) ) : array (),
153- 'command ' => 'git ' ,
154- 'process_timeout ' => 3600
151+ 'environment_variables ' => $ is_windows ? array ('PATH ' => getenv ('PATH ' )) : array (),
152+ 'command ' => 'git ' ,
153+ 'process_timeout ' => 3600 ,
155154 ), $ options );
156155
157156 $ builder = ProcessBuilder::create (array_merge (array ($ options ['command ' ], $ command ), $ args ));
0 commit comments