Passed
Push — master ( 4e0852...046d68 )
by Adrian
02:13
created
src/QueryBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     public static function getInstance()
18 18
     {
19
-        if (! static::$instance) {
19
+        if (!static::$instance) {
20 20
             static::$instance = new static;
21 21
         }
22 22
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     protected function getQueryClass(Mapper $mapper)
34 34
     {
35 35
         $mapperClass = get_class($mapper);
36
-        if (! isset($this->queryClasses[$mapperClass])) {
36
+        if (!isset($this->queryClasses[$mapperClass])) {
37 37
             $queryClass = $mapperClass . 'Query';
38 38
             if (class_exists($queryClass)) {
39 39
                 $this->queryClasses[$mapperClass] = $queryClass;
Please login to merge, or discard this patch.
src/Helpers/QueryHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 {
8 8
     public static function reference($table, $tableAlias)
9 9
     {
10
-        if (! $tableAlias || $table == $tableAlias) {
10
+        if (!$tableAlias || $table == $tableAlias) {
11 11
             return $table;
12 12
         }
13 13
 
Please login to merge, or discard this patch.
src/Orm.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function __construct(ConnectionLocator $connectionLocator, CastingManager $castingManager = null)
30 30
     {
31 31
         $this->connectionLocator = $connectionLocator;
32
-        if (! $castingManager) {
32
+        if (!$castingManager) {
33 33
             $castingManager = new CastingManager();
34 34
         }
35 35
         $this->castingManager = $castingManager;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             unset($this->lazyMappers[$mapperName]);
64 64
         }
65 65
 
66
-        if (! isset($this->mappers[$mapperName]) || ! $this->mappers[$mapperName]) {
66
+        if (!isset($this->mappers[$mapperName]) || !$this->mappers[$mapperName]) {
67 67
             throw new InvalidArgumentException(sprintf('Mapper named %s is not registered', $mapperName));
68 68
         }
69 69
 
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $foreignMapper = $options[RelationOption::FOREIGN_MAPPER];
96 96
         if ($this->has($foreignMapper)) {
97
-            if (! $foreignMapper instanceof Mapper) {
97
+            if (!$foreignMapper instanceof Mapper) {
98 98
                 $foreignMapper = $this->get($foreignMapper);
99 99
             }
100 100
         }
101 101
         $type          = $options[RelationOption::TYPE];
102 102
         $relationClass = __NAMESPACE__ . '\\Relation\\' . Str::className($type);
103 103
 
104
-        if (! class_exists($relationClass)) {
104
+        if (!class_exists($relationClass)) {
105 105
             throw new InvalidArgumentException("{$relationClass} does not exist");
106 106
         }
107 107
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         }
116 116
 
117 117
         $mapper = $mapperConfigOrFactory($this);
118
-        if (! $mapper instanceof Mapper) {
118
+        if (!$mapper instanceof Mapper) {
119 119
             throw new InvalidArgumentException(
120 120
                 'The mapper generated from the factory is not a valid `Mapper` instance'
121 121
             );
Please login to merge, or discard this patch.