Completed
Branch master (01bfb0)
by Nik
03:53
created
src/Agent/AgentTask.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * For the full copyright and license information, please view the LICENSE.md
4
- * file that was distributed with this source code.
5
- */
3
+     * For the full copyright and license information, please view the LICENSE.md
4
+     * file that was distributed with this source code.
5
+     */
6 6
 
7 7
 namespace Notamedia\ConsoleJedi\Agent;
8 8
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -200,8 +200,7 @@  discard block
 block discarded – undo
200 200
         if ($this->executionTime instanceof DateTime)
201 201
         {
202 202
             $this->executionTime = $this->executionTime->toString();
203
-        }
204
-        elseif ($this->executionTime === null)
203
+        } elseif ($this->executionTime === null)
205 204
         {
206 205
             $time = new DateTime();
207 206
             $this->executionTime = $time->toString();
@@ -212,8 +211,7 @@  discard block
 block discarded – undo
212 211
             if ($this->$property === true)
213 212
             {
214 213
                 $this->$property = 'Y';
215
-            }
216
-            else
214
+            } else
217 215
             {
218 216
                 $this->$property = 'N';
219 217
             }
Please login to merge, or discard this patch.
src/Agent/AgentHelper.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * For the full copyright and license information, please view the LICENSE.md
4
- * file that was distributed with this source code.
5
- */
3
+     * For the full copyright and license information, please view the LICENSE.md
4
+     * file that was distributed with this source code.
5
+     */
6 6
 
7 7
 namespace Notamedia\ConsoleJedi\Agent;
8 8
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             }
44 44
         }
45 45
 
46
-        return '\\' . $className . '::agent(' . static::convertArgsToString($args). ')' . $chain . ';';
46
+        return '\\' . $className . '::agent(' . static::convertArgsToString($args) . ')' . $chain . ';';
47 47
     }
48 48
 
49 49
     protected static function convertArgsToString(array $args)
Please login to merge, or discard this patch.
src/Agent/Command/ExecuteCommand.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * For the full copyright and license information, please view the LICENSE.md
4
- * file that was distributed with this source code.
5
- */
3
+     * For the full copyright and license information, please view the LICENSE.md
4
+     * file that was distributed with this source code.
5
+     */
6 6
 
7 7
 namespace Notamedia\ConsoleJedi\Agent\Command;
8 8
 
Please login to merge, or discard this patch.
src/Agent/Command/OnCronCommand.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * For the full copyright and license information, please view the LICENSE.md
4
- * file that was distributed with this source code.
5
- */
3
+     * For the full copyright and license information, please view the LICENSE.md
4
+     * file that was distributed with this source code.
5
+     */
6 6
 
7 7
 namespace Notamedia\ConsoleJedi\Agent\Command;
8 8
 
Please login to merge, or discard this patch.
tmpl/environments/index.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The manifest of files that are local to specific environment.
4
- * This file returns a list of environments that the application
5
- * may be installed under. The returned data must be in the following
6
- * format:
7
- *
8
- * ```php
9
- * return [
10
- *      '<key>' => [
11
- *          'name' => '<Environment name>',
12
- *          'path' => '<dir-path>'
13
- *      ]
14
- * ];
15
- * ```
16
- */
3
+     * The manifest of files that are local to specific environment.
4
+     * This file returns a list of environments that the application
5
+     * may be installed under. The returned data must be in the following
6
+     * format:
7
+     *
8
+     * ```php
9
+     * return [
10
+     *      '<key>' => [
11
+     *          'name' => '<Environment name>',
12
+     *          'path' => '<dir-path>'
13
+     *      ]
14
+     * ];
15
+     * ```
16
+     */
17 17
 
18 18
 return [
19 19
     'dev' => [
Please login to merge, or discard this patch.
tmpl/environments/prod/config.php 1 patch
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -1,63 +1,63 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Example settings file config.php:
4
- * 
5
- * ```php
6
- * return [
7
- *      // License key for Bitrix
8
- *      'licenseKey' => 'NFR-123-456',
9
- * 
10
- *      // Modules to be installed
11
- *      'modules' => [
12
- *          'project.main',
13
- *          'bex.bbc',
14
- *          'digitalwand.admin_helper',
15
- *      ],
16
- * 
17
- *      // Options for modules 
18
- *      'options' => [
19
- *          'vendor.module' => [
20
- *              'OPTION_CODE' => 'value',
21
- *              'OPTION_CODE' => ['value' => 'test', 'siteId' => 's1']
22
- *          ],
23
- *      ],
24
- * 
25
- *      // Settings for module "cluster"
26
- *      'cluster' => [
27
- *          'memcache' => [
28
- *              [
29
- *                  'GROUP_ID' => 1,
30
- *                  'HOST' => 'host',
31
- *                  'PORT' => 'port',
32
- *                  'WEIGHT' => 'weight',
33
- *                  'STATUS' => 'status',
34
- *              ],
35
- *              [
36
- *                  'GROUP_ID' => 1,
37
- *                  'HOST' => 'host',
38
- *                  'PORT' => 'port',
39
- *                  'WEIGHT' => 'weight',
40
- *                  'STATUS' => 'status',
41
- *              ]
42
- *          ]
43
- *      ],
44
- * 
45
- *      // Values for file .settings.php
46
- *      'settings' => [
47
- *          'connections' => [
48
- *              'default' => [
49
- *                  'host' => 'host',
50
- *                  'database' => 'db',
51
- *                  'login' => 'login',
52
- *                  'password' => 'pass',
53
- *                  'className' => '\\Bitrix\\Main\\DB\\MysqlConnection',
54
- *                  'options' => 2,
55
- *              ],
56
- *          ]
57
- *      ]
58
- * ];
59
- * ```
60
- */
3
+     * Example settings file config.php:
4
+     * 
5
+     * ```php
6
+     * return [
7
+     *      // License key for Bitrix
8
+     *      'licenseKey' => 'NFR-123-456',
9
+     * 
10
+     *      // Modules to be installed
11
+     *      'modules' => [
12
+     *          'project.main',
13
+     *          'bex.bbc',
14
+     *          'digitalwand.admin_helper',
15
+     *      ],
16
+     * 
17
+     *      // Options for modules 
18
+     *      'options' => [
19
+     *          'vendor.module' => [
20
+     *              'OPTION_CODE' => 'value',
21
+     *              'OPTION_CODE' => ['value' => 'test', 'siteId' => 's1']
22
+     *          ],
23
+     *      ],
24
+     * 
25
+     *      // Settings for module "cluster"
26
+     *      'cluster' => [
27
+     *          'memcache' => [
28
+     *              [
29
+     *                  'GROUP_ID' => 1,
30
+     *                  'HOST' => 'host',
31
+     *                  'PORT' => 'port',
32
+     *                  'WEIGHT' => 'weight',
33
+     *                  'STATUS' => 'status',
34
+     *              ],
35
+     *              [
36
+     *                  'GROUP_ID' => 1,
37
+     *                  'HOST' => 'host',
38
+     *                  'PORT' => 'port',
39
+     *                  'WEIGHT' => 'weight',
40
+     *                  'STATUS' => 'status',
41
+     *              ]
42
+     *          ]
43
+     *      ],
44
+     * 
45
+     *      // Values for file .settings.php
46
+     *      'settings' => [
47
+     *          'connections' => [
48
+     *              'default' => [
49
+     *                  'host' => 'host',
50
+     *                  'database' => 'db',
51
+     *                  'login' => 'login',
52
+     *                  'password' => 'pass',
53
+     *                  'className' => '\\Bitrix\\Main\\DB\\MysqlConnection',
54
+     *                  'options' => 2,
55
+     *              ],
56
+     *          ]
57
+     *      ]
58
+     * ];
59
+     * ```
60
+     */
61 61
 
62 62
 return [
63 63
 ];
64 64
\ No newline at end of file
Please login to merge, or discard this patch.