소스 검색

Comply with PSR-2 on intentional fall-through in non-empty case.

Daniele Alessandri 11 년 전
부모
커밋
fff303a03b
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/PubSub/Consumer.php
  2. 1 0
      tests/Predis/Transaction/MultiExecTest.php

+ 1 - 0
src/PubSub/Consumer.php

@@ -123,6 +123,7 @@ class Consumer extends AbstractConsumer
                 }
                 }
                 // The missing break here is intentional as we must process
                 // The missing break here is intentional as we must process
                 // subscriptions and unsubscriptions as standard messages.
                 // subscriptions and unsubscriptions as standard messages.
+                // no break
 
 
             case self::MESSAGE:
             case self::MESSAGE:
                 return (object) array(
                 return (object) array(

+ 1 - 0
tests/Predis/Transaction/MultiExecTest.php

@@ -909,6 +909,7 @@ class MultiExecTest extends PredisTestCase
 
 
                 case 'UNWATCH':
                 case 'UNWATCH':
                     $watch = false;
                     $watch = false;
+                    // no break
 
 
                 default:
                 default:
                     return $multi ? new Response\Status('QUEUED') : 'DUMMY_RESPONSE';
                     return $multi ? new Response\Status('QUEUED') : 'DUMMY_RESPONSE';