GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 0e62a0...58f01c )
by Arkadiusz
25:26
created
features/bootstrap/FeatureContext.php 3 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,12 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Behat\Behat\Tester\Exception\PendingException;
4 3
 use Behat\Behat\Context\Context;
5 4
 use Behat\Behat\Context\SnippetAcceptingContext;
6 5
 use Behat\Gherkin\Node\PyStringNode;
7
-use Behat\Gherkin\Node\TableNode;
8 6
 use Behat\Behat\Hook\Scope\AfterScenarioScope;
9
-
10 7
 use Symfony\Component\Finder\Finder;
11 8
 
12 9
 /**
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-    * @Given I run :command
51
-    */
50
+     * @Given I run :command
51
+     */
52 52
     public function iRun($command)
53 53
     {
54 54
         exec($command);
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
     }
83 83
 
84 84
     /**
85
-      * @AfterScenario
86
-      */
87
-     public function deleteMigrations(AfterScenarioScope $scope)
88
-     {
89
-         $pattern =  getcwd() . '/' . $this->dir . '/*.php';
90
-         array_map('unlink', glob($pattern));
91
-     }
85
+     * @AfterScenario
86
+     */
87
+        public function deleteMigrations(AfterScenarioScope $scope)
88
+        {
89
+            $pattern =  getcwd() . '/' . $this->dir . '/*.php';
90
+            array_map('unlink', glob($pattern));
91
+        }
92 92
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     public function iSeeTheFileWitchNameContains($fileName)
61 61
     {
62 62
         $this->fileName = $fileName;
63
-        $pattern =  getcwd() . '/' . $this->dir;
64
-        if (count((new Finder())->files()->in($pattern)->name('*' . $fileName)) === 0) {
63
+        $pattern = getcwd().'/'.$this->dir;
64
+        if (count((new Finder())->files()->in($pattern)->name('*'.$fileName)) === 0) {
65 65
             throw new \Exception('File does not exist');
66 66
         }
67 67
     }
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function thisFileBodyContains(PyStringNode $string)
73 73
     {
74
-        $pattern =  getcwd() . '/' . $this->dir;
74
+        $pattern = getcwd().'/'.$this->dir;
75 75
         $content = '';
76
-        foreach ((new Finder())->files()->in($pattern)->name('*' . $this->fileName) as $file) {
76
+        foreach ((new Finder())->files()->in($pattern)->name('*'.$this->fileName) as $file) {
77 77
             $content = $file->getContents();
78 78
         }
79 79
         if (strpos($content, $string->getRaw()) === false) {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
       */
87 87
      public function deleteMigrations(AfterScenarioScope $scope)
88 88
      {
89
-         $pattern =  getcwd() . '/' . $this->dir . '/*.php';
89
+         $pattern = getcwd().'/'.$this->dir.'/*.php';
90 90
          array_map('unlink', glob($pattern));
91 91
      }
92 92
 }
Please login to merge, or discard this patch.
src/Dami/Cli/Command/AbstractCommand.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Dami\Cli\Command;
4 4
 
5
-use Symfony\Component\Console\Command\Command,
6
-    Symfony\Component\Console\Input\InputOption,
7
-    Symfony\Component\Console\Input\InputInterface,
8
-    Symfony\Component\Console\Output\OutputInterface;
5
+use Symfony\Component\Console\Command\Command;
6
+use Symfony\Component\Console\Input\InputOption;
7
+use Symfony\Component\Console\Input\InputInterface;
8
+use Symfony\Component\Console\Output\OutputInterface;
9 9
 
10 10
 
11 11
 class AbstractCommand extends Command
Please login to merge, or discard this patch.
src/Dami/Migration/Api/TableApi.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
     /**
19 19
      * Constructor.
20 20
      *
21
-     * @param string       $table        Table name.
22 21
      * @param Schema       $schema
23 22
      * @param Manipulation $manipulation
24 23
      * @param array        $actions
24
+     * @param string $name
25 25
      */
26 26
     public function __construct($name, Schema $schema = null, Manipulation $manipulation, &$actions)
27 27
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $column->setTable($this);
62 62
 
63 63
         $this->actions[] =  function () use ($column) {
64
-             return $this->manipulation->drop($column);
64
+                return $this->manipulation->drop($column);
65 65
         };
66 66
 
67 67
         return $this;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $foreignKey->setDeleteAction($options['delete']);
96 96
         }
97 97
         $this->actions[] =  function () use ($foreignKey) {
98
-             return $this->manipulation->create($foreignKey);
98
+                return $this->manipulation->create($foreignKey);
99 99
         };
100 100
 
101 101
         return $this;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $foreignKey->setReferencedColumns($referenceColumns);
120 120
 
121 121
         $this->actions[] =  function () use ($foreignKey) {
122
-             return $this->manipulation->drop($foreignKey);
122
+                return $this->manipulation->drop($foreignKey);
123 123
         };
124 124
 
125 125
         return $this;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $unique = new Unique($columns, $this);
138 138
 
139 139
         $this->actions[] =  function () use ($unique) {
140
-             return $this->manipulation->create($unique);
140
+                return $this->manipulation->create($unique);
141 141
         };
142 142
 
143 143
         return $this;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $unique = new Unique($columns, $this);
156 156
 
157 157
         $this->actions[] =  function () use ($unique) {
158
-             return $this->manipulation->drop($unique);
158
+                return $this->manipulation->drop($unique);
159 159
         };
160 160
 
161 161
         return $this;
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $index = new Index($columns, $this);
174 174
 
175 175
         $this->actions[] =  function () use ($index) {
176
-             return $this->manipulation->create($index);
176
+                return $this->manipulation->create($index);
177 177
         };
178 178
 
179 179
         return $this;
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         $index = new Index($columns, $this);
192 192
 
193 193
         $this->actions[] =  function () use ($index) {
194
-             return $this->manipulation->drop($index);
194
+                return $this->manipulation->drop($index);
195 195
         };
196 196
 
197 197
         return $this;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $column = new TextColumn($name);
61 61
         $column->setTable($this);
62 62
 
63
-        $this->actions[] =  function () use ($column) {
63
+        $this->actions[] = function() use ($column) {
64 64
              return $this->manipulation->drop($column);
65 65
         };
66 66
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         if (isset($options['delete'])) {
95 95
             $foreignKey->setDeleteAction($options['delete']);
96 96
         }
97
-        $this->actions[] =  function () use ($foreignKey) {
97
+        $this->actions[] = function() use ($foreignKey) {
98 98
              return $this->manipulation->create($foreignKey);
99 99
         };
100 100
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $foreignKey->setColumns($referenceColumns);
119 119
         $foreignKey->setReferencedColumns($referenceColumns);
120 120
 
121
-        $this->actions[] =  function () use ($foreignKey) {
121
+        $this->actions[] = function() use ($foreignKey) {
122 122
              return $this->manipulation->drop($foreignKey);
123 123
         };
124 124
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     {
137 137
         $unique = new Unique($columns, $this);
138 138
 
139
-        $this->actions[] =  function () use ($unique) {
139
+        $this->actions[] = function() use ($unique) {
140 140
              return $this->manipulation->create($unique);
141 141
         };
142 142
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $unique = new Unique($columns, $this);
156 156
 
157
-        $this->actions[] =  function () use ($unique) {
157
+        $this->actions[] = function() use ($unique) {
158 158
              return $this->manipulation->drop($unique);
159 159
         };
160 160
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     {
173 173
         $index = new Index($columns, $this);
174 174
 
175
-        $this->actions[] =  function () use ($index) {
175
+        $this->actions[] = function() use ($index) {
176 176
              return $this->manipulation->create($index);
177 177
         };
178 178
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     {
191 191
         $index = new Index($columns, $this);
192 192
 
193
-        $this->actions[] =  function () use ($index) {
193
+        $this->actions[] = function() use ($index) {
194 194
              return $this->manipulation->drop($index);
195 195
         };
196 196
 
Please login to merge, or discard this patch.
src/Dami/Migration/MigrationFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         return $finder
88 88
             ->files()
89 89
             ->in($this->path)
90
-            ->sort(function (\SplFileInfo $a, \SplFileInfo $b) use ($migrateUp) {
90
+            ->sort(function(\SplFileInfo $a, \SplFileInfo $b) use ($migrateUp) {
91 91
                 return $migrateUp
92 92
                     ? $a->getRealpath() > $b->getRealpath()
93 93
                     : $a->getRealpath() < $b->getRealpath();
Please login to merge, or discard this patch.
src/Dami/Migration/Direction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 
5 5
 abstract class Direction
6 6
 {
7
-    const UP 	= 'up';
8
-    const DOWN 	= 'down';
7
+    const UP = 'up';
8
+    const DOWN = 'down';
9 9
 }
Please login to merge, or discard this patch.
src/Dami/Migration/Api/MigrationApi.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             $table->setDescription($options['comment']);
54 54
         }
55 55
         $this->actions[] =  function () use ($table) {
56
-             return $this->manipulation->create($table);
56
+                return $this->manipulation->create($table);
57 57
         };
58 58
 
59 59
         return $table;
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 
75 75
         $cascade = isset($options['cascade']) ? $options['cascade'] : true;
76 76
         $this->actions[] =  function () use ($table, $cascade) {
77
-             return $this->manipulation->drop($table, $cascade);
78
-         };
77
+                return $this->manipulation->drop($table, $cascade);
78
+            };
79 79
     }
80 80
 
81 81
     /**
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $schema = new Schema($name);
106 106
         $this->actions[] =  function () use ($schema) {
107
-             return $this->manipulation->create($schema);
108
-         };
107
+                return $this->manipulation->create($schema);
108
+            };
109 109
     }
110 110
 
111 111
     /**
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $schema = new Schema($name);
121 121
         $this->actions[] =  function () use ($schema) {
122
-             return $this->manipulation->drop($schema);
123
-         };
122
+                return $this->manipulation->drop($schema);
123
+            };
124 124
     }
125 125
 
126 126
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         if (isset($options['comment'])) {
53 53
             $table->setDescription($options['comment']);
54 54
         }
55
-        $this->actions[] =  function () use ($table) {
55
+        $this->actions[] = function() use ($table) {
56 56
              return $this->manipulation->create($table);
57 57
         };
58 58
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $table = new Table($name, $schema);
74 74
 
75 75
         $cascade = isset($options['cascade']) ? $options['cascade'] : true;
76
-        $this->actions[] =  function () use ($table, $cascade) {
76
+        $this->actions[] = function() use ($table, $cascade) {
77 77
              return $this->manipulation->drop($table, $cascade);
78 78
          };
79 79
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     public function createSchema($name)
104 104
     {
105 105
         $schema = new Schema($name);
106
-        $this->actions[] =  function () use ($schema) {
106
+        $this->actions[] = function() use ($schema) {
107 107
              return $this->manipulation->create($schema);
108 108
          };
109 109
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public function dropSchema($name)
119 119
     {
120 120
         $schema = new Schema($name);
121
-        $this->actions[] =  function () use ($schema) {
121
+        $this->actions[] = function() use ($schema) {
122 122
              return $this->manipulation->drop($schema);
123 123
          };
124 124
     }
Please login to merge, or discard this patch.
src/Dami/Cli/Command/ContainerAwareCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
         $this->container = $container;
22 22
     }
23 23
 
24
-     /**
25
-     * Gets container instance.
26
-     *
27
-     * @return ContainerInterface
28
-     */
24
+        /**
25
+         * Gets container instance.
26
+         *
27
+         * @return ContainerInterface
28
+         */
29 29
     protected function getContainer()
30 30
     {
31 31
         return $this->container;
Please login to merge, or discard this patch.
src/Dami/Cli/Command/MigrateCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         } else {
41 41
             $output->writeln(sprintf('<comment>No migrations detected.</comment>'));
42 42
         }
43
-      } catch(\PDOException $e) {
43
+        } catch(\PDOException $e) {
44 44
             $output->writeln("\n<error>There was something wrong during migration. Database schema has not been changed.</error>");
45 45
             if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
46 46
                     $output->writeln(sprintf("\n<error>%s</error>", $e->getMessage()));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         } else {
41 41
             $output->writeln(sprintf('<comment>No migrations detected.</comment>'));
42 42
         }
43
-      } catch(\PDOException $e) {
43
+      } catch (\PDOException $e) {
44 44
             $output->writeln("\n<error>There was something wrong during migration. Database schema has not been changed.</error>");
45 45
             if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
46 46
                     $output->writeln(sprintf("\n<error>%s</error>", $e->getMessage()));
Please login to merge, or discard this patch.
src/Dami/DependencyInjection/DamiExtension.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             }
31 31
         }
32 32
         $this->defineParameters($container);
33
-         if(!$container->hasParameter('dami.migrations_directory')) {
33
+            if(!$container->hasParameter('dami.migrations_directory')) {
34 34
             $container->setParameter('dami.migrations_directory', getcwd() . '/migrations');
35 35
         }
36 36
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $container->setDefinition('dami.verbosity', $definition);
64 64
 
65 65
         $definition = new Definition('Dami\EventListener\SqlSubscriber',
66
-          [new Reference('dami.verbosity')]);
66
+            [new Reference('dami.verbosity')]);
67 67
         $definition->addTag('kernel.event_subscriber');
68 68
         $container->setDefinition('dami.sql.subscriber', $definition);
69 69
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
             }
31 31
         }
32 32
         $this->defineParameters($container);
33
-         if(!$container->hasParameter('dami.migrations_directory')) {
34
-            $container->setParameter('dami.migrations_directory', getcwd() . '/migrations');
33
+         if (!$container->hasParameter('dami.migrations_directory')) {
34
+            $container->setParameter('dami.migrations_directory', getcwd().'/migrations');
35 35
         }
36 36
 
37 37
         $definition = new Definition('%dami.migration_name_parser.class%');
Please login to merge, or discard this patch.