Completed
Push — master ( 2f51b9...5a5df7 )
by Corentin
23:21
created
app/Repositories/Repository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     {
13 13
         $model = $app->make($this->getModelName());
14 14
 
15
-        if( !$model instanceof Model ) {
15
+        if (!$model instanceof Model) {
16 16
             throw new RepositoryException('Model must be an instance of Illuminate\\Database\\Eloquent\\Model');
17 17
         }
18 18
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     public function validateID($id)
60 60
     {
61
-        if( (bool) preg_match('/^[0-9]{1,10}$/', $id) === false )
61
+        if ((bool) preg_match('/^[0-9]{1,10}$/', $id) === false)
62 62
         {
63 63
             throw new RepositoryException('Parameter must be a positive integer', RepositoryException::INCORRECT_PARAMETER);
64 64
         }
Please login to merge, or discard this patch.