12
12
13
13
namespace Gitonomy \Git ;
14
14
15
- use Psr \Log \LoggerInterface ;
16
- use Symfony \Component \Process \Process ;
17
- use Symfony \Component \Process \ProcessBuilder ;
18
-
19
15
use Gitonomy \Git \Diff \Diff ;
16
+ use Gitonomy \Git \Exception \InvalidArgumentException ;
20
17
use Gitonomy \Git \Exception \ProcessException ;
21
18
use Gitonomy \Git \Exception \RuntimeException ;
22
- use Gitonomy \Git \Exception \InvalidArgumentException ;
19
+ use Psr \Log \LoggerInterface ;
20
+ use Symfony \Component \Process \Process ;
21
+ use Symfony \Component \Process \ProcessBuilder ;
23
22
24
23
/**
25
24
* Git repository object.
@@ -115,7 +114,7 @@ class Repository
115
114
*/
116
115
public function __construct ($ dir , $ options = array ())
117
116
{
118
- $ is_windows = defined ( 'PHP_WINDOWS_VERSION_BUILD ' );
117
+ $ is_windows = defined ('PHP_WINDOWS_VERSION_BUILD ' );
119
118
$ options = array_merge (array (
120
119
'working_dir ' => null ,
121
120
'debug ' => true ,
@@ -139,7 +138,7 @@ public function __construct($dir, $options = array())
139
138
$ this ->command = $ options ['command ' ];
140
139
141
140
if (true === $ this ->debug && null !== $ this ->logger ) {
142
- $ this ->logger ->debug (sprintf ('Repository created (git dir: "%s", working dir: "%s") ' , $ this ->gitDir , $ this ->workingDir ? : 'none ' ));
141
+ $ this ->logger ->debug (sprintf ('Repository created (git dir: "%s", working dir: "%s") ' , $ this ->gitDir , $ this ->workingDir ?: 'none ' ));
143
142
}
144
143
}
145
144
@@ -379,7 +378,7 @@ public function getBlame($revision, $file, $lineRange = null)
379
378
*
380
379
* @param array $revisions An array of revisions to show logs from. Can be
381
380
* any text value type
382
- * @param array $paths Restrict log to modifications occuring on given
381
+ * @param array $paths Restrict log to modifications occuring on given
383
382
* paths.
384
383
*
385
384
* @param int $offset Start from a given offset in results.
@@ -616,7 +615,7 @@ private function getProcess($command, $args = array())
616
615
$ base = array ($ this ->command , '--git-dir ' , $ this ->gitDir );
617
616
618
617
if ($ this ->workingDir ) {
619
- $ base = array_merge ($ base , array ('--work-tree ' , $ this ->workingDir ));;
618
+ $ base = array_merge ($ base , array ('--work-tree ' , $ this ->workingDir ));
620
619
}
621
620
622
621
$ base [] = $ command ;
0 commit comments