Completed
Push — master ( a26ef0...095f71 )
by Guillaume
02:46
created
src/menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             ->subtitle($subtitle)
108 108
             ->type('default')
109 109
             ->mod('cmd', $subtitle . ' and Harvest with default project and tags', 'start_default ' . $query)
110
-            ->mod('alt', 'Continue timer for Toggl and Harvest ("'.$alfredTime->getTimerDescription() .'") with default project and tags', 'start_default ' . $alfredTime->getTimerDescription())
110
+            ->mod('alt', 'Continue timer for Toggl and Harvest ("' . $alfredTime->getTimerDescription() . '") with default project and tags', 'start_default ' . $alfredTime->getTimerDescription())
111 111
             ->valid(true);
112 112
     } else {
113 113
         $services = $alfredTime->activatedServices();
Please login to merge, or discard this patch.
src/vendor/joetannenbaum/alfred-workflow/src/Workflow.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function sortResults($direction = 'asc', $property = 'title')
32 32
     {
33
-        usort($this->results, function ($a, $b) use ($direction, $property) {
33
+        usort($this->results, function($a, $b) use ($direction, $property) {
34 34
             if ($direction === 'asc') {
35 35
                 return $a->$property > $b->$property;
36 36
             }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         $query = (string) $query;
59 59
 
60
-        $this->results = array_filter($this->results, function ($result) use ($query, $property) {
60
+        $this->results = array_filter($this->results, function($result) use ($query, $property) {
61 61
                 return strstr($result->$property, $query) !== false;
62 62
             });
63 63
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     public function output()
73 73
     {
74 74
         $output = [
75
-            'items' => array_map(function ($result) {
75
+            'items' => array_map(function($result) {
76 76
                             return $result->toArray();
77 77
                         }, array_values($this->results)),
78 78
         ];
Please login to merge, or discard this patch.
src/timer_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
         'description' => $timer['description']
34 34
     ];
35 35
 
36
-    $subtitle = (empty($projectName) === true ? 'No project' : $projectName) .', '
37
-        .(empty($tags) === true ? 'No tag' : '[' .implode(', ', $tags) .']') .', '
36
+    $subtitle = (empty($projectName) === true ? 'No project' : $projectName) . ', '
37
+        .(empty($tags) === true ? 'No tag' : '[' . implode(', ', $tags) . ']') . ', '
38 38
         .($duration > 0 ? gmdate('H:i:s', $duration) : '--:--:--');
39 39
 
40 40
     $workflow->result()
Please login to merge, or discard this patch.
src/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use GuzzleHttp\Promise as P;
5 5
 use GuzzleHttp\Promise\Promise;
6
-use GuzzleHttp\Psr7;
7 6
 use Psr\Http\Message\RequestInterface;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
         $promise = new Promise(
67 67
             [$this, 'execute'],
68
-            function () use ($id) { return $this->cancel($id); }
68
+            function() use ($id) { return $this->cancel($id); }
69 69
         );
70 70
 
71 71
         $this->addRequest(['easy' => $easy, 'deferred' => $promise]);
Please login to merge, or discard this patch.
src/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use GuzzleHttp\Promise\PromiseInterface;
5 5
 use GuzzleHttp\Promise\RejectedPromise;
6
-use GuzzleHttp\Psr7;
7 6
 use Psr\Http\Message\RequestInterface;
8 7
 use Psr\Http\Message\ResponseInterface;
9 8
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     private function onFulfilled(RequestInterface $req, array $options)
75 75
     {
76
-        return function ($value) use ($req, $options) {
76
+        return function($value) use ($req, $options) {
77 77
             if (!call_user_func(
78 78
                 $this->decider,
79 79
                 $options['retries'],
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     private function onRejected(RequestInterface $req, array $options)
91 91
     {
92
-        return function ($reason) use ($req, $options) {
92
+        return function($reason) use ($req, $options) {
93 93
             if (!call_user_func(
94 94
                 $this->decider,
95 95
                 $options['retries'],
Please login to merge, or discard this patch.
src/vendor/composer/ClassLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
             return false;
343 343
         }
344 344
         if (null !== $this->apcuPrefix) {
345
-            $file = apcu_fetch($this->apcuPrefix.$class, $hit);
345
+            $file = apcu_fetch($this->apcuPrefix . $class, $hit);
346 346
             if ($hit) {
347 347
                 return $file;
348 348
             }
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
         }
357 357
 
358 358
         if (null !== $this->apcuPrefix) {
359
-            apcu_add($this->apcuPrefix.$class, $file);
359
+            apcu_add($this->apcuPrefix . $class, $file);
360 360
         }
361 361
 
362 362
         if (false === $file) {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
             $subPath = $class;
378 378
             while (false !== $lastPos = strrpos($subPath, '\\')) {
379 379
                 $subPath = substr($subPath, 0, $lastPos);
380
-                $search = $subPath.'\\';
380
+                $search = $subPath . '\\';
381 381
                 if (isset($this->prefixDirsPsr4[$search])) {
382 382
                     foreach ($this->prefixDirsPsr4[$search] as $dir) {
383 383
                         $length = $this->prefixLengthsPsr4[$first][$search];
Please login to merge, or discard this patch.
src/vendor/composer/autoload_static.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,55 +6,55 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInita05347a33fae9bdb6b099d5455d6f527
8 8
 {
9
-    public static $files = array (
9
+    public static $files = array(
10 10
         'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
11 11
         'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
12 12
         '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
13 13
     );
14 14
 
15
-    public static $prefixLengthsPsr4 = array (
15
+    public static $prefixLengthsPsr4 = array(
16 16
         'P' => 
17
-        array (
17
+        array(
18 18
             'Psr\\Http\\Message\\' => 17,
19 19
         ),
20 20
         'G' => 
21
-        array (
21
+        array(
22 22
             'GuzzleHttp\\Psr7\\' => 16,
23 23
             'GuzzleHttp\\Promise\\' => 19,
24 24
             'GuzzleHttp\\' => 11,
25 25
         ),
26 26
         'A' => 
27
-        array (
27
+        array(
28 28
             'Alfred\\Workflows\\' => 17,
29 29
         ),
30 30
     );
31 31
 
32
-    public static $prefixDirsPsr4 = array (
32
+    public static $prefixDirsPsr4 = array(
33 33
         'Psr\\Http\\Message\\' => 
34
-        array (
34
+        array(
35 35
             0 => __DIR__ . '/..' . '/psr/http-message/src',
36 36
         ),
37 37
         'GuzzleHttp\\Psr7\\' => 
38
-        array (
38
+        array(
39 39
             0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
40 40
         ),
41 41
         'GuzzleHttp\\Promise\\' => 
42
-        array (
42
+        array(
43 43
             0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
44 44
         ),
45 45
         'GuzzleHttp\\' => 
46
-        array (
46
+        array(
47 47
             0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
48 48
         ),
49 49
         'Alfred\\Workflows\\' => 
50
-        array (
50
+        array(
51 51
             0 => __DIR__ . '/..' . '/joetannenbaum/alfred-workflow/src',
52 52
         ),
53 53
     );
54 54
 
55 55
     public static function getInitializer(ClassLoader $loader)
56 56
     {
57
-        return \Closure::bind(function () use ($loader) {
57
+        return \Closure::bind(function() use ($loader) {
58 58
             $loader->prefixLengthsPsr4 = ComposerStaticInita05347a33fae9bdb6b099d5455d6f527::$prefixLengthsPsr4;
59 59
             $loader->prefixDirsPsr4 = ComposerStaticInita05347a33fae9bdb6b099d5455d6f527::$prefixDirsPsr4;
60 60
 
Please login to merge, or discard this patch.
src/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     public function toArray()
90 90
     {
91
-        return array_map(function (SetCookie $cookie) {
91
+        return array_map(function(SetCookie $cookie) {
92 92
             return $cookie->toArray();
93 93
         }, $this->getIterator()->getArrayCopy());
94 94
     }
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
         } elseif (!$path) {
102 102
             $this->cookies = array_filter(
103 103
                 $this->cookies,
104
-                function (SetCookie $cookie) use ($path, $domain) {
104
+                function(SetCookie $cookie) use ($path, $domain) {
105 105
                     return !$cookie->matchesDomain($domain);
106 106
                 }
107 107
             );
108 108
         } elseif (!$name) {
109 109
             $this->cookies = array_filter(
110 110
                 $this->cookies,
111
-                function (SetCookie $cookie) use ($path, $domain) {
111
+                function(SetCookie $cookie) use ($path, $domain) {
112 112
                     return !($cookie->matchesPath($path) &&
113 113
                         $cookie->matchesDomain($domain));
114 114
                 }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         } else {
117 117
             $this->cookies = array_filter(
118 118
                 $this->cookies,
119
-                function (SetCookie $cookie) use ($path, $domain, $name) {
119
+                function(SetCookie $cookie) use ($path, $domain, $name) {
120 120
                     return !($cookie->getName() == $name &&
121 121
                         $cookie->matchesPath($path) &&
122 122
                         $cookie->matchesDomain($domain));
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $this->cookies = array_filter(
131 131
             $this->cookies,
132
-            function (SetCookie $cookie) {
132
+            function(SetCookie $cookie) {
133 133
                 return !$cookie->getDiscard() && $cookie->getExpires();
134 134
             }
135 135
         );
Please login to merge, or discard this patch.
src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         }
67 67
 
68 68
         return $fn($request, $options)
69
-            ->then(function (ResponseInterface $response) use ($request, $options) {
69
+            ->then(function(ResponseInterface $response) use ($request, $options) {
70 70
                 return $this->checkRedirect($request, $options, $response);
71 71
             });
72 72
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     private function withTracking(PromiseInterface $promise, $uri)
119 119
     {
120 120
         return $promise->then(
121
-            function (ResponseInterface $response) use ($uri) {
121
+            function(ResponseInterface $response) use ($uri) {
122 122
                 // Note that we are pushing to the front of the list as this
123 123
                 // would be an earlier response than what is currently present
124 124
                 // in the history header.
Please login to merge, or discard this patch.